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: 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 …

  3. windows - XAML live preview is not available - Stack Overflow

    Nov 18, 2023 · The XAML Live Preview window is available during debugging. To open it, go to Debug > Windows > XAML Live Preview. Or, select the Show in XAML Live Preview button in the application …

  4. wpf - If condition in XAML - Stack Overflow

    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. .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. How to set a top margin only in XAML? - Stack Overflow

    If you don't set some of the values, they will be implicitly zero. Therefore, you can just do this to convert the accepted code sample in your other question to a XAML equivalent: ... where MyConverter just …

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

    You can put the textboxes inside a grid to do percentage values on the rows or columns of the grid and let the textboxes auto-fill to their parent cells (as they will by default). Example:

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

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

    Jan 24, 2022 · 29 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 …

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

    This raises an error: Entity references or sequences beginning with an ampersand '&' must be terminated with a semicolon ';'. I assume I am missing an escape sequence of some sort to allow me …