UserItemView.xaml 6.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <Window x:Class="Venus_MainPages.Views.UserItemView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:Venus_MainPages.Views"
  7. mc:Ignorable="d"
  8. xmlns:customControls="clr-namespace:Venus_Themes.CustomControls;assembly=Venus_Themes"
  9. Title="Create User" Height="300" Width="880" ResizeMode="NoResize"
  10. WindowStartupLocation="CenterOwner" ShowInTaskbar="False">
  11. <Grid>
  12. <Grid.ColumnDefinitions>
  13. <ColumnDefinition Width="439*"/>
  14. <ColumnDefinition Width="441*"/>
  15. </Grid.ColumnDefinitions>
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="100*" />
  18. <RowDefinition Height="40" />
  19. </Grid.RowDefinitions>
  20. <Border BorderThickness="2" BorderBrush="Black" Margin="12,12,12,40" Grid.ColumnSpan="2" Grid.RowSpan="2">
  21. <Grid HorizontalAlignment="Center" Name="NewAccountViewGrid" VerticalAlignment="Center">
  22. <Grid.ColumnDefinitions>
  23. <ColumnDefinition Width="150" />
  24. <ColumnDefinition Width="270" />
  25. <ColumnDefinition Width="150" />
  26. <ColumnDefinition Width="270" />
  27. </Grid.ColumnDefinitions>
  28. <Grid.RowDefinitions>
  29. <RowDefinition Height="60" />
  30. <RowDefinition Height="60" />
  31. <RowDefinition Height="60" />
  32. </Grid.RowDefinitions>
  33. <TextBlock Text="Name" Grid.Column="0" Grid.Row="0" Padding="10 22 0 0" FontSize="15" FontFamily="Arial,SimSun" ClipToBounds="True" />
  34. <TextBlock Text="Password" Grid.Column="2" Grid.Row="0" Padding="10 22 0 0" FontSize="15" FontFamily="Arial,SimSun" />
  35. <TextBlock Text="Confire Password" Grid.Column="0" Grid.Row="1" Padding="10 22 0 0" FontSize="15" FontFamily="Arial,SimSun" />
  36. <TextBlock Text="Role" Grid.Column="2" Grid.Row="1" Padding="10 22 0 0" FontSize="15" FontFamily="Arial,SimSun" />
  37. <TextBlock Text="Notes" Grid.Column="0" Grid.Row="2" Padding="10 22 0 0" FontSize="15" FontFamily="Arial,SimSun" />
  38. <!--<Label Content="Department" Grid.Column="0" Grid.Row="3" Margin="10,15" Name="label42" FontSize="15" FontFamily="Arial,SimSun" />
  39. <Label Content="Telephone" Grid.Column="2" Grid.Row="3" Margin="10,15" Name="labe51" FontSize="15" FontFamily="Arial,SimSun" />
  40. <Label Content="Mailbox" Grid.Column="0" Grid.Row="4" Margin="10,15" Name="label52" FontSize="15" FontFamily="Arial,SimSun" />
  41. <Label Content="Description" Grid.Column="0" Grid.Row="5" Margin="10,15" Name="label61" FontSize="15" FontFamily="Arial,SimSun" />
  42. <TextBox Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" IsEnabled="True" Margin="0,18,0,12" Name="textBoxAccountIdEdit" Width="270" VerticalAlignment="Center" Height="30" FontSize="15">
  43. </TextBox>-->
  44. <TextBox Grid.Column="1" Grid.Row="0" Name="textBoxName" VerticalAlignment="Center" HorizontalAlignment="Left" VerticalContentAlignment="Center" Width="220" Height="30" FontSize="15" Margin="0,15" Padding="10 2 0 0"/>
  45. <customControls:CustomPasswordBox Grid.Column="3" Grid.Row="0" Name="textBoxPassword" VerticalAlignment="Center" HorizontalAlignment="Left" VerticalContentAlignment="Center" Width="220" Height="30" FontSize="15" Margin="0,15" Padding="10 5 0 0"/>
  46. <customControls:CustomPasswordBox Grid.Column="1" Grid.Row="1" Name="textBoxConfirePassword" VerticalAlignment="Center" HorizontalAlignment="Left" VerticalContentAlignment="Center" Width="220" Height="30" FontSize="15" Margin="0,15" Padding="10 5 0 0"/>
  47. <!--<TextBox Grid.Column="1" Grid.Row="2" Name="textBoxDepartment" Text="{Binding Path=Department}" VerticalAlignment="Center" HorizontalAlignment="Left" Width="220" Height="30" FontSize="15" Margin="0,15" />-->
  48. <ComboBox Grid.Column="3" Grid.Row="1" Height="29" HorizontalAlignment="Left" Margin="0,15,0,0" Name="comBoboxRole" VerticalAlignment="Top" Width="220" FontSize="15" Style="{StaticResource customeComboBoxStyle}" SelectedIndex="0">
  49. <ComboBoxItem>Manager</ComboBoxItem>
  50. <ComboBoxItem>Engineer</ComboBoxItem>
  51. <ComboBoxItem>Technician</ComboBoxItem>
  52. <ComboBoxItem>Operator</ComboBoxItem>
  53. </ComboBox>
  54. <TextBox Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="3" VerticalAlignment="Center" HorizontalAlignment="Left" VerticalContentAlignment="Center" Height="30" Width="640" x:Name="textBoxNotes"/>
  55. <!--<TextBox Grid.Column="3" Grid.Row="3" Name="textBoxPhone" VerticalAlignment="Center" HorizontalAlignment="Left" Width="270" Height="30" FontSize="15" Margin="0,15">
  56. </TextBox>
  57. <TextBox Grid.Column="1" Grid.Row="4" Name="textBox5" VerticalAlignment="Center" HorizontalAlignment="Left" Width="270" Height="30" FontSize="15" Margin="0,15">
  58. </TextBox>
  59. <TextBox Grid.Column="1" Grid.Row="5" Name="textBox51" Text="{Binding Path=Description}" VerticalAlignment="Center" HorizontalAlignment="Left" Width="270" Height="30" FontSize="15" Margin="0,15" />
  60. <Label Content="Role" FontFamily="Arial,SimSun" FontSize="15" Margin="10,15" Name="label2" Grid.Column="2" Grid.Row="4" />
  61. --><!--<CheckBox Content="{DynamicResource GlobalLableAccountViewEnabled}" Grid.Column="3" Grid.Row="5" Height="19" HorizontalAlignment="Left" Margin="0,20,0,0" Name="checkBox1" VerticalAlignment="Top" FontSize="15" Width="103" IsChecked="{Binding AccountStatus}" />--><!--
  62. <Label Content="Status:" FontFamily="Arial,SimSun" FontSize="15" Grid.Row="5" Margin="10,15" Name="label3" Grid.Column="2" Visibility="Hidden" />-->
  63. <!--<ComboBox Style="{StaticResource customeComboBoxStyle}" Grid.Column="3" Grid.Row="4" Height="29" HorizontalAlignment="Left" Margin="0,15,0,0" Name="comboBoxGroup" VerticalAlignment="Top" Width="270" FontSize="15" />-->
  64. </Grid>
  65. </Border>
  66. <Grid Grid.Row="1" Grid.ColumnSpan="2">
  67. <Button Content="Create" Height="29" HorizontalAlignment="Left" Margin="673,6,0,0" Name="button1" VerticalAlignment="Top" Width="81" FontSize="15" Click="CreateButton_Click"/>
  68. </Grid>
  69. </Grid>
  70. </Window>