PhoneNumBinding Window 错位问题

This commit is contained in:
RMBGAME
2021-11-24 19:22:29 +08:00
parent e28a251b38
commit cfb9786044
4 changed files with 4 additions and 4 deletions
@@ -5,7 +5,6 @@
mc:Ignorable="d"
d:DesignWidth="400" d:DesignHeight="370"
Width="400" Height="370"
MinWidth="400" MinHeight="370"
MaxWidth="400" MaxHeight="370"
x:Class="System.Application.UI.Views.Windows.BindPhoneNumberWindow"
xmlns:controls="clr-namespace:System.Application.UI.Views.Controls"
@@ -16,6 +15,7 @@
xmlns:ms="using:System.Application.Settings"
FontFamily="{Binding Source={x:Static ms:UISettings.FontName},Path=Value, Mode=OneWay,Converter={StaticResource NameToFontFamilyConverter}}"
Background="Transparent"
CanResize="False"
ExtendClientAreaTitleBarHeightHint="30"
WindowStartupLocation="CenterOwner"
x:DataType="vm:BindPhoneNumberWindowViewModel"
@@ -11,7 +11,7 @@ namespace System.Application.UI.Views.Windows
readonly TextBox TbPhoneNumber;
readonly TextBox TbSmsCode;
public BindPhoneNumberWindow()
public BindPhoneNumberWindow() : base(false)
{
InitializeComponent();
TbSmsCode = this.FindControl<TextBox>(nameof(TbSmsCode));
@@ -5,7 +5,6 @@
mc:Ignorable="d"
d:DesignWidth="400" d:DesignHeight="370"
Width="400" Height="370"
MinWidth="400" MinHeight="370"
MaxWidth="400" MaxHeight="370"
x:Class="System.Application.UI.Views.Windows.ChangeBindPhoneNumberWindow"
xmlns:controls="clr-namespace:System.Application.UI.Views.Controls"
@@ -17,6 +16,7 @@
xmlns:ms="using:System.Application.Settings"
FontFamily="{Binding Source={x:Static ms:UISettings.FontName},Path=Value, Mode=OneWay,Converter={StaticResource NameToFontFamilyConverter}}"
Background="Transparent"
CanResize="False"
ExtendClientAreaTitleBarHeightHint="30"
WindowStartupLocation="CenterOwner"
x:DataType="vm:ChangeBindPhoneNumberWindowViewModel"
@@ -15,7 +15,7 @@ namespace System.Application.UI.Views.Windows
readonly TextBox TbSmsCodeValidation;
readonly TextBox TbSmsCodeNew;
public ChangeBindPhoneNumberWindow() : base()
public ChangeBindPhoneNumberWindow() : base(false)
{
InitializeComponent();
TbSmsCodeValidation = this.FindControl<TextBox>(nameof(TbSmsCodeValidation));