About 120,000 results
Open links in new tab
  1. xaml - How to include an ampersand (&) in the content of a …

    //XAML <ComboBox> <ComboBoxItem> Awake & Alive</ComboBoxItem> </ComboBox> This raises an error: Entity references or sequences beginning with an ampersand '&' must be …

  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. &lt;Window …

  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, 2 months ago Modified 4 years, 7 months ago Viewed 78k times

  4. wpf - If condition in XAML - Stack Overflow

    Aug 19, 2013 · I am sharing xaml for Visual studio 2010 and 2008 , i wanna execute specific code snippet for vs2010 and hide the same for vs2008 ..

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

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

  7. How to automatically format XAML code in Visual Studio?

    Sep 11, 2017 · I would check out XAML Styler, which is a Visual Studio extension to help format your XAML source code (full disclosure, I am one of the owners on the project).

  8. Calling a parameterized constructor from XAML - Stack Overflow

    Apr 26, 2016 · While using WPF I noticed that when I add a control to a XAML file, the default constructor is called. Is there a way to call a parameterized constructor?

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

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