About 20,700 results
Open links in new tab
  1. xaml - 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 …

  2. .net - How do I set a ViewModel on a window in XAML using …

    The question pretty much says it all. I have a window, and have tried to set the DataContext using the full namespace to the ViewModel, but I seem to be doing something wrong. <Window …

  3. xaml - How to include an ampersand (&) in the content of a …

    Apr 24, 2019 · //XAML <ComboBox> <ComboBoxItem> Awake & Alive</ComboBoxItem> </ComboBox> This raises an error: Entity references or sequences beginning with an …

  4. xaml - How to format number of decimal places in wpf using style ...

    Aug 21, 2013 · I am writing a WPF program and I am trying to figure out a way to format data in a TextBox through some repeatable method like a style or template. I have a lot of TextBoxes …

  5. Newest 'xaml' Questions - Stack Overflow

    Stack Overflow | The World’s Largest Online Community for Developers

  6. xaml - WPF - Global Style? - Stack Overflow

    Jan 16, 2013 · Is there a way to setup global styles for my WPF application? What I'm hoping to do is apply a style to all my Buttons that also have an Image child.

  7. WPF: What is App.xaml's Purpose? - Stack Overflow

    Dec 12, 2014 · App.xaml is the declarative portion of your code (usually generated by Visual Studio) extending System.Windows.Application. For example, Expression Blend can use …

  8. Binding to Self/'this' in XAML - Stack Overflow

    In XAML, how do I reference the Self/this object in a given context? In a very basic app with a main window, one control, and a coded C# property of the window, I want to bind a property of …

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

    Feb 11, 2021 · If your application is a WPF app rather than a UWP/UAP, you can still use this API (after jumping through quite a number of hoops): Windows 10 build 17763 "October 2018 …

  10. How to set a top margin only in XAML? - Stack Overflow

    May 23, 2017 · Therefore, you can just do this to convert the accepted code sample in your other question to a XAML equivalent: <StackPanel Margin="{Binding TopMargin, …