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

  2. WPF What is the correct way of using SVG files as icons in WPF

    Feb 11, 2021 · WPF What is the correct way of using SVG files as icons in WPF Asked 15 years, 2 months ago Modified 2 years, 8 months ago Viewed 196k times

  3. c# - How to easily draw graphs in WPF? - Stack Overflow

    @RachelGallen Could you tell me how to draw graphs of edge-connected vertices using Dynamic Data Display? The documentation is poor and I can't tell from the tutorials how to do this kind …

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

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

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

  7. wpf - How to make overlay control above all other controls?

    Mar 27, 2011 · I need to make a control appear above all other controls, so it will partially overlay them.

  8. How do I get a TextBox to only accept numeric input in WPF?

    Add a preview text input event. Like so: <TextBox PreviewTextInput="PreviewTextInput" />. Then inside that set the e.Handled if the text isn't allowed. e.Handled = !IsTextAllowed(e.Text); I use …

  9. wpf - Binding to static property - Stack Overflow

    Jan 7, 2015 · 23 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 …

  10. Passing two command parameters using a WPF binding

    Passing two command parameters using a WPF binding Asked 16 years, 2 months ago Modified 1 year, 8 months ago Viewed 230k times