feat: 登录按钮
This commit is contained in:
parent
6e91d46415
commit
1326c7385f
@ -29,10 +29,9 @@
|
|||||||
</Grid.Background>
|
</Grid.Background>
|
||||||
<Border Height="390" VerticalAlignment="Top"
|
<Border Height="390" VerticalAlignment="Top"
|
||||||
Background="#220000" CornerRadius="0 0 180 0">
|
Background="#220000" CornerRadius="0 0 180 0">
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal" >
|
||||||
<StackPanel Width="350">
|
<StackPanel Width="350">
|
||||||
<Image Width="300" Height="300" Margin="30"
|
<!-- <Image Width="300" Height="300" Margin="30" VerticalAlignment="Top" Stretch="Fill" Source="pack://application:,,,/VideoConcat;component/Images/left.png"/>-->
|
||||||
VerticalAlignment="Top" Stretch="Fill" Source="pack://application:,,,/VideoConcat;component/Images/left.png"/>
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<StackPanel Width="350">
|
<StackPanel Width="350">
|
||||||
<StackPanel Margin="20,40">
|
<StackPanel Margin="20,40">
|
||||||
@ -58,6 +57,7 @@
|
|||||||
Margin="10,0" BorderBrush="White"
|
Margin="10,0" BorderBrush="White"
|
||||||
CaretBrush="#FFD94448" Foreground="White"
|
CaretBrush="#FFD94448" Foreground="White"
|
||||||
SelectionBrush="#FFD94448"
|
SelectionBrush="#FFD94448"
|
||||||
|
materialDesign:HintAssist.Hint="输入 密码"
|
||||||
/>
|
/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<StackPanel Margin="10" HorizontalAlignment="Center">
|
<StackPanel Margin="10" HorizontalAlignment="Center">
|
||||||
@ -65,14 +65,14 @@
|
|||||||
materialDesign:ButtonAssist.CornerRadius="10"
|
materialDesign:ButtonAssist.CornerRadius="10"
|
||||||
Background="#D94448" BorderBrush="#D94448" BorderThickness="2"
|
Background="#D94448" BorderBrush="#D94448" BorderThickness="2"
|
||||||
Content="登录" Foreground="White" ToolTip="登录"
|
Content="登录" Foreground="White" ToolTip="登录"
|
||||||
Style="{StaticResource MaterialDesignRaisedButton}"/>
|
Style="{StaticResource MaterialDesignRaisedButton}" Click="BtnLogin_Click"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<StackPanel Width="100">
|
<StackPanel Width="100">
|
||||||
<Button x:Name="btnExit" Margin="5,10" Background="{x:Null}"
|
<Button x:Name="btnExit" Margin="5,10" Background="{x:Null}"
|
||||||
Click="BtnExit_Click" Style="{StaticResource MaterialDesignFloatingActionButton}"
|
Click="BtnExit_Click" Style="{StaticResource MaterialDesignFloatingActionButton}"
|
||||||
ToolTip="关闭">
|
ToolTip="关闭" Height="36" Width="36">
|
||||||
<materialDesign:PackIcon Width="20" Height="20"
|
<materialDesign:PackIcon Width="20" Height="20"
|
||||||
Foreground="White" Kind="Close"/>
|
Foreground="White" Kind="Close"/>
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@ -25,5 +25,18 @@ namespace VideoConcat
|
|||||||
this.DragMove();
|
this.DragMove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void BtnLogin_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
if (txtUserName.Text == "admin" && txtPassword.Password == "123456")
|
||||||
|
{
|
||||||
|
MessageBox.Show("登录成功");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
MessageBox.Show("用户名或者密码错误!");
|
||||||
|
txtUserName.Clear();
|
||||||
|
//txtUserName.Text = "";
|
||||||
|
txtPassword.Clear();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user