RoleEditView.xaml 2.2 KB

123456789101112131415161718192021222324252627
  1. <Window x:Class="MECF.Framework.UI.Core.Accounts.RoleEditView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. Title="{DynamicResource GlobalLableAccountViewButtonRole}" Height="336" Width="722" ResizeMode="NoResize"
  5. WindowStartupLocation="CenterOwner" ShowInTaskbar="False">
  6. <Grid>
  7. <Grid.RowDefinitions>
  8. <RowDefinition Height="236*" />
  9. <RowDefinition Height="30*" />
  10. </Grid.RowDefinitions>
  11. <Grid Grid.Row="0">
  12. <DataGrid AutoGenerateColumns="False" CanUserAddRows="True" CanUserDeleteRows="True" ItemsSource="{Binding}" Margin="6,8,8,7" Name="dataGrid1" RowHeight="20" SelectionMode="Single" HorizontalScrollBarVisibility="Visible" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontFamily="Arial,SimSun" FontSize="15" Background="#FFB9DFDF" BorderThickness="2" BorderBrush="Black">
  13. <DataGrid.Columns>
  14. <DataGridTextColumn Binding="{Binding RoleName, Mode=TwoWay}" CanUserReorder="False" CanUserSort="True" Header="Role" IsReadOnly="False" Width="110" />
  15. </DataGrid.Columns>
  16. </DataGrid>
  17. </Grid>
  18. <Grid Grid.Row="1">
  19. <Button Content="{DynamicResource GlobalLableAccountViewButtonAdd}" Height="25" HorizontalAlignment="Right" Margin="0,3,253,0" Name="btnAddNew" VerticalAlignment="Top" Width="75" Click="btnAddNew_Click" FontSize="15" />
  20. <Button Content="{DynamicResource GlobalLableAccountViewButtonSave}" Height="25" HorizontalAlignment="Right" Margin="0,3,91,0" Name="btnSave" VerticalAlignment="Top" Width="75" Click="btnSave_Click" FontSize="15" />
  21. <Button Content="{DynamicResource GlobalLableButtonCancel}" Height="25" HorizontalAlignment="Right" Margin="0,3,10,0" Name="btnClose" VerticalAlignment="Top" Width="75" Click="btnClose_Click" FontSize="15" />
  22. <Button Content="{DynamicResource GlobalLableAccountViewButtonDelete}" Height="25" HorizontalAlignment="Right" Margin="0,3,172,0" Name="btnRoleDelete" VerticalAlignment="Top" Width="75" Click="btnRoleDelete_Click" FontSize="15" />
  23. </Grid>
  24. </Grid>
  25. </Window>