|
<UserControl
x:Class="UserControlAsDataTemplateDemo.UserControls.ItemTemplateControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Height="Auto" Width="Auto">
<Border BorderThickness="2,2,2,2"
CornerRadius="5,5,5,5"
Background="#FF626262"
BorderBrush="#FFFFAC00"
Grid.ColumnSpan="2">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBox HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Text="{Binding Path=Name}"
TextWrapping="Wrap"
Margin="8,8,4,8"/>
<TextBox HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Text="{Binding Path=Age}"
TextWrapping="Wrap"
Grid.Column="1" Margin="4,8,8,8"/>
</Grid>
</Border>
</UserControl>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.