
What is the difference between WPF and WinForms?
Aug 26, 2009 · 1 The single most important difference between WinForms and WPF is the fact that while WinForms is simply a layer on top of the standard Windows controls (e.g. a …
How can I bring a window to the front in WPF? - Stack Overflow
The solution to bringing a WPF window to the top was actually provided to me by the same code I'm using to provide the global hotkey. A blog article by Joseph Cooney contains a link to his …
wpf - The calling thread must be STA, because many UI …
Apr 23, 2018 · If you make the call from the main thread, you must add the STAThread attribute to the Main method, as stated in the previous answer. If you use a separate thread, it needs to …
WPF: ItemsControl with scrollbar (ScrollViewer) - Stack Overflow
I followed this small "tutorial" on how to add a scrollbar to an ItemsControl, and it works in Designer view, but not when I compile and execute the program (only the first few items show …
c# - MVVM: Tutorial from start to finish? - Stack Overflow
I was in exactly the same situation recently, mate, and I can tell you what I did. Josh Smith "WPF Apps With The Model-View-ViewModel Design Pattern" read again, again and again :-) …
c# - Project structure for MVVM in WPF - Stack Overflow
What is the project structure you end up with when using MVVM in WPF? From the tutorials I saw now, they usually have folders: Model, ViewModel and View. In Model you put classes like …
WPF WebBrowser control - how to suppress script errors?
I found a similar question here: How do I suppress script errors when using the WPF WebBrowser control? But non of those solutions work for me. I need to stop the popups from appearing as i …
How to bind multiple values to a single WPF TextBlock?
May 25, 2016 · I'm currently using the TextBlock below to bind the value of a property named Name: <TextBlock Text="{Binding Name}" /> Now, I want to bind another property named …
How to get controls in WPF to fill available space?
Aug 30, 2008 · 359 Some WPF controls (like the Button) seem to happily consume all the available space in its' container if you don't specify the height it is to have. And some, like the …
c# - Formatting text in a TextBlock - Stack Overflow
How do I achieve formatting of a text inside a TextBlock control in my WPF application? e.g.: I would like to have certain words in bold, others in italic, and some in different colors, like this