
How do I use WPF bindings with RelativeSource? - Stack Overflow
How do I use RelativeSource with WPF bindings and what are the different use-cases?
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 …
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
windows - What exactly is WPF? - Stack Overflow
Sep 1, 2008 · WPF is the Windows Presentation Foundation. It is Microsoft's newest API for building applications with User Interfaces (UIs), working for both standalone and web-based …
How to get controls in WPF to fill available space?
Aug 30, 2008 · 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 ones I …
wpf - How can I define a variable in XAML? - Stack Overflow
I have the following two buttons in XAML: <Button Content="Previous" Margin="10,0,0,10"/> <Button Content="Next" Margin="0,0,10,10"/> How can I define "10" to be a ...
c# - Pan & Zoom Image - Stack Overflow
Apr 12, 2009 · I want to create a simple image viewer in WPF that will enable the user to: Pan (by mouse dragging the image). Zoom (with a slider). Show overlays (rectangle selection for …
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...
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 …
c# - Setting WPF image source in code - Stack Overflow
I'm trying to set a WPF image's source in code. The image is embedded as a resource in the project. By looking at examples I've come up with the below code. For some reason it doesn't …