Top "Xaml" questions

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

How do I set a ViewModel on a window in XAML using DataContext property?

The question pretty much says it all. I have a window, and have tried to set the DataContext using the …

.net wpf xaml mvvm
ResourceDictionary in a separate assembly

I have resource dictionary files (MenuTemplate.xaml, ButtonTemplate.xaml, etc) that I want to use in multiple separate applications. I …

.net wpf xaml controltemplate resourcedictionary
Change color of Button when Mouse is over

I want to change the background color of a button when IsMouseOver == True <Button Command="{Binding ClickRectangleColorCommand}" Background="{Binding …

wpf xaml user-interface button mouseover
How to open a WPF Popup when another control is clicked, using XAML markup only?

I've got two controls, a TextBlock and a PopUp. When the user clicks (MouseDown) on the textblock, I want to …

wpf xaml popup eventtrigger
Properties order in Margin

If I have such string in XAML: Storyboard.TargetProperty="Margin" From="1,2,3,4" To="0,0,0,0" What is Top Bottom Right and Left? 1- …

.net wpf xaml
Simple (I think) Horizontal Line in WPF?

Creating a relatively simple data entry form, and just want to separate certain sections with a horizontal line (not unlike …

wpf xaml wpf-controls
Image UriSource and Data Binding

I'm trying to bind a list of custom objects to a WPF Image like this: <Image> <Image.…

.net wpf data-binding xaml
Pan & Zoom Image

I want to create a simple image viewer in WPF that will enable the user to: Pan (by mouse dragging …

c# wpf xaml zoom pan
How to get a ListBox ItemTemplate to stretch horizontally the full width of the ListBox?

I want to have the ListItems to extend with their orange background the full width of the Listbox. Currently they …

xaml listboxitem
WPF MVVM: How to close a window

I have a Button that closes my window when it's clicked: <Button x:Name="buttonOk" IsCancel="True">Ok&…

c# .net wpf xaml mvvm