forked from lt8300877/NormalizingApp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTextInputBox.xaml
More file actions
20 lines (20 loc) · 1.43 KB
/
TextInputBox.xaml
File metadata and controls
20 lines (20 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<Window x:Class="NormalizingApp.TextInputBox"
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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
mc:Ignorable="d"
Title="TextInputBox" Height="200" Width="300" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" WindowStyle="None">
<Grid>
<Canvas>
<materialDesign:Card Padding="5" Background="{DynamicResource PrimaryHueMidBrush}" Width="300">
<TextBlock TextAlignment="Center" FontSize="20">新建</TextBlock>
</materialDesign:Card>
<TextBox Text="{Binding Path=InputTextBox}" FontSize="20" HorizontalAlignment="Stretch" Canvas.Top="82" Width="280" Height="40" Canvas.Left="10" />
<Button Command="{Binding EnterButtonClick}" Content="确定" Style="{StaticResource MaterialDesignRaisedDarkButton}" Canvas.Left="45" Canvas.Top="158"/>
<Button Command="{Binding CancelButtonClick}" Content="取消" Style="{StaticResource MaterialDesignRaisedDarkButton}" Canvas.Left="194" Canvas.Top="158"/>
</Canvas>
</Grid>
</Window>