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.
I 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, ...
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?
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
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
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: 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
(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
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 :)
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.
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
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
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.
"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!"
@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"
@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?
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.
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.
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
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.
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.
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