MotifyPhoneView.xaml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <Window x:Class="Muchinfo.MTPClient.Bank.Views.MotifyPhoneView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:converters="clr-namespace:Muchinfo.MTPClient.Infrastructure.Converters;assembly=Client.Infrastructure"
  5. xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
  6. xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
  7. x:Name="modifyWindow"
  8. Title="{x:Static resource:Client_Resource.Bank_ModifySignPhone}"
  9. Width="400"
  10. Height="240"
  11. ShowInTaskbar="False"
  12. Style="{DynamicResource DialogWindowStyle}">
  13. <Window.Resources>
  14. <BooleanToVisibilityConverter x:Key="ToVisibilityConverter" />
  15. <converters:BoolOpposedVisibility x:Key="OpposedVisibility" />
  16. </Window.Resources>
  17. <xctk:BusyIndicator IsBusy="{Binding IsBusy, Mode=TwoWay}">
  18. <Grid>
  19. <Grid.ColumnDefinitions>
  20. <ColumnDefinition Width="120" />
  21. <ColumnDefinition />
  22. </Grid.ColumnDefinitions>
  23. <Grid.RowDefinitions>
  24. <RowDefinition Height="20" />
  25. <RowDefinition Height="50" />
  26. <RowDefinition Height="50" />
  27. <RowDefinition />
  28. </Grid.RowDefinitions>
  29. <TextBlock Grid.Row="1"
  30. HorizontalAlignment="Right"
  31. VerticalAlignment="Center"
  32. Text="{x:Static resource:Client_Resource.Content_Contact}" />
  33. <TextBox Grid.Row="1"
  34. Grid.Column="1"
  35. Width="120"
  36. Margin="5,1,0,1"
  37. HorizontalAlignment="Left"
  38. VerticalAlignment="Center"
  39. Style="{DynamicResource TextBoxStyle}"
  40. Text="{Binding MobilePhone,
  41. UpdateSourceTrigger=PropertyChanged}" />
  42. <TextBlock Grid.Row="2"
  43. Grid.Column="0"
  44. Margin="5,0,0,0"
  45. HorizontalAlignment="Right"
  46. VerticalAlignment="Center"
  47. Text="{x:Static resource:Client_Resource.Money_IdentifyCode}"
  48. Visibility="{Binding IsShowIdentifyCode,
  49. Converter={StaticResource ToVisibilityConverter}}" />
  50. <StackPanel Grid.Row="2"
  51. Grid.Column="1"
  52. Margin="5,1,0,1"
  53. Orientation="Horizontal">
  54. <TextBox Width="90"
  55. Margin="0"
  56. VerticalAlignment="Center"
  57. Style="{DynamicResource TextBoxStyle}"
  58. Text="{Binding CurrentSigningBank.IdentifyCode}" />
  59. <TextBlock Margin="5,0,0,0"
  60. HorizontalAlignment="Center"
  61. VerticalAlignment="Center"
  62. Text="{Binding CurrentTick}"
  63. Visibility="{Binding IsEnalbe,
  64. Converter={StaticResource OpposedVisibility}}" />
  65. <Button Margin="5,0,0,0"
  66. HorizontalAlignment="Left"
  67. VerticalAlignment="Center"
  68. Command="{Binding IdentifyCodeCommand}"
  69. Content="{x:Static resource:Client_Resource.Content_GetIdentifyCode}"
  70. IsEnabled="{Binding IsEnalbe}"
  71. Padding="3,2"
  72. Style="{DynamicResource CommonButtonStyle}"
  73. Visibility="{Binding IsEnalbe,
  74. Converter={StaticResource ToVisibilityConverter}}" />
  75. </StackPanel>
  76. <StackPanel Grid.Row="4"
  77. Grid.RowSpan="2"
  78. Grid.ColumnSpan="2"
  79. HorizontalAlignment="Center"
  80. Orientation="Horizontal">
  81. <Button Width="82"
  82. Height="26"
  83. Command="{Binding OKCommand}"
  84. CommandParameter="{Binding ElementName=modifyWindow}"
  85. Content="{x:Static resource:Client_Resource.Button_Confirm}"
  86. IsDefault="True"
  87. IsEnabled="{Binding OKButtonEnabled}"
  88. Style="{DynamicResource CommonButtonStyle}"
  89. TabIndex="5" />
  90. <Button Width="82"
  91. Height="26"
  92. Margin="60,0,0,0"
  93. Click="ButtonBase_OnClick"
  94. Content="{x:Static resource:Client_Resource.Button_Cancel}"
  95. Style="{DynamicResource CommonButtonStyle}"
  96. TabIndex="6" />
  97. </StackPanel>
  98. </Grid>
  99. </xctk:BusyIndicator>
  100. </Window>