
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 - How to set a dialog position to show at the center of the ...
To get a WPF Dialog to position at the centre of a Windows Forms parent form I passed the parent form to the dialog since Application.Current didn't return the Windows Form parent (I …
c# - Example using Hyperlink in WPF - Stack Overflow
Apr 20, 2012 · Example using Hyperlink in WPF Asked 13 years, 6 months ago Modified 1 year, 11 months ago Viewed 256k times
c# - WPF global exception handler - Stack Overflow
Sometimes, under not reproducible circumstances, my WPF application crashes without any message. The application simply close instantly. Where is the best place to implement the …
How to run and interact with an async Task from a WPF gui
I have a WPF GUI, where I want to press a button to start a long task without freezing the window for the duration of the task. While the task is running I would like to get reports on progress, an...
wpf - Binding to static property - Stack Overflow
Jan 7, 2015 · As of WPF 4.5 you can bind directly to static properties and have the binding automatically update when your property is changed. You do need to manually wire up a …
WPF: Setting the Width (and Height) as a Percentage Value
Say I want a TextBlock to have its Width equal to it's Parent container's Width (ie, stretch from side to side) or a percentage of it's Parent Container Width, how can I accomplish this in …
WPF - Adopt size of parent - Stack Overflow
May 12, 2016 · WPF - Adopt size of parent Asked 13 years, 5 months ago Modified 6 years, 5 months ago Viewed 52k times
c# - Select folder dialog WPF - Stack Overflow
Oct 24, 2010 · WPF look & feel, this dialog must look like part of a modern application designed for Windows Vista/7 and not Windows 2000 or even Win9x. As I understand, until 2010 (.Net …
xaml - WPF: Create a dialog / prompt - Stack Overflow
Nov 9, 2016 · I need to create a Dialog / Prompt including TextBox for user input. My problem is, how to get the text after having confirmed the dialog? Usually I would make a class for this …