About 2,750,000 results
Open links in new tab
  1. 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?

  2. 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 …

  3. 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

  4. 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 …

  5. 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 …

  6. 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 …

  7. Window vs Page vs UserControl for WPF navigation?

    Window is like Windows.Forms.Form, so just a new window Page is, according to online documentation: Encapsulates a page of content that can be navigated to and hosted by …

  8. 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 …

  9. wpf - Align items in a stack panel? - Stack Overflow

    I was wondering if I can have 2 controls in a horizontal-oriented StackPanel so that the right item should be docked to the right side of the StackPanel. I tried the following but it didn't work: ...

  10. WPF: Cannot reuse window after it has been closed

    May 24, 2016 · When we try to show the Window which is closed, we will get the following exception. "Cannot set Visibility or call Show, ShowDialog, or …