-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTextFile1.txt
227 lines (188 loc) · 12.6 KB
/
TextFile1.txt
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<Grid.RowDefinitions>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
</Grid.RowDefinitions>
<materialDesign:Card Margin="10">
<Grid Background="Transparent">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
</Grid.RowDefinitions>
<TextBlock Text="{Binding Title}" VerticalAlignment="Center" Margin="10"
Style="{StaticResource MaterialDesignBody1TextBlock}">
</TextBlock>
<Separator Grid.Row="1"
Style="{StaticResource MaterialDesignDarkSeparator}"
Margin="10,5" />
<Grid Grid.Row="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="Auto"></ColumnDefinition>
</Grid.ColumnDefinitions>
<StackPanel HorizontalAlignment="Left" Margin="0,5" Orientation="Horizontal">
<materialDesign:PackIcon Kind="Search" VerticalAlignment="Center" Foreground="#707070"/>
<TextBox materialDesign:HintAssist.Hint="Search" Width="300" Margin="5"/>
<Button Margin="5" Background="White" Width="24" Height="24"
Style="{StaticResource MaterialDesignFloatingActionMiniLightButton}"
ToolTip="MaterialDesignFloatingActionMiniLightButton">
<materialDesign:PackIcon
Kind="Search"
Height="20"
Width="20" />
</Button>
<Button Margin="5" Background="White" Width="24" Height="24"
Style="{StaticResource MaterialDesignFloatingActionMiniLightButton}"
ToolTip="MaterialDesignFloatingActionMiniLightButton">
<materialDesign:PackIcon
Kind="Clear"
Height="20"
Width="20" />
</Button>
</StackPanel>
<Button Grid.Column="1"
Style="{StaticResource MaterialDesignFloatingActionMiniDarkButton}" Margin="5"
ToolTip="MaterialDesignFloatingActionMiniDarkButton">
<materialDesign:PackIcon
Kind="Plus"
Height="24"
Width="24" />
</Button>
</Grid>
<StackPanel VerticalAlignment="Center" Orientation="Horizontal" Grid.Column="1" HorizontalAlignment="Right">
<Button Command="{Binding NewCommand}"
Style="{StaticResource MaterialDesignFloatingActionDarkButton}"
ToolTip="MaterialDesignFloatingActionDarkButton">
<materialDesign:PackIcon
Kind="Plus"
Height="18"
Width="18" />
</Button>
</StackPanel>
</Grid>
</materialDesign:Card>
<materialDesign:Card Grid.Row="1" VerticalAlignment="Top" Margin="10">
<ScrollViewer >
<ListBox Name="lvDataBinding" SelectionMode="Single" ItemsSource="{Binding Projects}" SelectedItem="{Binding SelectedItem,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" IsSynchronizedWithCurrentItem="True">
<!--<ListBox.ItemsPanel >
<ItemsPanelTemplate>
<StackPanel Height="{Binding (FrameworkElement.ActualWidth),
RelativeSource={RelativeSource AncestorType=ScrollContentPresenter}}">
</ListBox.ItemsPanel>-->
<ListBox.Resources>
<Style TargetType="ListBoxItem" BasedOn="{StaticResource {x:Type ListBoxItem}}">
<Setter Property="Background" Value="Transparent"/>
</Style>
</ListBox.Resources>
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseUp">
<i:InvokeCommandAction Command="{Binding SelectedItemCommand}" />
</i:EventTrigger>
</i:Interaction.Triggers>
<ListBox.ItemContainerStyle>
<Style TargetType="ListBoxItem">
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
<Setter Property="Margin" Value="10,5"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ListBoxItem">
<Border
Name="Border"
Padding="2"
SnapsToDevicePixels="true">
<ContentPresenter />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsSelected" Value="true">
<Setter Property="FontWeight" Value="Bold" />
<Setter TargetName="Border" Property="Background"
Value="#f4f4f4"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
<!--<Setter Property="FocusVisualStyle" Value="{x:Null}" />
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
<Setter Property="Margin" Value="10,5"/>
<Style.Triggers>
<Trigger Property="IsSelected" Value="True" >
<Setter Property="FontWeight" Value="Bold" />
<Setter Property="Background" Value="Transparent" />
<Setter Property="Foreground" Value="Black" />
</Trigger>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="Black" />
</Trigger>
</Style.Triggers>-->
</Style>
</ListBox.ItemContainerStyle>
<ListBox.ItemTemplate>
<DataTemplate>
<Border HorizontalAlignment="Stretch" Margin="0"
BorderThickness="1"
BorderBrush="#2e479b">
<StackPanel Orientation="Vertical" Margin="5">
<TextBlock Text="{Binding ProjectName}" Style="{StaticResource MaterialDesignHeadline3TextBlock}" HorizontalAlignment="Left" FontSize="15" VerticalAlignment="Center" Margin="20 0"/>
<TextBlock Margin="20 0"
Style="{StaticResource MaterialDesignCaptionTextBlock}" Text="{Binding ProjectType}">
</TextBlock>
<StackPanel Orientation="Horizontal">
<!--<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>-->
<Button Width="180" Grid.Column="0" Style="{StaticResource MaterialDesignOutlinedButton}" FontSize="12" HorizontalAlignment="Left" Content="Common Location" Command="{Binding DataContext.LocationSelectCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox}}}" CommandParameter="{Binding}"/>
<Button Width="180" Grid.Column="1" Margin="2,0,0,0" Style="{StaticResource MaterialDesignOutlinedButton}" FontSize="12" HorizontalAlignment="Left" Content="Building" Command="{Binding DataContext.LocationSelectCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox}}}" CommandParameter="{Binding}"/>
</StackPanel>
<!--<Button Width="500" Content="Show" />-->
</StackPanel>
</Border>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<!--<StackPanel Margin="20 5" MouseUp="StackPanel_MouseUp">
<ItemsControl x:Name="ListViewProducts" ItemsSource="{Binding Projects}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Border HorizontalAlignment="Stretch" Margin="5"
BorderThickness="1"
BorderBrush="#2e479b">
<StackPanel Orientation="Vertical" Margin="5">
<TextBlock Text="{Binding ProjectName}" Style="{StaticResource MaterialDesignHeadline3TextBlock}" HorizontalAlignment="Left" FontSize="15" VerticalAlignment="Center" Margin="20 0"/>
<TextBlock Margin="20 0"
Style="{StaticResource MaterialDesignCaptionTextBlock}">
Regular 12sp
</TextBlock>
</StackPanel>
</Border>
</DataTemplate>
</ItemsControl.ItemTemplate>
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
</ItemsControl>
-->
<!--<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseClick">
<i:InvokeCommandAction Command="{Binding ItemSelectCommand}" CommandParameter="{Binding}" />
</i:EventTrigger>
</i:Interaction.Triggers>-->
<!--
</StackPanel>-->
</ScrollViewer>
</materialDesign:Card>
<StackPanel Orientation="Vertical" Margin="5">
<!--<StackPanel Orientation="Horizontal">
--><!--<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>--><!--
<Button Width="180" Style="{StaticResource MaterialDesignOutlinedButton}" FontSize="12" HorizontalAlignment="Left" Content="Common Location" Command="{Binding DataContext.LocationSelectCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox}}}" CommandParameter="{Binding}"/>
<Button Width="180" Margin="2,0,0,0" Style="{StaticResource MaterialDesignOutlinedButton}" FontSize="12" HorizontalAlignment="Left" Content="Building" Command="{Binding DataContext.BuildingSelect,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox}}}" CommandParameter="{Binding}"/>
</StackPanel>-->
<!--<Button Width="500" Content="Show" />-->
</StackPanel>