About 119,000 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. 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 …

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

  4. 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.: <TextBlock Text="Stuff on line1 \\n Stuff on line2" /> Breaking it out into the exploded format isn't an …

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

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

  8. xaml - Difference between Binding and x:Bind - Stack Overflow

    From the {x:Bind} markup extension docs: The {x:Bind} markup extension—new for Windows 10—is an alternative to {Binding}. {x:Bind} runs in less time and less memory than {Binding} …

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

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