Top "Xaml" questions

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

ListBox with ItemTemplate (and ScrollBar!)

I have a databound and itemtemplated ListBox: <ListBox x:Name="lbLista" ScrollViewer.VerticalScrollBarVisibility="Visible"> <ListBox.ItemTemplate> &…

wpf xaml listbox scroll
How to set a binding in Code?

I have the need to set a binding in code. I can't seem to get it right tho. This is …

c# wpf xaml data-binding
Accessing a resource via codebehind in WPF

I have a custom collection defined in my window resources as follows (in a Sketchflow app so the window is …

c# wpf xaml resources code-behind
How to set DataGrid's row Background, based on a property value using data bindings

In my XAML code, I want to set the Background color of each row, based on a value of the …

wpf xaml wpfdatagrid
Bind TextBox on Enter-key press

The default databinding on TextBox is TwoWay and it commits the text to the property only when TextBox lost its …

c# wpf xaml .net-3.5 textbox
Format Date/Time in XAML in Silverlight

I have a Silverlight 4 application. I have a C# DateTime object that I'm binding to my UI. I want this …

c# silverlight xaml
HorizontalAlignment=Stretch, MaxWidth, and Left aligned at the same time?

This seems like it should be easy but I'm stumped. In WPF, I'd like a TextBox that stretches to the …

wpf xaml alignment stretch
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 …

c# wpf xaml stackpanel scrollbars
Button in a column, getting the row from which it came on the Click event handler

I've set the itemsource of my WPF Datagrid to a List of Objects returned from my DAL. I've also added …

c# wpf xaml datagrid datagridview
How to pass specific value to the converter parameter?

I have created a class Person that looks like this: public class Person { public enum GenderType { Female, Male } public string …

.net wpf xaml binding converter