-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAddControllerDialog.xaml
More file actions
68 lines (68 loc) · 3.58 KB
/
AddControllerDialog.xaml
File metadata and controls
68 lines (68 loc) · 3.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<UserControl x:Class="ControllerManagementSystem.AddControllerDialog"
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:ControllerManagementSystem"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
Background="{DynamicResource MaterialDesignPaper}"
FontFamily="{materialDesign:MaterialDesignFont}"
FontSize="14"
mc:Ignorable="d"
d:DesignHeight="280" d:DesignWidth="200"
BorderThickness="0">
<StackPanel>
<Border>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Add Controllers"
HorizontalAlignment="Left" VerticalAlignment="Center" Margin="10,5,0,0"/>
<Button x:Name="CloseBtn"
Style="{DynamicResource WindowButtonStyle}"
Click="CloseBtn_Click"
Padding="0"
Margin="60,5,4,0" HorizontalAlignment="Right" VerticalAlignment="Center"
HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
Height="20" Width="20">
<materialDesign:PackIcon Kind="Close"/>
</Button>
</StackPanel>
</Border>
<StackPanel HorizontalAlignment="Center">
<Label Content="Type" HorizontalAlignment="Left" Margin="10,5,0,0"/>
<ComboBox x:Name="TypeBox"
SelectionChanged="ClearValidityBox"
materialDesign:HintAssist.Hint="Select Type"
Margin="0" HorizontalAlignment="Center"
Width="120"/>
<Label Content="Name" HorizontalAlignment="Left" Margin="10,10,0,0"/>
<TextBox x:Name="NameBox"
TextChanged="ClearValidityBox"
MaxLength="20"
materialDesign:HintAssist.Hint="Enter Name"
Margin="0" HorizontalAlignment="Center"
TextWrapping="NoWrap"
Width="120"/>
<Label Content="Condition" HorizontalAlignment="Left" Margin="10,10,0,0"/>
<ComboBox x:Name="ConditionBox"
SelectionChanged="ClearValidityBox"
materialDesign:HintAssist.Hint="Select Condition"
Margin="0" HorizontalAlignment="Center"
Width="120">
<ComboBoxItem>New</ComboBoxItem>
<ComboBoxItem>Like New</ComboBoxItem>
<ComboBoxItem>Worn</ComboBoxItem>
<ComboBoxItem>Damaged</ComboBoxItem>
</ComboBox>
<Button x:Name="AddControllerBtn"
Content="Add Controller"
Click="AddControllerBtn_Click"
HorizontalAlignment="Center" Margin="0,10,0,0"/>
<TextBlock x:Name="ValidityBox"
Text=""
FontSize="10" TextWrapping="Wrap" TextAlignment="Center"
HorizontalAlignment="Center" Margin="0,3,0,5"
Width="150"/>
</StackPanel>
</StackPanel>
</UserControl>