|
<UserControl
x:Class="UserControlAsDataTemplateDemo.UserControls.ItemTemplateControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:UserControls="clr-namespace:UserControlAsDataTemplateDemo.UserControls"
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="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBox HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Text="{Binding Path=Name}"
TextWrapping="Wrap"
Margin="4,4,4,4"
Grid.ColumnSpan="1"/>
<TextBox HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Text="{Binding Path=Age}"
TextWrapping="Wrap"
Grid.Column="1"
Margin="4,4,4,4"
Grid.ColumnSpan="1"/>
<UserControls:ProgressReporter
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
PercentToShow="{Binding Path=Progress}"
Grid.Column="2" Margin="4,4,4,4" />
</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.