About 48,200 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. .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="

  3. 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 XAML wi...

  4. xaml - WinUI3 C++ Data Binding - Stack Overflow

    Jan 9, 2024 · In reference to my question about TreeView, I was suggested to use data binding to populate the items of the TreView. I create a new Black App, Packaged, WinUI3 in Desktop C++ VS …

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

  6. c# - Loading XAML at runtime? - Stack Overflow

    2. Can the xaml file be an external file residing in a different folder? 3. Can the application switch to another xaml file easily, or only at startup time? So where should I start looking at for information on …

  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. What's the meaning of * (asterisk) in XAML ColumnDefinition?

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

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

  10. 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 terminated with a …