« first day (1728 days earlier)      last day (2421 days later) » 

08:47
morning
09:20
Hi, I want to know why is commands are linked, by default, to the click event of the buttons, why no configuration is needed? I know the click is the main event of the button, but how commands work regarding to that point?
Commands aren't bound to Click. Commands are bound to the Command property. Incidentally, a button's Click event is internally wired to call the command in the Command property.
@AvnerShahar-Kashtan and what about other controls?
Each has its own behavior.
09:44
0
Q: Triggering "CanExecute" on postsharp [Command] when a document changes?

Ronan ThibaudauI am currently migrating a project to PostSharp to remove a lot of boilerplate code, most of it is going very smoothly but I'm left confused about how to force a command to recheck if it CanExecute. I expected postsharp would inspect the command like it does properties to check for dependencies, ...

 
2 hours later…
12:09
Hi all
@MagnusLindhe this is really neat, thanks for the link - i'll redo it with caption and have it pinnged by guys :)
Very cool, Maverik. Nice animation
it's Magnus's contribution - i've merely captioned it so we can save it :)
 
2 hours later…
13:59
Ok. So.. this actually just made me lol.
Hey Lynn
Hello all. I'm having to do a quick WPF application for a job. I'm learning it from scratch. Is this pretty much going to teach me UWP development because they are that closely related?
heya Alex
Could you see that post?
I suspect it was behind an fb login wall
@DanielJackson Hey Daniel, welcome to the wpf world & channel
you could say that you'll learn some aspects of UWP doing WPF - they do have some connections
@LynnCrumbling That's pretty funny!
14:03
@DanielJackson UWP is somewhat like WPF. Much of a XAML knowledge will carry oer.
but UWP is more restrictive set of WPF features.. so it can be frustrating to not be able to do some stuff that you can in wpf
Thanks I appreciate the insight. Do ya'll love WPF? I'm just curious lol. I'd like to know what others think about it.
UWP has a different set of classes, and has some of the same ones as WPF, but they live in different namespaces.
as long as you don't trip yourself over on those tiny differences (like needing to be explicit in UWP binding modes, while WPF offers reasonable default modes) - you should be ok
Yes, WPF is a joy to work with.
14:04
yea WPF rocks :) despite its age
Once you get the hang of it.
I can say that data binding made my head hurt at first lol.
yup.. slightly steep learning curve in start -- you have to unlearn some bad habits from WinForms era
You'd be best suited to employ the MVVM pattern.
there's a lot of misinformation on internet.. so that only makes things worse
14:05
Luckily I'm relatively new so I didn't learn WinForms. And I am sticking to the MVVM pattern.
(Lynn & I + many other residents can interleave with each others chats - you can consider our combined chats to be one conversation)
As a general rule of thumb, I google for wpf mvvm <thing>
Ok I will keep these things in mind to help better my knowledge searching!
@DanielJackson Do you have prior experience with mvvm?
Daniel, you already have a good headstart if you've started from MVVM - its easy from there onwards.. MVVM itself is what trips most people up when starting WPF
14:06
Are you familiar with c# already, or learning that too?
Well I started learning the basics of programming languages like Python, Java, C#, JavaScript... But past few months have been heavy C# and .NET Core. Using the MVC pattern which helped me understand MVVM when I started reading about it recently.
@DanielJackson And same question - with regard to visual studio.
So I'm kind of still a beginner on the verge of becoming intermediate.
so - many of us in here don't use multiple windows - we use datatemplates to drive content.
And very familiar with Visual Studio which helped me learn a lot.
14:08
There's a good example if you're interested.
Yea I'll take the example. I've been playing with making datatemplates as well, on a very small scale compared to what you probably mean.
I'm interested.
GENTLEMEN
Mav, I can't find it in starred items
I'd bet money it's in there.
sorry went away - catching up
So - the example I was talking about is ContextDrivenViews
but there are others that are super-helpful
Annnnnnnnnnnnnnnnnd it's that time of day. Off to my standup. poof
14:12
not sure if that one was starred
I will look over the code right away! Thank you.
jeez - 200 stars -- time to clean up!
DanielJackson: As you find time, please go through our star list - there's a lot of curated goodness in there.. we trim it regularly to ensure we keep only relevant content in there
and.. JULIEN!! :D
I'm not familiar with the star list! This is literally my first time in a chat room. But I'm guessing it's on the right side of the room here?
oh --> links on side.. click "Show all x"
they vary based on chat rooms -- but in this room we use it as bookmarks of resources discovered over the years
Awesome I will check that stuff out. So it's pretty much you community members here selecting the best of the best relevant info?
14:18
well.. i'm tempted to say yes
Ok yea that's great. Saves a lot of time searching through bad stuff lol.
but these other owners are generally kind enough to let me do mostly what i feel like :D .. I'm the room's GC
(Garbage collector)
I was about to ask lol. Well I appreciate your service!
no worries
Is the starred content relevant only to WPF or anything? I'm just wondering.
14:22
umm WPF and related stuff in general
like you can see Argon on side - which isn't direclty WPF
but most of us have to deal with encryption as part of project -- so its on starboard
similarly WinAuth .. for more modern OTP Authentication
Ok just wondering cause I see entity framework core and wondered if that was in WPF or only in .Net Core stuff.
nope that'll work in .net core as well
(as will argon -- the Konscious.Security is .net core compatible)
primary focus is of course wpf - but we try to cover as broad a spectrum as possible when linking stuff.. like covering Silverlight back in the day and UWP now
Awesome. Pretty cool stuff I can't wait to get good at.
Do UWP people come in here?
yup we get them now and then
sadly no UWP expert has chosen to become resident.. so you have to try your luck
still.. some of the owners do have UWP experience.. so you can always try your luck
Lol maybe one day. Everyone gets along pretty much?
14:25
indeed - we're like family here by now i'd say
the owners of the room are permanent residents.. have been for years
we can complete each others sentences .. interject where we need to without feeling rude
Sounds like a well rounded place that I'd learn a lot from then.
for sure!
and we love to have new comers who intend to stick around.. even if lurking just to learn :)
on that note, I'd mention two rules:
Please don't ping people unless you really need that specific persons attention and they appear AFK.. most of us will catch up on chat as we tab back and forth without need for pings
and two, we avoid Oneboxing things (links auto-expanding to show meta data -- you can avoid it by appending or prepending some random text around the link without modifying the link itself)
since some of us are sitting in open space, we don't want our line managers to think we're wasting our times :)
As the room's GC, i remove a lot of content over time that's allowed temporarily to keep the rooms mood light & cheerful (including room-owners after some inactivity time) - its never meant to be personal so please don't take offense if i end up removing something you wrote -- if you feel I shuoldn't have done it, please speak to me and you may ping me even for that specific purpose :)
oh and one last thing: when you need to share code with us - use gist.github.com for snippets :)
^ rules to live by :)
Ok I will take note of these rules and follow. Just so I understand. Oneboxing is like if I post a link it will auto expand to show a thumbnail of what the link is? Cause I'm in an office too so not having that sounds beneficial.
yea - happens mostly with images that bother us
If that happens, i'll move it out of channel to trash
there's generally no further penalty on it
14:39
Ok. I will follow the rule out of respect though. I just checked out GitHub gist and didn't realize there was something like that. Pretty cool. Thanks for the heads up as well.
Reason for not allowing oneboxing: we're in cubicles and don't want boss to think we're goofing off, especially when videos are shared here or silly gifs
Also, animated gifs are distracting
yup - and reason we avoid pings: they're too loud in our headphones
^ that
and while some of us turn pings off, most of us have it on for the intended purpose: to call us when you really need one of us
We wear headphones and when you use the at-sign to contact someone, that person hears a loud PING
14:42
ah yes - that and when you reply to a message specifically by clicking that little arrow in right corner
Makes sense. And I heard that exact ping earlier through my headphones. It was a little loud lol.
Oh I see that little reply button now.
so we generally don't reply specifcally to a line as we're not heavy on chat.. we have a fair idea of context when we're replying and whoever is intended to read those replies is expected to have same
This room is a wonderful resource for learning WPF/C#/EF/and just generally good programming practices
@DanielJackson listen to these guys and they'll make you an expert. They took a dumb Electrical Engineer and made a software guy out of him.
I feel like these rooms hold intellectual people :)
14:44
Been on here since early last year
biggi is new :D
...And that is why pings can get annoying ;)
biggi: don't @ him :P
I was demonstrating!!!!
lol he already got first hand experience :D
14:45
Intellectual? The others are. Me? Not so much. I'm a certified idiot
Lol thanks.
I'm new, but feel like I've been here forever....
hehehe as should be the case biggi
well i may not be certified.. but i'm certainly not an intellectual
we have Johan in that league - then the demi-god.. Reed
whom we almost never disturb :D
Reed lurks in here in the late afternoons (U.S. time)
lest you melt in his radiance! (/cue Johan's radiant gif displaying Reed with halo here)
14:47
And on that note: to everyone here, boss signed off on my app demo. I honestly can say I wouldn't have been able to do it without the room here. I think my time on the project is drawing to and end (probably next week) but I'll still be in here distracting you all from what work you're supposed to be doing! And feel free to ask hardware questions...I'm good at those.
These ^ are some really sharp folks, Daniel
lol yes that reminds of our timings: we're mostly US based :)
I've learned tons here
though I'm from the UK.. i tend to operate on US timings :D
and the channel is deadish over weekends and outside working hours - don't feel discouraged by it.. we're pretty active otherwise :)
yay it went through finally! I thought it was too long...
14:48
grats biggi :)
and in my case.. my past is coming to haunt me
I agree, Alex :)
an app i did.. 7 years back.. in VB & Winforms (gasp) needs to be revived and redeployed
yes.. those were my dark days - I was a lost puppy back then.. until Sisyphe found me and showed me i wasn't alone.. :)
A friend inherited a 20+ year old C++ app about 10 years ago. He's still maintaining the beast and deploying via (gasp) ClickOnce
Guys, we have someone here working in Borland C
I don't want to hear about old apps :)
It reads Excel files and outputs them
"Back in my day, sonny, we wrote our apps on tablets... stone tablets. Deployed them by tossing them across the valley from a hilltop. You young whippersnappers don't know anything about programming!"
14:54
xD
i'll star that until next gc :P
"Vim meant something different in those days.... it was the sound the tablet made as it flew in the air before it hit someone square in the forehead."
Alex on roll ^
Hey I use VIM!
"We didn't have WPF in my day... WTF was the norm then."
That's what mine looks like ;)
whahhaha meant to hit edit: better not post that
14:57
Hi, is there someone, who has enough knowledge about ODF Files? Especially OpenDocument Spreadsheet?
strongly doubt it
Now that made me laugh!
biggi - the stuff you removed: was that zsh?
I posted an imgur with a name on it
(outside vim of course)
14:58
zsh?
the shell :)
but nvm, probably not the case if you didn't get it
oh sorry, I get it. keep in mind my brain hasn't been working right for a few days
no, it's vim on a mac
@Genealogy There seems to be a ton of information on ODF. What's your actual problem?
Dunno if I've shared this before:
Nerd Fonts -- Handy repo for iconography
2
15:02
@LynnCrumbling I created a ODS File and the validator says fine. I made it on base of an empty Excel online ODS File. Mimetype, content.xml, meta.xml, styles.xml and manifest.xml has exactly the same structure. But if I try to open it in Excel Online or Google Docs they say "Unable to open. File corrupt"
foreach (var matchingTag in await DatabaseManager.GetTable<Tag>(x => headersToCheck.Any(y => y.Contains(x.Name.ToUpper()))).ToListAsync())
biggi: just checked the track you sent on skype: nice track
I think i've seen chrissi in a few other tracks
cannot compile lambda expression :(
jeez Julien
@Genealogy Ah, so you think you'd followed the spec, and the validator gives you the thumbs up, but it doesn't work.
I'd start with a less complicated example, if you can. Do the hello, world of docs.
15:04
@LynnCrumbling Yes! Here's the link: dropbox.com/s/kxfd6v668bg2csq/Test.ods?dl=0
It's a pretty small test file
Can you simplify it more?
that one line feels like a monstrosity
@LynnCrumbling What do you mean?
i have a list of strings, i want to get any rows from the table that have a name that exists inside a string in my list of strings
guess i will take my own advice and just write the damn sql
you probably don't need to use .ToUpper - SQL will do case insensitive match anyway unless you gave it a case sensitive collation for some reason
15:06
ah yes.
though that shoudln't be causing the error
it just doesnt know how to translate that to an sql statement i think
yea of course
Contains is where it usually gets tripped
@Genealogy Is it the simplest (bare minimum) doc that you can make?
that'd happen if .Contains is string based rather than IEnumerable based
15:07
@LynnCrumbling yes!
which is what you're doing..
not sure.. you shuold be able to do this
which EF is this?
sqlite.net
aaaa
ok now it makes sense
i'm pretty sure it's string contains that's not translating
try without .toupper if it works
if not, its the .contains
i did, same error
sqlite probably doesn't have a substring contains translation
sqlite should be local.. so just pull it in ?
and let Linq2Objects do the heavy lifting?
15:12
uhhh how do i do that
.ToListAsync() early
and filter that result
how early? that depends how much of your query is willing to compile to sqlite
so change my loop to iterate over every row and do the check in the loop
in worst case, yea
is there a performance difference?
shouldn't be too much for you
it'll be more memory difference
15:14
the tag table can get really big, thats why im concerned
sqlite being local means you dont incur the traffic penalty like remote sql server's data pull
@Genealogy Are you sure that whatever you're trying to open it in, supports 1.2?
well you may need to get creative probably
or just write sql if you know it can support it
yeah if perf is bad i'll write the sql
(this could just be Sqlite Linq Provider limitation)
15:15
but i dont know how to do it in sql either without generating a giant OR statement
linq providers are bloody hard to write
easy concept but far too many moving parts to keep track of
no use IN operator
but i need an IN and LIKE combo
i dont think that exists
sqlite.org/lang_keywords.html <-- according to this it does
as well as like
@LynnCrumbling Yes, because I only cloned the content of the ODS file I created in Excel Online and packed it again in a valid structure. Can you open it?
err what thats just a list of keywords
i know both IN and LIKE exist in sqlite, but you can't use them together
15:17
keywords SQLite understands
mm that i dont know
wait..
IN + LIKE together in one line don't make sense
where name IN ('%long stringthat might contain name%', '%another stringthat doesnt contain keyword%')
yea no.. nothing supprots that as far as i know
here's an alternate idea
try a fork-join on query
fork based off your tags - do query per tag - join results back
that should work
since your query won't be as complex anymore
the results should come from a hot index - so there shouldn't be IO penalty beyond cache priming
how do i do a fork-join
is that like a sub select?
(need to go afk for lunch)
be back in a bit
@LynnCrumbling Send me PM please, if you found something out
15:22
foreach (header in headersToCheck) matchingTags.AddRange(DatabaseManager.GetTabe<Tag>(x => x.Contains?)

then do your query on matchingTags itself
mmmm
you still pull the stuff that you actually need.. just do it in two steps
parallel away if you want
I do have a hard WPF question... If I am calling a method to return a list of collections of collections... Is there a way to pass a variable to that method to determine if I want certain collections that match a key? I'm calling via ItemSource="{Binding Groups}" except I don't want all groups, only certain ones. But I need other groups in other places and all in one place.
the answer to your question is "yes"
you could for example intercept the get to Groups and return whatever you want
but this kind of question has a lot to do with your existing design
one of my questions would be: why arent the data contexts of your views pointing at view models that already return the correct groups?
I'm kinda having to finish an application that another person already started. It's not fun cause I would've done it a different way. But anyway, I'm getting and returning all the groups, but I never know which times I'll want only certain groups.
Oh is that what I should be looking to do?
Return ViewModels of each view and use that?
15:30
without knowing more about your code, its hard to say, but its certainly a valid approach i think
Or of each group I mean.
generally you want to have your View set to as dumb a level as possible
your view shouldn't be driving your viewmodel unless its a user input
Ok I'll see if I can find a starred resource on that. I've read about mvvm but this programmer may not have followed as good as I would have liked.
i doubt you'll find something of this sort
doubt you will find a relevant star
15:31
as Julien said, this is a very specific kinda situation :)
No user input... Just getting updated by a com link so every second the data gets updated and I was hoping not to break that.
ok.. well.. then Juliens approach sounds correct
the view model hosting your Groups property should have enough information to determine what is getting returned from that get
or should already just be returning the correct groups without knowing anything more
when your data updates from COM link or wherever - update the final collection bound to view to have what actually needs to be there.. since you arleady know what needs to happen
yup what he said :D
i'm gonna shut up :D
Lol no thanks a lot to both of you I will look into this.
Last quick question. I can use multiple ViewModels in one window?
15:34
the more view models the merrier
too early.. but this is where Gu.Reactive & DD would come in handy :D
hahaha
Lol good to know thanks.
if you can break your app into as many view models as possible, you will have a lot more flexibility
but they have their own learning curves so.. yea get to grips with this stuff first
15:35
Ok will do.
@Maverik do you watch any of the star citizen youtube content?
specifically the bug smashers videos
nah - i don't normally go to youtube
and just so disappointed with starcitizen.. can't bring myself to watch anything star ctiizen
morale -273
you should watch yesterdays bug smashers. i'd also recommend their Around the Verse segment every thursday if you want to keep up with the latest
I played elite dangerous for a bit, I really want to check out the VR side of it though.
we used to have Billdr here who was ED player
15:37
their bugsmashers episode, they have a guy who shows their code and him fixing bugs
yesterdayse was intense lol youtube.com/…
(some of our folks moved to slack channel)
code you say - ok i'll bite
i watch those vids and i am blown away.
15:50
thanks mav code working great
my lambdas compile again :D
nice stuff - Recode . i haven't seen that in eternity
i think without that they would be waiting until the next day to try their changes
lol
their builds are insane
this one video could be a representative demo video
what do programmers do: they copy paste code around to place a crate on ground
except.. this isn't as simple as "surely it's a simple task of placing the crate on ground?!"
lol yup
well, it would be, if the ground was actually the ground
but its actually a zone, in a zone, in a zone
some day i'll learn to english.. but not in this decade
yea client doesn't care
i want my ice cream on the floor.. what's so darn difficult about that?!
here.. let me show you how i do it
16:54
I'm calling on you to post another youtube music link today.
Sweet - i just discovered that both github/gitlab and my SSH servers now support ED25519 Keys!
incase you guys use SSH keys - may wanna look into generating new keys :)
17:39
did something happen?
that we should switch?
well if you're the kind to wait until something happens.. then no
18:00
haha
waiting for ED25519 keys to be compromised first now :D
sure... its only been a few years..but we can wait some more
Anyone here used ELMAH exception handling library?
ed25519.cr.yp.to <- quick intro worth checking
nope Alex - ASP.net stuff - slack it
Thanks, Maverik. Going there now...
18:22
    <Expander ExpandDirection="Right">
      <Expander.Header>
         <Image ... />
      </Expander.Header>
  </Expander>
how can i get that image to sit at the very bottom of the expander ?
no matter what i do, it sits directly underneath the open expander button
my vertical expander stretches the height of the page, and i want to put some content at the bottom
(as well have some at the top)
i think you gotta style the header
18:41
i tried re-styling it to a grid
but it still just sits underneath the button without stretching the full height of the page
There's more too it, its got the same behavior as a StackPanel I think
bleh
 
1 hour later…
19:59
I know this is kind of newbish but I wonder if there's a starred item that anyone knows of which explains the different UI symbols on the design page of WPF.
I'm looking of course.
UI symbols?
if you are asking about the WPF designer, best to start weaning yourself off that now
^ that
Don't use the designer/toolbox
Build using XAML directly
It's actually pretty straightforward... just tags with attributes
Yeah, learn to write xaml by hand, it may seem overwhelming at first but there really only is a handful of elements you use over and over
{ Grid, Button, TextBox, TextBlock, ItemsControl, ListBox, DataTemplate }
Learning ^ should go a long way
20:19
^ Is all I know essentially ;)
And VS provides intellisense, so you can get help while your typing the XAML
Years ago, used Dreamweaver for web dev. Then learned HTML and never needed it again.
Learn XAML and you'll be able to not only do WPF but UWP and Xamarin
20:39
Ok I will. I was trying to cheat a little bit by using the designer just to resize my grids and stuff because I'm getting frustrated with trying to code all the widths and heights lol but I guess I will learn it.
I would never want to use designer or blend full time. I'm also having an issue where the main grid won't match up to the window, or it will but it seems offset, like not right, so I thought it was a reason I didn't yet understand.
Well, don't feel like you have to learn it now. But as Julien said, wean yourself off it. So for now, if it makes life easier, use the designer :)
Thanks for the input all.
Ok yea that's a good idea.
You can of course cheat with the designer but then it is probably a good idea to have a look at the code it generates and clean it up.
It tends to add nasty margins and other noise like that
Apr 24 '16 at 5:46, by Johan Larsson
XamlStyler is a VS extension that does a good job at formatting xaml.
^ does a good job at formatting xaml
You will probably find that the need for cheating goes away pretty fast
I have been seeing that. Thanks, Johan.
Also word of caution: the designer is pretty broken, it does not render all things accurately and there are a lot of false negatives that shows up as build errors
After a while you start to recognize them but troubleshooting xaml issues is not much fun
20:46
I'm seeing some issues now where the resizing red lines that lock aren't lining up anymore.
About layout: use Grid almost always, Julien might suggest more exotic panels, just ignore him :)
Also learn about Height="Auto" Height="*" for rowdefinitions and the corresponding for columndefinitions
And if you feel you need Grid.ColumnSpan think about if you can nest grids instead

« first day (1728 days earlier)      last day (2421 days later) »