-
Notifications
You must be signed in to change notification settings - Fork 0
/
Product_Detail.xaml
60 lines (57 loc) · 3.2 KB
/
Product_Detail.xaml
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
<Page x:Class="MVVM_demo.Product_Detail"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:MVVM_demo"
mc:Ignorable="d"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
d:DesignHeight="400" d:DesignWidth="920"
Title="Product_Detail" Loaded="Page_Loaded">
<Page.Resources>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="Control.Foreground" Value="Black"/>
<Setter Property="FontSize" Value="12"/>
<Setter Property="Margin" Value="10"/>
<Setter Property="Height" Value="20"/>
<Setter Property="Width" Value="82"/>
</Style>
<Style TargetType="{x:Type TextBox}">
<Setter Property="Control.Foreground" Value="Black"/>
<Setter Property="FontSize" Value="12"/>
<Setter Property="Margin" Value="10"/>
<Setter Property="Height" Value="20"/>
<Setter Property="Width" Value="112"/>
</Style>
</Page.Resources>
<Grid>
<DockPanel Background="#B7D9F3" Name="Dock_main" VerticalAlignment="top" Margin="10,20" HorizontalAlignment="Left" LastChildFill="False">
<StackPanel>
<WrapPanel>
<TextBlock FontFamily="Segoe UI Semibold">Name:</TextBlock>
<TextBox Name="PName" BorderThickness="0,0,0,1"></TextBox>
</WrapPanel>
<WrapPanel>
<TextBlock FontFamily="Segoe UI Semibold">Description:</TextBlock>
<TextBox Name="PDescription" BorderThickness="0,0,0,1" ></TextBox>
</WrapPanel>
<WrapPanel>
<TextBlock FontFamily="Segoe UI Semibold">Status:</TextBlock>
<TextBox Name="PStatus" BorderThickness="0,0,0,1"></TextBox>
</WrapPanel>
</StackPanel>
</DockPanel>
<DataGrid x:Name="DG_Product" HorizontalAlignment="Left" Margin="257,2,0,0" Height="370" Width="640" VerticalAlignment="Top" MouseDoubleClick="DG_Product_MouseDoubleClick"/>
<StackPanel Orientation="Horizontal">
<Button Style="{StaticResource MaterialDesignFloatingActionMiniDarkButton}" Margin="30,0,0,0" Height="35" Width="45" Click="Add_Click" >
<materialDesign:PackIcon Kind="Add"></materialDesign:PackIcon>
</Button>
<Button Style="{StaticResource MaterialDesignFloatingActionMiniDarkButton}" Margin="20,0,0,0" Height="35" Width="45" Click="Update_Click" >
<materialDesign:PackIcon Kind="Update"></materialDesign:PackIcon>
</Button>
<Button Style="{StaticResource MaterialDesignFloatingActionMiniDarkButton}" Margin="20,0,0,0" Height="35" Width="45" Click="Delete_Click" >
<materialDesign:PackIcon Kind="Delete"></materialDesign:PackIcon>
</Button>
</StackPanel>
</Grid>
</Page>