-
Notifications
You must be signed in to change notification settings - Fork 298
Expand file tree
/
Copy pathDrawingExample.xaml
More file actions
117 lines (106 loc) Β· 5.06 KB
/
DrawingExample.xaml
File metadata and controls
117 lines (106 loc) Β· 5.06 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
ο»Ώ<UserControl
x:Class="WPFDevelopers.Samples.ExampleViews.DrawingExample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:WPFDevelopers.Samples.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:WPFDevelopers.Samples.ExampleViews"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vm="clr-namespace:WPFDevelopers.Samples.ViewModels"
d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">
<UserControl.DataContext>
<vm:DrawingExampleVM />
</UserControl.DataContext>
<controls:CodeViewer Header="{Binding NavigateMenuItem.Name}">
<UniformGrid Columns="3" Rows="2">
<controls:DrawingControl Content="εεΊη" InnerBackground="{StaticResource WD.SuccessBrush}">
<ListBoxItem Content="η1" />
<ListBoxItem Content="η2" />
<ListBoxItem Content="η3" />
<ListBoxItem Content="η4" />
<ListBoxItem Content="η5" />
</controls:DrawingControl>
<controls:DrawingControl
Content="θ―εδ»"
InnerBackground="White"
InnerBorderBrush="{StaticResource WD.DangerBrush}"
InnerBorderThickness="1"
ItemsSource="{Binding Drawings}"
PanelBackground="#FFF2F2F2"
PanelBorderThinckness="0"
PanelDrawingMode="Top">
<controls:DrawingControl.ItemTemplate>
<DataTemplate>
<Button Content="{Binding Number}" Style="{StaticResource WD.DefaultButton}" />
</DataTemplate>
</controls:DrawingControl.ItemTemplate>
</controls:DrawingControl>
<controls:DrawingControl
Content="θ―εδ»"
InnerBackground="{StaticResource WD.WarningBrush}"
InnerBorderThickness="1"
ItemsSource="{Binding Drawings}"
PanelBackground="#FFF2F2F2"
PanelBorderThinckness="0"
PanelDrawingMode="Right"
PanelMultipleDescription="5"
PanelMultipleSpace="10">
<controls:DrawingControl.ItemTemplate>
<DataTemplate>
<CheckBox Content="{Binding Number}" />
</DataTemplate>
</controls:DrawingControl.ItemTemplate>
</controls:DrawingControl>
<controls:DrawingControl
Content="θ―εδ»"
InnerBackground="White"
InnerBorderThickness="1"
ItemsSource="{Binding Drawings}"
PanelBackground="#FFF2F2F2"
PanelBorderThinckness="0"
PanelDrawingMode="Bottom"
PanelMultipleDescription="2,3"
PanelMultipleSpace="2">
<controls:DrawingControl.ItemTemplate>
<DataTemplate>
<RadioButton Content="{Binding Number}" />
</DataTemplate>
</controls:DrawingControl.ItemTemplate>
</controls:DrawingControl>
<controls:DrawingControl
Content="θ―εδ»"
InnerBackground="White"
InnerBorderThickness="1"
ItemsSource="{Binding Drawings}"
PanelBackground="#FFF2F2F2"
PanelBorderThinckness="0"
PanelDrawingMode="Left"
PanelMultipleDescription="3,3"
PanelMultipleSpace="0">
<controls:DrawingControl.ItemTemplate>
<DataTemplate>
<Button Content="{Binding Number}" Style="{StaticResource WD.PrimaryButton}" />
</DataTemplate>
</controls:DrawingControl.ItemTemplate>
</controls:DrawingControl>
</UniformGrid>
<controls:CodeViewer.SourceCodes>
<controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/DrawingExample.xaml" CodeType="Xaml" />
<controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/DrawingExample.xaml.cs" CodeType="CSharp" />
<controls:SourceCodeModel
CodeSource="/WPFDevelopers.SamplesCode;component/Controls/Drawing/Drawing.xaml"
CodeType="Xaml"
Haader="Drawing" />
<controls:SourceCodeModel
CodeSource="/WPFDevelopers.SamplesCode;component/Controls/Drawing/DrawingPanel.cs"
CodeType="CSharp"
Haader="DrawingPanel.cs" />
<controls:SourceCodeModel
CodeSource="/WPFDevelopers.SamplesCode;component/Controls/Drawing/DrawingControl.cs"
CodeType="CSharp"
Haader="DrawingControl.cs" />
</controls:CodeViewer.SourceCodes>
</controls:CodeViewer>
</UserControl>