tagged [xaml]

How to change column header's background color when using WPF datagrid

How to change column header's background color when using WPF datagrid How to change column header's background color when using WPF datagrid? Need to modify xaml directly?

24 May at 20:13

How to add a ScrollBar to a Stackpanel

How to add a ScrollBar to a Stackpanel In my WPF application, I have a Stackpanel containing several controls inside them. How can I add a Scrollbar to this stackpanel.

27 Aug at 16:44

align wpf tabcontrol strip

align wpf tabcontrol strip I'm trying to align a tabcontrol strip on the right. Just to be clear - I want the tabs on the top (tabstripplacement), but aligned on the right.

26 Jan at 01:4

Change margin programmatically in WPF / C#

Change margin programmatically in WPF / C# For this xaml: How can I change the web browser control margin on top to be -5 programmatically in C#?

12 Sep at 23:48

DateTime.Now in XAML without binding

DateTime.Now in XAML without binding Can I put the date of today in a label without binding it in XAML, something like

5 Jun at 15:8

Radio buttons group XAML

Radio buttons group XAML I have six radio buttons in XAML, and I would like to create two groups. It seems that WPF has no radiobutton group element, so how can I do this?

19 May at 09:34

How to set focus to textbox using MVVM?

How to set focus to textbox using MVVM? How to focus a textbox from ViewModel wpf?

16 Aug at 18:16

there is a way to activate a control WebView Desktop mode and not Mobile mode?

there is a way to activate a control WebView Desktop mode and not Mobile mode? there is a way to activate a control WebView Desktop mode and not Mobile mode?

16 Feb at 20:40

Grid Star-Size in code behind

Grid Star-Size in code behind I have a grid as follows, How do I give the `Height = "0.5*"` in code behind?

21 Mar at 17:18

How can I make a specific TabItem gain focus on a TabControl without click event?

How can I make a specific TabItem gain focus on a TabControl without click event? How can I tell my TabControl to set the focus to its first TabItem, something like this:

16 Sep at 09:33

What is the easy way to set spacing between items in StackPanel?

What is the easy way to set spacing between items in StackPanel? Is there an easy way to set default space between items inside StackPanel so I'll don't have to set Margin property on each item?

1 Jun at 10:39

How do I de/serialize JSON in WinRT?

How do I de/serialize JSON in WinRT? How do I take an object and convert it to a JSON string and then back into that object from a string, specifically, in WinRT for my Windows 8 Metro application?

10 Jun at 01:47

Window shown event in WPF?

Window shown event in WPF? I want to apply fade animation every time my window is shown. How to do that from xaml? That window can be hidden and then shown again so I can't use `Loaded` event.

8 Feb at 10:11

How to get the resolution of screen? For a WinRT app?

How to get the resolution of screen? For a WinRT app? I want to know the screen resolution so that I can set the height of an element according to the resolution in a Windows 8 app.

31 May at 05:59

In WPF can you filter a CollectionViewSource without code behind?

In WPF can you filter a CollectionViewSource without code behind? Really the subject says it all. It's not that I can't have code behind. It just nags at me.

ReSharper WPF error: "Cannot resolve symbol "MyVariable" due to unknown DataContext"

ReSharper WPF error: "Cannot resolve symbol "MyVariable" due to unknown DataContext" I am experiencing this error when using WPF + XAML + MVVM in Visual Studio 2012. > Cannot resolve symbol ”MyVariabl...

1 Jun at 20:33

Difference between Command (ICommand) and Click event

Difference between Command (ICommand) and Click event When should I use the `Command` and when to use the `Click` event? F.e. if I have a `Button` in my UWP app what should I use?

What is the use of Path= in XAML?

What is the use of Path= in XAML? I use a lot of bindings in XAML and sometimes I use path= in a binding and sometimes not. In which cases do I need the path= and when can I omit this?

17 Feb at 11:53

Create a menu Bar in WPF?

Create a menu Bar in WPF? I want to create a menu bar identical to the one in windows forms in my WPF application. How would I do this? The menu option in the WPF controls toolbox only gives a blank b...

21 Jun at 12:54

WPF CheckBox TwoWay Binding not working

WPF CheckBox TwoWay Binding not working I have And Checking/Unchecking sets `Foo`, but setting `Foo` in code does not change the Checkbox state. Any Suggesitons?

7 Jan at 14:43

how to set splash screen in window phone 8 Application development

how to set splash screen in window phone 8 Application development I am new in Window Phone Apps Development .So I just Want to Add Splash Screen When the application launch without using any extra Pa...

18 Oct at 13:14

Change a Windows Store App's title text

Change a Windows Store App's title text How can I change the shown title of the app? (Like does) In Winforms that would be `form1.Text = "new title";`. How do we do that in UWP?

How to remove the "Go to live visual tree" / "Enable selection" / "Display layout adorners" overlay when debugging?

How to remove the "Go to live visual tree" / "Enable selection" / "Display layout adorners" overlay when debugging? How do I remove the box with the 3 icons when debugging? [](https://i.stack.imgur.co...

Windows 8 Modern UI Styles for WPF

Windows 8 Modern UI Styles for WPF I want my WPF app to look like WinRT apps: ![](https://i.stack.imgur.com/GS7EH.png) Are there any ready-made styles or controls available for WPF that lets us achiev...

15 Dec at 16:18

WPF radio button with Image

WPF radio button with Image I have to create something similar to the picture. If one of the button is clicked the others should become darker. Thanks a lot! That's what I need [](https://i.stack.imgu...

15 Aug at 10:2