-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
417 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
<Window x:Class="IPAM_NOTE.UserWindows.SetPasswordWindow" | ||
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:local="clr-namespace:IPAM_NOTE.UserWindows" | ||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" | ||
Background="{DynamicResource MaterialDesignDarkBackground}" | ||
Foreground="{DynamicResource MaterialDesignDarkForeground}" | ||
TextElement.FontWeight="Medium" | ||
TextElement.FontSize="14" | ||
ResizeMode="NoResize" | ||
FontFamily="SimHei" | ||
mc:Ignorable="d" | ||
Title="设置数据库密码" | ||
Style="{DynamicResource MaterialDesignWindow}" | ||
Height="430" | ||
Width="800" | ||
WindowStartupLocation="CenterScreen" | ||
> | ||
<Grid> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="*"/> | ||
<ColumnDefinition Width="350"/> | ||
</Grid.ColumnDefinitions> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="50"/> | ||
<RowDefinition Height="*"/> | ||
</Grid.RowDefinitions> | ||
|
||
<TextBlock | ||
Grid.Column="0" | ||
Grid.ColumnSpan="2" | ||
Margin="5" | ||
Panel.ZIndex="100" | ||
VerticalAlignment="Center" | ||
Style="{StaticResource MaterialDesignHeadline4TextBlock}" | ||
Text="IPAM-NOTE IP地址分配记录系统" /> | ||
|
||
<Image | ||
Grid.Column="0" | ||
Grid.Row="0" | ||
Grid.ColumnSpan="2" | ||
Grid.RowSpan="2" | ||
Opacity="0.3" | ||
Source="/Resources/LOGIN.png" | ||
Stretch="Uniform"/> | ||
<StackPanel | ||
Grid.Column="1" | ||
Grid.Row="1" | ||
HorizontalAlignment="Center" | ||
VerticalAlignment="Center" | ||
> | ||
<TextBlock | ||
Margin="52,0,0,8" | ||
Style="{StaticResource MaterialDesignHeadline6TextBlock}" | ||
Text="数据库密码设置" /> | ||
|
||
<StackPanel | ||
x:Name="Tag1Panel" | ||
Margin="5" | ||
Orientation="Horizontal" | ||
VerticalAlignment="Center" | ||
HorizontalAlignment="Stretch" | ||
materialDesign:HintAssist.Hint="密码" | ||
> | ||
|
||
<materialDesign:PackIcon | ||
Margin="5" | ||
Kind="PasswordOutline" | ||
VerticalAlignment="Center" | ||
Height="32" | ||
Width="32" | ||
|
||
|
||
/> | ||
<StackPanel | ||
Margin="5" | ||
Orientation="Vertical"> | ||
<PasswordBox | ||
Width="250" | ||
materialDesign:HintAssist.Hint="设置数据库密码" | ||
|
||
Style="{StaticResource MaterialDesignFilledPasswordBox}" /> | ||
</StackPanel> | ||
</StackPanel> | ||
<StackPanel | ||
|
||
Margin="5" | ||
Orientation="Horizontal" | ||
VerticalAlignment="Center" | ||
HorizontalAlignment="Stretch" | ||
materialDesign:HintAssist.Hint="再次输入密码" | ||
> | ||
|
||
<materialDesign:PackIcon | ||
Margin="5" | ||
Kind="PasswordOutline" | ||
VerticalAlignment="Center" | ||
Height="32" | ||
Width="32" | ||
|
||
|
||
/> | ||
|
||
<StackPanel | ||
Margin="5" | ||
Orientation="Vertical"> | ||
<PasswordBox | ||
Width="250" | ||
materialDesign:HintAssist.Hint="请再次输入密码" | ||
|
||
Style="{StaticResource MaterialDesignFilledPasswordBox}" /> | ||
</StackPanel> | ||
|
||
</StackPanel> | ||
|
||
<StackPanel | ||
|
||
Margin="5" | ||
Orientation="Horizontal" | ||
VerticalAlignment="Center" | ||
HorizontalAlignment="Stretch" | ||
materialDesign:HintAssist.Hint="端口号" | ||
> | ||
|
||
<materialDesign:PackIcon | ||
Margin="5" | ||
Kind="ContentSaveOutline" | ||
VerticalAlignment="Center" | ||
Height="32" | ||
Width="32" | ||
|
||
|
||
/> | ||
<Button | ||
HorizontalAlignment="Right" | ||
Margin="5" | ||
Width="250" | ||
Height="45" | ||
Content="保存" | ||
Style="{StaticResource MaterialDesignFlatDarkBgButton}" | ||
materialDesign:ButtonAssist.CornerRadius="5" | ||
ToolTip="保存密码" /> | ||
|
||
|
||
</StackPanel> | ||
</StackPanel> | ||
|
||
</Grid> | ||
</Window> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
using System.Windows.Data; | ||
using System.Windows.Documents; | ||
using System.Windows.Input; | ||
using System.Windows.Media; | ||
using System.Windows.Media.Imaging; | ||
using System.Windows.Shapes; | ||
|
||
namespace IPAM_NOTE.UserWindows | ||
{ | ||
/// <summary> | ||
/// SetPasswordWindow.xaml 的交互逻辑 | ||
/// </summary> | ||
public partial class SetPasswordWindow : Window | ||
{ | ||
public SetPasswordWindow() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
Oops, something went wrong.