| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378 |
- <Window x:Class="Muchinfo.MTPClient.Account.Views.TradePWDModifyView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:password="clr-namespace:Muchinfo.WPF.Controls.Password;assembly=Client.WPF.Controls"
- xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
- xmlns:utilities="clr-namespace:Muchinfo.MTPClient.Account.Utilities"
- xmlns:windows="clr-namespace:Muchinfo.WPF.Controls.Windows;assembly=Client.WPF.Controls"
- xmlns:windows1="clr-namespace:Muchinfo.MTPClient.Infrastructure.Windows;assembly=Client.Infrastructure"
- xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
- x:Name="view"
- Title="{x:Static resource:Client_Resource.TradPWDModify_Title}"
- Width="360"
- Height="320"
- ShowInTaskbar="False"
- Style="{DynamicResource DialogWindowStyle1}"
- WindowStartupLocation="CenterOwner"
- mc:Ignorable="d">
- <Window.Resources>
- <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
- <Style x:Key="NewTypeTextBlock" TargetType="{x:Type TextBlock}">
- <Setter Property="HorizontalAlignment" Value="Right" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="Foreground" Value="{DynamicResource TextBlockForeground}" />
- </Style>
- <!-- 需要控制右上角X按钮,样式复制到此窗口 -->
- <Style x:Key="DialogWindowStyle1" TargetType="{x:Type Window}">
- <Setter Property="AllowsTransparency" Value="True" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="FontFamily" Value="Simsun, Microsoft YaHei" />
- <Setter Property="Foreground" Value="{DynamicResource DialogWindowContnetForeground}" />
- <Setter Property="FontSize" Value="{DynamicResource MuchinfoFontSize_XS}" />
- <Setter Property="ResizeMode" Value="NoResize" />
- <Setter Property="WindowStyle" Value="None" />
- <Setter Property="SnapsToDevicePixels" Value="True" />
- <Setter Property="TextOptions.TextFormattingMode" Value="Display" />
- <Setter Property="Width" Value="565" />
- <Setter Property="Height" Value="529" />
- <Setter Property="ShowInTaskbar" Value="False" />
- </Style>
- </Window.Resources>
- <Grid Margin="10">
- <Rectangle RadiusX="2" RadiusY="2">
- <Rectangle.Effect>
- <DropShadowEffect BlurRadius="10" ShadowDepth="0" />
- </Rectangle.Effect>
- </Rectangle>
- <Border Background="{DynamicResource DialogWindowBackground}" CornerRadius="2">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="47" />
- <RowDefinition Height="1" />
- <RowDefinition Height="1" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
- <Border x:Name="brdTitle"
- Margin="30,5,30,0"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- Background="Transparent">
- <TextBlock HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- FontWeight="Bold"
- Foreground="{DynamicResource DialogWindowTitleForeground}"
- Text="{x:Static resource:Client_Resource.TradPWDModify_Title}"
- TextTrimming="CharacterEllipsis"
- ToolTip="{x:Static resource:Client_Resource.TradPWDModify_Title}" />
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="MouseMove">
- <i:InvokeCommandAction Command="{x:Static windows1:DialogWindowCommands.DragMove}" CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </Border>
- <Button x:Name="btnClose"
- Width="20"
- Margin="10,2"
- HorizontalAlignment="Right"
- Command="{x:Static windows1:DialogWindowCommands.Close}"
- CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor,
- AncestorType={x:Type Window}}}"
- IsCancel="True"
- Padding="2"
- Style="{DynamicResource DialogCloseButtonStyle}"
- Visibility="{Binding IsUnforceUpdate,
- Converter={StaticResource BooleanToVisibilityConverter}}" />
- </Grid>
- <Separator Grid.Row="1"
- Margin="20,0"
- VerticalAlignment="Bottom"
- Panel.ZIndex="10"
- BorderBrush="{DynamicResource DialogWindowSeparatorTop}"
- Style="{DynamicResource ThinSeparatorStyle}" />
- <Separator Grid.Row="2"
- Margin="20,0"
- VerticalAlignment="Bottom"
- Panel.ZIndex="10"
- BorderBrush="{DynamicResource DialogWindowSeparatorBottom}"
- Style="{DynamicResource ThinSeparatorStyle}" />
- <!-- <ContentPresenter Grid.Row="3" /> -->
- <xctk:BusyIndicator Grid.Row="3"
- BusyContent="{x:Static resource:Client_Resource.Content_Busy}"
- Foreground="{DynamicResource DialogWindowTitleForeground}"
- IsBusy="{Binding IsBusy,
- Mode=TwoWay}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <!-- Width="262" -->
- <TabControl Margin="20,20,20,0"
- HorizontalAlignment="Stretch"
- Background="Transparent"
- BorderThickness="0"
- TabStripPlacement="Top">
- <TabItem Width="100"
- Height="30"
- Margin="-8,0,0,0"
- Header="{x:Static resource:Client_Resource.Content_LoadPWDUpdate}"
- IsSelected="{Binding IsTradePanel}"
- Style="{DynamicResource AccountTabItemStyle}">
- <StackPanel Margin="40,5,0,0">
- <WrapPanel Margin="0,10,0,0">
- <TextBlock Text="{x:Static resource:Client_Resource.Text_TradeAccount}" />
- <TextBlock Text="{Binding LoginID}" />
- </WrapPanel>
- <WrapPanel Margin="0,10,0,0">
- <TextBlock VerticalAlignment="Center" Text="{x:Static resource:Client_Resource.Text_OldTradePassword}" />
- <PasswordBox Width="150"
- Height="24"
- FontFamily="Simsun, Microsoft YaHei"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- password:PasswordHelper.Attach="True"
- password:PasswordHelper.Password="{Binding OldLoginPassword,
- Mode=TwoWay,
- UpdateSourceTrigger=PropertyChanged}" />
- </WrapPanel>
- <WrapPanel Margin="0,10,0,0">
- <TextBlock VerticalAlignment="Center" Text="{x:Static resource:Client_Resource.Text_Password}" />
- <PasswordBox Width="150"
- Height="24"
- FontFamily="Simsun, Microsoft YaHei"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- password:PasswordHelper.Attach="True"
- password:PasswordHelper.Password="{Binding NewLoginPassword,
- Mode=TwoWay,
- UpdateSourceTrigger=PropertyChanged}" />
- </WrapPanel>
- <WrapPanel Margin="0,10,0,0">
- <TextBlock VerticalAlignment="Center" Text="{x:Static resource:Client_Resource.Text_ConfPassword}" />
- <PasswordBox Width="150"
- Height="24"
- FontFamily="Simsun, Microsoft YaHei"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- password:PasswordHelper.Attach="True"
- password:PasswordHelper.Password="{Binding ConfLoginPassword,
- Mode=TwoWay,
- UpdateSourceTrigger=PropertyChanged}" />
- </WrapPanel>
- </StackPanel>
- </TabItem>
- <!--
- <TabItem Header="{x:Static resource:Client_Resource.Content_TelphonePWDUpdate}"
- IsSelected="{Binding IsPhonePanel}"
- Style="{DynamicResource AccountTabItemStyle}"
- Visibility="Collapsed">
- <StackPanel Margin="40,5,0,0">
-
- <WrapPanel Margin="0,10,0,0">
- <TextBlock Text="{x:Static resource:Client_Resource.Text_TradeAccount}" />
- <TextBlock Text="{Binding TradeAccount}" />
- </WrapPanel>
-
- <WrapPanel Margin="0,10,0,0">
- <TextBlock VerticalAlignment="Center" Text="{x:Static resource:Client_Resource.Text_OldTelphonePassword}" />
- <PasswordBox Width="150"
- Height="24"
- FontFamily="Simsun, Microsoft YaHei"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- password:PasswordHelper.Attach="True"
- password:PasswordHelper.Password="{Binding OldPhonePassword,
- Mode=TwoWay,
- UpdateSourceTrigger=PropertyChanged}" />
- </WrapPanel>
-
- <WrapPanel Margin="0,10,0,0">
- <TextBlock VerticalAlignment="Center" Text="{x:Static resource:Client_Resource.Text_Password}" />
- <PasswordBox Width="150"
- Height="24"
- FontFamily="Simsun, Microsoft YaHei"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- password:PasswordHelper.Attach="True"
- password:PasswordHelper.Password="{Binding NewPhonePassword,
- Mode=TwoWay,
- UpdateSourceTrigger=PropertyChanged}" />
- </WrapPanel>
-
- <WrapPanel Margin="0,10,0,0">
- <TextBlock VerticalAlignment="Center" Text="{x:Static resource:Client_Resource.Text_ConfPassword}" />
- <PasswordBox Width="150"
- Height="24"
- FontFamily="Simsun, Microsoft YaHei"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- password:PasswordHelper.Attach="True"
- password:PasswordHelper.Password="{Binding ConfPhonePassword,
- Mode=TwoWay,
- UpdateSourceTrigger=PropertyChanged}" />
- </WrapPanel>
- </StackPanel>
- </TabItem>
- <TabItem Header="{x:Static resource:Client_Resource.Content_CommunicationPWDUpdate}"
- IsSelected="{Binding IsCommunicationPanel}"
- Style="{DynamicResource AccountTabItemStyle}"
- Visibility="Collapsed">
- <StackPanel Margin="40,5,0,0">
-
- <WrapPanel Margin="0,10,0,0">
- <TextBlock Text="{x:Static resource:Client_Resource.Text_TradeAccount}" />
- <TextBlock Text="{Binding TradeAccount}" />
- </WrapPanel>
-
- <WrapPanel Margin="0,10,0,0">
- <TextBlock VerticalAlignment="Center" Text="{x:Static resource:Client_Resource.Text_OldCommunicationPassword}" />
- <PasswordBox Width="150"
- Height="24"
- FontFamily="Simsun, Microsoft YaHei"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- password:PasswordHelper.Attach="True"
- password:PasswordHelper.Password="{Binding OldCommunicationPassword,
- Mode=TwoWay,
- UpdateSourceTrigger=PropertyChanged}" />
- </WrapPanel>
-
- <WrapPanel Margin="0,10,0,0">
- <TextBlock VerticalAlignment="Center" Text="{x:Static resource:Client_Resource.Text_Password}" />
- <PasswordBox Width="150"
- Height="24"
- FontFamily="Simsun, Microsoft YaHei"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- password:PasswordHelper.Attach="True"
- password:PasswordHelper.Password="{Binding NewCommunicationPassword,
- Mode=TwoWay,
- UpdateSourceTrigger=PropertyChanged}" />
- </WrapPanel>
-
- <WrapPanel Margin="0,10,0,0">
- <TextBlock VerticalAlignment="Center" Text="{x:Static resource:Client_Resource.Text_ConfPassword}" />
- <PasswordBox Width="150"
- Height="24"
- FontFamily="Simsun, Microsoft YaHei"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- password:PasswordHelper.Attach="True"
- password:PasswordHelper.Password="{Binding ConfCommunicationPassword,
- Mode=TwoWay,
- UpdateSourceTrigger=PropertyChanged}" />
- </WrapPanel>
- </StackPanel>
- </TabItem>
- -->
- <!-- 资管无资金密码修改 -->
- <TabItem Width="100"
- Height="30"
- Margin="-8,0,0,0"
- Header="{x:Static resource:Client_Resource.Content_CapitalPWDUpdate}"
- IsSelected="{Binding IsFundsPanel}"
- Style="{DynamicResource AccountTabItemStyle}"
- Visibility="Collapsed">
- <StackPanel Margin="40,5,0,0">
- <WrapPanel Margin="0,10,0,0">
- <TextBlock Text="资金账户:" />
- <utilities:FocusComboBox x:Name="fundComBoxBox"
- Grid.Row="2"
- Grid.Column="2"
- Width="150"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- ItemsSource="{Binding FundsLst}"
- SelectedIndex="0"
- SelectedItem="{Binding CurrentFundID,
- Mode=TwoWay}"
- Style="{DynamicResource SimpleComboBoxStyle}"
- TabIndex="1" />
- </WrapPanel>
- <WrapPanel Margin="0,10,0,0">
- <TextBlock VerticalAlignment="Center" Text="{x:Static resource:Client_Resource.Text_OldCapitalPassword}" />
- <PasswordBox Width="150"
- Height="24"
- FontFamily="Simsun, Microsoft YaHei"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- password:PasswordHelper.Attach="True"
- password:PasswordHelper.Password="{Binding OldFundsPassword,
- Mode=TwoWay,
- UpdateSourceTrigger=PropertyChanged}" />
- </WrapPanel>
- <WrapPanel Margin="0,10,0,0">
- <TextBlock VerticalAlignment="Center" Text="{x:Static resource:Client_Resource.Text_Password}" />
- <PasswordBox x:Name="NewFundsPassword"
- Width="150"
- Height="24"
- FontFamily="Simsun, Microsoft YaHei"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- KeyDown="NewFundsPassword_OnKeyDown"
- password:PasswordHelper.Attach="True"
- password:PasswordHelper.Password="{Binding NewFundsPassword,
- Mode=TwoWay,
- UpdateSourceTrigger=PropertyChanged}" />
- </WrapPanel>
- <WrapPanel Margin="0,10,0,0">
- <TextBlock VerticalAlignment="Center" Text="{x:Static resource:Client_Resource.Text_ConfPassword}" />
- <PasswordBox x:Name="ConfFundsPassword"
- Width="150"
- Height="24"
- FontFamily="Simsun, Microsoft YaHei"
- FontSize="{DynamicResource MuchinfoFontSize_M}"
- KeyDown="ConfFundsPassword_OnKeyDown"
- password:PasswordHelper.Attach="True"
- password:PasswordHelper.Password="{Binding ConfFundsPassword,
- Mode=TwoWay,
- UpdateSourceTrigger=PropertyChanged}" />
- </WrapPanel>
- </StackPanel>
- </TabItem>
- </TabControl>
- <TextBlock Grid.Row="1"
- Width="240"
- Height="23"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- Foreground="Red"
- Text="{Binding ErrorMsg}"
- TextTrimming="WordEllipsis"
- ToolTip="{Binding ErrorMsg}" />
- <WrapPanel Grid.Row="2"
- Margin="0,0,0,10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center">
- <Button Margin="0,0,30,0"
- BorderThickness="0"
- Command="{Binding OKCommand}"
- CommandParameter="{Binding ElementName=view}"
- Content="{x:Static resource:Client_Resource.Button_Ok}"
- IsDefault="True"
- Style="{StaticResource CommonButtonStyle}" />
- <Button BorderThickness="0"
- Command="{Binding CancelCommand}"
- CommandParameter="{Binding ElementName=view}"
- Content="{x:Static resource:Client_Resource.Button_Cancel}"
- Style="{StaticResource CommonButtonStyle}"
- Visibility="{Binding IsUnforceUpdate,
- Converter={StaticResource BooleanToVisibilityConverter}}" />
- </WrapPanel>
- </Grid>
- </xctk:BusyIndicator>
- </Grid>
- </Border>
- </Grid>
- </Window>
|