PageRenderTime 16ms CodeModel.GetById 11ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1<UserControl x:Class="UIComposition.Modules.Project.ProjectsListView"
 2    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
 3    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
 4    xmlns:Controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data">
 5    <StackPanel>
 6        <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"/>
 7        <Controls:DataGrid AutomationProperties.AutomationId="ProjectsList" ItemsSource="{Binding Projects}" AutoGenerateColumns="False" IsReadOnly="True">
 8            <Controls:DataGrid.Columns>
 9                <Controls:DataGridTextColumn Header="Project" Binding="{Binding Path=ProjectName}" />
10                <Controls:DataGridTextColumn Header="Role" Binding="{Binding Path=Role}" />
11            </Controls:DataGrid.Columns>
12        </Controls:DataGrid>
13    </StackPanel>
14</UserControl>