About 50 results
Open links in new tab
  1. WPF: What is App.xaml's Purpose? - Stack Overflow

    Nov 10, 2010 · App.xaml is the declarative portion of your code (usually generated by Visual Studio) extending System.Windows.Application. For example, Expression Blend can use App.xaml to share …

  2. xaml - WPF: Setting the Width (and Height) as a Percentage Value ...

    8 IValueConverter implementation can be used. Converter class which takes inheritance from IValueConverter takes some parameters like value (percentage) and parameter (parent's width) and …

  3. What's the meaning of * (asterisk) in XAML ColumnDefinition?

    Aug 5, 2011 · What's the meaning of * (asterisk) in XAML ColumnDefinition? Asked 14 years, 6 months ago Modified 4 years, 11 months ago Viewed 78k times

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

  5. .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 x:Class="

  6. 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 ampersand '&' …

  7. wpf - XAML or C# code-behind - Stack Overflow

    Jan 31, 2015 · I don't like to use XAML. I prefer to code everything in C#, but I think that I am doing things wrong. In which cases it is better to use XAML and when do you use C#? What is your …

  8. xaml - Newline in string attribute - Stack Overflow

    How can I add a line break to text when it is being set as an attribute i.e.: &lt;TextBlock Text="Stuff on line1 \\n Stuff on line2" /&gt; Breaking it out into the exploded format isn't an option f...

  9. VS 2022 Preview not showing the XAML designer - Stack Overflow

    Jan 24, 2022 · I've just installed VS 2022 preview to use Maui but there seems no way to see a designer view of the XAML, I want to drag and drop controls onto the page but all I get is an ancient looking …

  10. 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 (95 to be …