AccountManagerView.xaml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <UserControl x:Class="Muchinfo.MTPClient.Account.Views.AccountManagerView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:utilities="clr-namespace:Muchinfo.MTPClient.Account.Utilities"
  7. xmlns:views="clr-namespace:Muchinfo.MTPClient.Account.Views"
  8. x:Name="ManagerControl"
  9. DataContext="{Binding AccountManager,
  10. Source={StaticResource Locator}}"
  11. mc:Ignorable="d">
  12. <UserControl.Resources>
  13. <utilities:PowerConverter x:Key="powerConverter" />
  14. </UserControl.Resources>
  15. <Grid Background="{DynamicResource MuchinfoBrush5}">
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="Auto" />
  18. <RowDefinition Height="Auto" />
  19. <RowDefinition />
  20. </Grid.RowDefinitions>
  21. <!--
  22. Separator Grid.Row="0"
  23. Margin="8,0"
  24. Style="{DynamicResource ThinSeparatorStyle}" />
  25. -->
  26. <Border x:Name="headerBorder"
  27. Grid.Row="1"
  28. Grid.ColumnSpan="3"
  29. Background="{DynamicResource MuchinfoBrush75}">
  30. <views:TradeHeaderView x:Name="TradeHeader" Height="36" />
  31. </Border>
  32. <Grid x:Name="AccountGrid"
  33. Grid.Row="2"
  34. Background="{DynamicResource MuchinfoBrush99}"
  35. Visibility="{Binding AccountVisibility,
  36. Mode=TwoWay}">
  37. <Grid.ColumnDefinitions>
  38. <ColumnDefinition Width="Auto" />
  39. <ColumnDefinition Width="*" />
  40. </Grid.ColumnDefinitions>
  41. <Border x:Name="OrderContent"
  42. Grid.Column="1"
  43. Margin="8,8,8,4"
  44. Background="{DynamicResource MuchinfoBrush5}"
  45. BorderBrush="{DynamicResource MuchinfoBrush67}"
  46. BorderThickness="4"
  47. CornerRadius="2">
  48. <ContentControl Content="{Binding OldContent, Mode=TwoWay}" />
  49. </Border>
  50. <GridSplitter x:Name="AccountSplitter"
  51. Grid.Column="1"
  52. Width="5"
  53. Margin="8,0"
  54. HorizontalAlignment="Left"
  55. VerticalAlignment="Stretch"
  56. Background="Transparent" />
  57. </Grid>
  58. <!--
  59. <Border Grid.Row="1"
  60. Grid.RowSpan="2"
  61. Grid.ColumnSpan="3"
  62. Background="{DynamicResource MuchinfoBrush1}"
  63. Visibility="{Binding LockPanelVisibility,
  64. Mode=TwoWay}"
  65. d:IsHidden="true">
  66. <Border HorizontalAlignment="Center"
  67. VerticalAlignment="Center"
  68. CornerRadius="5">
  69. <Border Margin="5" CornerRadius="3">
  70. <StackPanel Orientation="Vertical">
  71. <StackPanel Orientation="Horizontal">
  72. <TextBlock Margin=" 0,0,8,0"
  73. VerticalAlignment="Center"
  74. Foreground="{DynamicResource MuchinfoBrush3}"
  75. Text="请输入解锁密码:" />
  76. <PasswordBox Width="150"
  77. Height="24"
  78. VerticalAlignment="Center"
  79. BorderBrush="{DynamicResource MuchinfoBrush22}"
  80. BorderThickness="1"
  81. KeyUp="Password_OnKeyUp"
  82. controls:PasswordHelper.Attach="True"
  83. controls:PasswordHelper.Password="{Binding Password,
  84. Mode=TwoWay,
  85. UpdateSourceTrigger=PropertyChanged}" />
  86. </StackPanel>
  87. <StackPanel Margin="0,18,0,0" Orientation="Horizontal">
  88. <Button Width="70"
  89. Margin="10,0,0,0"
  90. Command="{Binding OKCommand}"
  91. Content="确定"
  92. IsDefault="True"
  93. Style="{DynamicResource CommonButtonStyle}" />
  94. <Button Width="70"
  95. Margin="8,0"
  96. Command="{Binding ResetCommand}"
  97. Content="重置"
  98. Style="{DynamicResource CommonButtonStyle}" />
  99. <Button Width="70"
  100. Command="{Binding ExitCommand}"
  101. Content="退出"
  102. Style="{DynamicResource CommonButtonStyle}" />
  103. </StackPanel>
  104. </StackPanel>
  105. </Border>
  106. </Border>
  107. </Border>
  108. -->
  109. </Grid>
  110. </UserControl>