/V2.2/trunk/Quickstarts/UI Composition/ViewInjection/Silverlight/UIComposition.Modules.Project/Views/ProjectsListView/ProjectsListView.xaml
XAML | 14 lines | 14 code | 0 blank | 0 comment | 0 complexity | 4b272364b819f463eb64836d2bee021b MD5 | raw file
- <UserControl x:Class="UIComposition.Modules.Project.ProjectsListView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:Controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data">
- <StackPanel>
- <TextBlock Width="Auto" Height="Auto" Text="This employee is part of the following projects:" Padding="0,0,0,0" FontWeight="Bold" Margin="0,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Top"/>
- <Controls:DataGrid AutomationProperties.AutomationId="ProjectsList" ItemsSource="{Binding Projects}" AutoGenerateColumns="False" IsReadOnly="True">
- <Controls:DataGrid.Columns>
- <Controls:DataGridTextColumn Header="Project" Binding="{Binding Path=ProjectName}" />
- <Controls:DataGridTextColumn Header="Role" Binding="{Binding Path=Role}" />
- </Controls:DataGrid.Columns>
- </Controls:DataGrid>
- </StackPanel>
- </UserControl>