Top "Xaml" questions

Extensible Application Markup Language (XAML) is a declarative XML-based language used for initializing structured values and objects in various frameworks.

Change DataGrid cell colour based on values

I have got a WPF datagrid and I want diffrent cell colours according to values. I have got below code …

c# wpf xaml colors datagrid
How to stretch in width a WPF user control to its window?

I have a Window with my user control and I would like to make usercontrol width equals window width. How …

c# .net wpf xaml wpf-controls
Newline in string attribute

How can I add a line break to text when it is being set as an attribute i.e.: <…

xaml
How do I space out the child elements of a StackPanel?

Given a StackPanel: <StackPanel> <TextBox Height="30">Apple</TextBox> <TextBox Height="80">Banana</…

wpf silverlight xaml stackpanel
WPF C# button style

Would somebody know how to recreate this button style in WPF? As I do not know how to make the …

wpf xaml styles
Binding a Button's visibility to a bool value in ViewModel

How do I bind the visibility of a button to a bool value in my ViewModel? <Button Height="50" Width="50" …

c# wpf xaml data-binding
How to autosize and right-align GridViewColumn data in WPF?

How can I: right-align the text in the ID column make each of the columns auto size according to the …

wpf xaml listview gridview gridviewcolumn
WPF Binding StringFormat Short Date String

I would like to use Short Date named string format in WPF. I tried something like: <TextBlock Text="{Binding …

wpf xaml binding
Binding ConverterParameter

Is there a way I could do this in a Style: <Style TargetType="FrameworkElement"> <Setter Property="Visibility"&…

wpf xaml styles
How can I set the color of a selected row in DataGrid

The default background color of a selected row in DataGrid is so dark that I can't read it. Is there …

c# wpf xaml datagrid