|
<UserControl x:Class="MultipleDataTemplateInListBox.ManagerView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid x:Name="LayoutRoot" Height="150" Width="200" Background="Green">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="100"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0">
<StackPanel Orientation="Horizontal">
<TextBlock Text="Employee Name:" />
<TextBlock Text="{Binding Name}" />
</StackPanel>
<StackPanel Orientation="Vertical">
<TextBlock Text="Reporting Leaders:" />
<ListBox Width="200" Height="50" ItemsSource="{Binding DirectReports}" DisplayMemberPath="Name" Background="Cyan"/>
</StackPanel>
</StackPanel>
<Canvas Grid.Row="1" Background="Green">
</Canvas>
</Grid>
</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.