-
Notifications
You must be signed in to change notification settings - Fork 26
/
MainWindow.xaml
428 lines (424 loc) · 34 KB
/
MainWindow.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
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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
<Window x:Class="SmartMove.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:i="clr-namespace:Microsoft.Xaml.Behaviors;assembly=Microsoft.Xaml.Behaviors"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:local="clr-namespace:SmartMove"
xmlns:vendors="clr-namespace:MigrationBase;assembly=MigrationBase"
xmlns:i1="http://schemas.microsoft.com/xaml/behaviors"
Title="SmartMove"
TextOptions.TextFormattingMode="Display"
UseLayoutRounding="True"
SnapsToDevicePixels="True"
SizeToContent="WidthAndHeight"
WindowStyle="None"
WindowStartupLocation="CenterScreen"
ResizeMode="NoResize"
MinWidth="550" MaxWidth="550" Height="auto"
Loaded="OnLoad"
Closing="OnClose">
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="CommonResources.xaml"/>
</ResourceDictionary.MergedDictionaries>
<ObjectDataProvider x:Key="VendorsEnum" MethodName="GetValues" ObjectType="{x:Type sys:Enum}">
<ObjectDataProvider.MethodParameters>
<x:Type TypeName="vendors:Vendor"/>
</ObjectDataProvider.MethodParameters>
</ObjectDataProvider>
</ResourceDictionary>
</Window.Resources>
<!-- Remove the default windows border and header-->
<WindowChrome.WindowChrome>
<WindowChrome ResizeBorderThickness="0"
CaptionHeight="0"
CornerRadius="0"
GlassFrameThickness="0">
</WindowChrome>
</WindowChrome.WindowChrome>
<Grid x:Name="MainWindowGrid" Background="#171F2C" Focusable="False">
<Border x:Name="MainWindowBorder" BorderThickness="5,0,5,5" BorderBrush="#171F2C" Focusable="False">
<Grid x:Name="MainPanel" Background="Transparent" Focusable="False">
<Grid.RowDefinitions>
<RowDefinition Height="70"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid x:Name="HeaderPanel" Grid.Row="0" Background="Transparent" Focusable="False"
MouseDown="HeaderPanel_OnMouseDown">
<Grid.RowDefinitions>
<RowDefinition Height="24"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackPanel x:Name="ControlButtonsPanel" Grid.Row="0" Orientation="Horizontal" Margin="0,2,0,0" HorizontalAlignment="Right" VerticalAlignment="Center" Background="Transparent" Focusable="False">
<Button x:Name="MinimizeButton" Width="28" Height="20" Focusable="False" FocusVisualStyle="{x:Null}"
Click="MinimizeButton_OnClick">
<Button.Template>
<ControlTemplate TargetType="{x:Type ButtonBase}">
<Border x:Name="ButtonBorder" Background="Transparent">
<Rectangle Width="16" Height="16" OpacityMask="{StaticResource MinimizeIconBrush}" Fill="White"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="ButtonBorder" Property="Background" Value="#FF4D76B5"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="ButtonBorder" Property="Background" Value="#FF314159"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Button.Template>
</Button>
<Button x:Name="CloseButton" Width="38" Height="20" Margin="1,0,0,0" Focusable="False" FocusVisualStyle="{x:Null}"
Click="CloseButton_OnClick">
<Button.Template>
<ControlTemplate TargetType="{x:Type ButtonBase}">
<Border x:Name="ButtonBorder" Background="#FFBE6060">
<Rectangle Width="16" Height="16" OpacityMask="{StaticResource CloseIconBrush}" Fill="White"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="ButtonBorder" Property="Background" Value="#FFCD4646"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="ButtonBorder" Property="Background" Value="#FF432323"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Button.Template>
</Button>
</StackPanel>
<Grid x:Name="TitleBarButtonsPanel" Grid.Row="1" Background="Transparent" Focusable="False">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" Orientation="Horizontal" Margin="20,0,0,0" VerticalAlignment="Top" Background="Transparent" Focusable="False">
<Image Source="{StaticResource ConversionLogo}" Width="33" Height="32"/>
<TextBlock Text="SmartMove" Margin="10,0,0,0" Style="{StaticResource NormalTextBloclStyle}"
Foreground="#E8F1FF" FontSize="20" FontWeight="SemiBold"/>
</StackPanel>
<StackPanel Grid.Column="1" Orientation="Horizontal" Margin="0,0,10,0" VerticalAlignment="Center" Background="Transparent" Focusable="False">
<Button x:Name="HelpButton" Focusable="False" FocusVisualStyle="{x:Null}"
ToolTip="About SmartMove"
Click="HelpButton_OnClick">
<Button.Template>
<ControlTemplate TargetType="{x:Type ButtonBase}">
<Border x:Name="ButtonBorder" Padding="3" CornerRadius="2" Background="Transparent">
<Grid Background="Transparent">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Rectangle Width="16" Height="16" OpacityMask="{StaticResource HelpIconBrush}" Fill="#E8F1FF"/>
<TextBlock Grid.Column="1" Text="Help" Margin="5,0,0,0" Style="{StaticResource NormalTextBloclStyle}"
Foreground="#E8F1FF" FontSize="12"/>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="ButtonBorder" Property="Background" Value="#FF4D76B5"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="ButtonBorder" Property="Background" Value="#FF314159"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Button.Template>
</Button>
</StackPanel>
</Grid>
</Grid>
<Grid x:Name="ContentPanel" Grid.Row="1" Background="White" Focusable="False">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid x:Name="InputPanel" Grid.Row="0" Background="Transparent" Focusable="False">
<Grid Margin="20,15,20,20" Background="Transparent" Focusable="False">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Text="Select the vendor for conversion:" Style="{StaticResource NormalTextBloclStyle}" FontSize="12" Foreground="#FF7C7C7C"/>
<ComboBox x:Name="VendorSelector" Grid.Row="1" Margin="0,6,0,0"
Style="{StaticResource ComboBoxFlatStyle}"
Width="300" HorizontalAlignment="Left"
ItemsSource="{Binding Source={StaticResource VendorsEnum}}"
SelectedItem="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}, Path=SelectedVendor}"
SelectionChanged="VendorSelector_OnSelectionChanged"/>
<TextBlock Grid.Row="2" Text="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}, Path=ConfigurationFileLabel}" Margin="0,15,0,0"
Style="{StaticResource NormalTextBloclStyle}" Foreground="#FF7C7C7C" FontSize="12"/>
<Grid Grid.Row="3" Margin="0,6,0,0" Background="Transparent" Focusable="False">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBox x:Name="ConfigFilePath" Grid.Column="0" Style="{StaticResource TextBoxControlStyle}">
<i:Interaction.Behaviors>
<local:TripleClickSelectsAllTextBehavior/>
</i:Interaction.Behaviors>
</TextBox>
<Button x:Name="BrowseConfigFile" Grid.Column="1" Style="{StaticResource BrowseButtonControlStyle}" Margin="10,0,0,0"
Click="BrowseConfigFile_OnClick"/>
</Grid>
<TextBlock Grid.Row="4" Text="Target folder:" Margin="0,15,0,0" Style="{StaticResource NormalTextBloclStyle}" FontSize="12" Foreground="#FF7C7C7C"/>
<Grid Grid.Row="5" Margin="0,6,0,0" Background="Transparent" Focusable="False">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBox x:Name="TargetFolderPath" Grid.Column="0" Style="{StaticResource TextBoxControlStyle}">
<i:Interaction.Behaviors>
<local:TripleClickSelectsAllTextBehavior/>
</i:Interaction.Behaviors>
</TextBox>
<Button x:Name="BrowseTargetFolder" Grid.Column="1" Style="{StaticResource BrowseButtonControlStyle}" Margin="10,0,0,0"
Click="BrowseTargetFolder_OnClick"/>
</Grid>
<TextBlock x:Name="DomainNameTB" Grid.Row="6" Text="Import to a domain (optional):" Margin="0,15,0,0" Style="{StaticResource NormalTextBloclStyle}" FontSize="12" Foreground="#FF7C7C7C"/>
<TextBox x:Name="DomainName" Grid.Row="7" Margin="0,6,0,0" Style="{StaticResource TextBoxWithWatermarkControlStyle}"
Tag="domain name"
Width="300" HorizontalAlignment="Left">
<i:Interaction.Behaviors>
<local:TripleClickSelectsAllTextBehavior/>
</i:Interaction.Behaviors>
</TextBox>
<CheckBox x:Name="ConvertNAT" Grid.Row="8" Content="Convert NAT configuration"
IsChecked="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}, Path=ConvertNATConfiguration, Mode=TwoWay}"
Margin="0,15,0,0" Background="Transparent" Focusable="False"/>
<CheckBox x:Name="ConvertUserConf" Grid.Row="10" Content="Convert user configuration"
IsChecked="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}, Path=ConvertUserConfiguration, Mode=TwoWay}"
Margin="0,15,0,0" Background="Transparent" Focusable="False" Checked="ConvertUserConf_Checked" Unchecked="ConvertUserConf_Checked"/>
<TextBlock x:Name="LDAPAccountUnitTB" Grid.Row="11" Text="LDAP Account Unit (used only for user configuration):"
Margin="30,10,0,0" Style="{StaticResource NormalTextBloclStyle}"/>
<Grid Grid.Row="12" Margin="30,5,0,0" Background="Transparent" x:Name="LDAPAccountUnitBlock">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBox x:Name="LDAPAccountUnit" Grid.Column="0" Style="{StaticResource TextBoxWithWatermarkControlStyle}"
Tag="LDAP Account Unit"
Width="300" HorizontalAlignment="Left">
<i:Interaction.Behaviors>
<local:TripleClickSelectsAllTextBehavior/>
</i:Interaction.Behaviors>
</TextBox>
<TextBlock Grid.Column="1" Text="*" FontSize="20" FontWeight="Bold" Foreground="#FFFF1700" Margin="5,0,0,0"/>
</Grid>
<CheckBox x:Name="SkipUnusedObjects" Grid.Row="13" Content="Do not import unused objects"
IsChecked="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}, Path=SkipUnusedObjectsConversion, Mode=TwoWay}"
Margin="0,15,0,0" Background="Transparent" Focusable="False"/>
<CheckBox x:Name="OptimizeByComments" Grid.Row="14" Content="Optimize by comments"
IsChecked="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}, Path=OptimizeByCommentsConversion, Mode=TwoWay}"
Margin="0,15,0,0" Background="Transparent" Focusable="False" Checked="OptimizeByComments_Checked" Unchecked="OptimizeByComments_Checked"/>
<CheckBox x:Name="CreateServiceGroupsConf" Grid.Row="14" Content="Import service groups"
IsChecked="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}, Path=CreateServiceGroupsConfiguration, Mode=TwoWay}"
Margin="0,15,0,0" Background="Transparent" Focusable="False" Visibility="Collapsed"/>
<Grid Grid.Row="15" Margin="0,30,0,0" Background="Transparent" Focusable="False">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="8*"/>
<ColumnDefinition Width="8*"/>
<ColumnDefinition Width="84*"/>
<ColumnDefinition Width="401*"/>
</Grid.ColumnDefinitions>
<Button x:Name="Go" Style="{StaticResource GoButtonControlStyle}" HorizontalAlignment="Right"
Click="Go_OnClick" Grid.Column="3" Margin="0,0,-0.2,2.4"/>
</Grid>
</Grid>
</Grid>
<Grid x:Name="OutputPanel" Grid.Row="1" Background="Transparent" Focusable="False" Visibility="Collapsed">
<Grid x:Name="ProgressPanel" Margin="20,10,20,20" VerticalAlignment="Top" Background="Transparent" Focusable="False">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock x:Name="ProgressText" Grid.Row="0" Text="Progress" Margin="5" Style="{StaticResource NormalTextBloclStyle}"
FontSize="16" HorizontalAlignment="Center"/>
<TextBlock Grid.Row="1" Text="Please wait a few moments" Margin="5" Style="{StaticResource NormalTextBloclStyle}"
FontSize="12" HorizontalAlignment="Center"/>
<ProgressBar x:Name="ProgressIndicator" Grid.Row="2" Margin="1,1,1,20"
Orientation="Horizontal" IsIndeterminate="False" Minimum="0" Maximum="100"
Width="300" Height="5">
<ProgressBar.Template>
<ControlTemplate TargetType="{x:Type ProgressBar}">
<Grid>
<Border x:Name="PART_Track" BorderThickness="1" Background="#E0E4E8" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}"/>
<Border x:Name="PART_Indicator" BorderThickness="1" Background="#4B9C09" HorizontalAlignment="Left" Opacity="1" Height="{TemplateBinding Height}"/>
</Grid>
</ControlTemplate>
</ProgressBar.Template>
</ProgressBar>
</Grid>
<Grid x:Name="ResultsPanel" Margin="20,0,20,20" VerticalAlignment="Top" Background="Transparent" Focusable="False">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid x:Name="ResultsTitle" Grid.Row="0" Background="Transparent" Focusable="False">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" Text="Conversion Results" Style="{StaticResource NormalTextBloclStyle}"
Foreground="#3474C5" FontSize="16"/>
<Border x:Name="LineBorder" Grid.Column="1" Margin="10,5,0,0">
<Line X1="0" X2="{Binding ElementName=LineBorder, Path=ActualWidth, Mode=OneWay}"
VerticalAlignment="Center" SnapsToDevicePixels="True"
Stroke="#B5B5B5" StrokeThickness="1" StrokeDashArray="1,3" StrokeDashCap="Round"/>
</Border>
</Grid>
<Grid x:Name="OrigConfigFilePanel" Grid.Row="1" Background="Transparent" Focusable="False">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Text="Configuration File" Margin="10,6,0,0" Style="{StaticResource NormalTextBloclStyle}"
Foreground="#2E3F58" FontWeight="SemiBold"/>
<StackPanel Grid.Row="1" Margin="20,6,0,0" Orientation="Horizontal" Background="Transparent" Focusable="False">
<TextBlock x:Name="OriginalFileLink" Text="Original file" Style="{StaticResource HyperLinkStyle}"
MouseUp="Link_OnClick"/>
<TextBlock Text="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}, Path=ConfigurationFileLinesCount}"
Margin="5,1,0,0" Style="{StaticResource NormalTextBloclStyle}"
Foreground="#A7A9AC" FontSize="12"/>
<StackPanel x:Name="ConversionIssuesPanel" Orientation="Horizontal" Background="Transparent" Focusable="False">
<Rectangle Margin="10,0,0,0" Width="16" Height="16" OpacityMask="{StaticResource AlertIconBrush}" Fill="#2D5B91"/>
<TextBlock Text="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}, Path=ConversionIssuesCount}"
Margin="5,1,0,0" Style="{StaticResource NormalTextBloclStyle}" FontSize="12"/>
</StackPanel>
</StackPanel>
</Grid>
<Grid x:Name="CoversionIssuesPreviewPanel" Grid.Row="2" Background="Transparent" Focusable="False">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Text="Conversion Issues" Margin="10,6,0,0" Style="{StaticResource NormalTextBloclStyle}"
Foreground="#2E3F58" FontWeight="SemiBold"/>
<Grid Grid.Row="1" Margin="20,0,0,0" Background="Transparent" Focusable="False">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel Name="ConvertingWarningsPanel" Grid.Row="0" Margin="0,6,0,0" Orientation="Horizontal" Background="Transparent" Focusable="False">
<TextBlock x:Name="ConvertingWarningsLink" Text="Conversion Warnings" Style="{StaticResource HyperLinkStyle}"
MouseUp="Link_OnClick"/>
<TextBlock Text="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}, Path=ConvertingWarningsCount}"
Margin="5,1,0,0" Style="{StaticResource NormalTextBloclStyle}"
Foreground="#A7A9AC" FontSize="12"/>
</StackPanel>
<StackPanel Name="ConvertingErrorsPanel" Grid.Row="1" Margin="0,6,0,0" Orientation="Horizontal" Background="Transparent" Focusable="False">
<TextBlock x:Name="ConvertingErrorsLink" Text="Conversion Errors" Style="{StaticResource HyperLinkStyle}"
MouseUp="Link_OnClick"/>
<TextBlock Text="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}, Path=ConvertingErrorsCount}"
Margin="5,1,0,0" Style="{StaticResource NormalTextBloclStyle}"
Foreground="#A7A9AC" FontSize="12"/>
</StackPanel>
</Grid>
</Grid>
<Grid x:Name="ConvertedPolicyPreviewPanel" Grid.Row="3" Background="Transparent" Focusable="False">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Text="Converted Policy Preview" Margin="10,6,0,0" Style="{StaticResource NormalTextBloclStyle}"
Foreground="#2E3F58" FontWeight="SemiBold"/>
<Grid Grid.Row="1" Margin="20,0,0,0" Background="Transparent" Focusable="False">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<StackPanel Name="PolicyRulesCountBlock" Grid.Row="0" Margin="0,6,0,0" Orientation="Horizontal" Background="Transparent" Focusable="False">
<TextBlock x:Name="ConvertedPolicyLink" Text="Converted Policy" Style="{StaticResource HyperLinkStyle}"
MouseUp="Link_OnClick"/>
<TextBlock Text="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}, Path=ConvertedPolicyRulesCount}"
Margin="5,1,0,0" Style="{StaticResource NormalTextBloclStyle}"
Foreground="#A7A9AC" FontSize="12" />
</StackPanel>
<StackPanel x:Name="ConvertedOptimizedPolicyPanel" Grid.Row="1" Margin="0,6,0,0" Orientation="Horizontal" Background="Transparent" Focusable="False">
<TextBlock x:Name="ConvertedOptimizedPolicyLink" Text="Converted optimized Policy" Style="{StaticResource HyperLinkStyle}"
MouseUp="Link_OnClick"/>
<TextBlock Text="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}, Path=ConvertedOptimizedPolicyRulesCount}"
Margin="5,1,0,0" Style="{StaticResource NormalTextBloclStyle}"
Foreground="#A7A9AC" FontSize="12"/>
</StackPanel>
<StackPanel x:Name="ConvertedNatPolicyPanel" Grid.Row="2" Margin="0,6,0,0" Orientation="Horizontal" Background="Transparent" Focusable="False">
<TextBlock x:Name="ConvertedNatPolicyLink" Text="Converted NAT Policy" Style="{StaticResource HyperLinkStyle}"
MouseUp="Link_OnClick"/>
<TextBlock Text="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}, Path=ConvertedNATPolicyRulesCount}"
Margin="5,1,0,0" Style="{StaticResource NormalTextBloclStyle}"
Foreground="#A7A9AC" FontSize="12"/>
</StackPanel>
</Grid>
</Grid>
<Grid x:Name="BashScriptsPanel" Grid.Row="4" Background="Transparent" Focusable="False">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Text="Bash Scripts (to be executed on management server)" Margin="10,6,0,0" Style="{StaticResource NormalTextBloclStyle}"
Foreground="#2E3F58" FontWeight="SemiBold"/>
<Grid Grid.Row="1" Margin="20,0,0,0" Background="Transparent" Focusable="False">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock x:Name="ObjectsScriptLink" Grid.Row="0" Text="bash script for creating objects" Style="{StaticResource HyperLinkStyle}" Margin="0,6,0,0"
MouseUp="Link_OnClick"/>
<TextBlock x:Name="RulebaseScriptLink" Grid.Row="1" Text="bash script for creating Policy package" Style="{StaticResource HyperLinkStyle}" Margin="0,6,0,0"
MouseUp="Link_OnClick"/>
<TextBlock x:Name="RulebaseOptimizedScriptLink" Grid.Row="2" Text="bash script for creating optimized Policy package" Style="{StaticResource HyperLinkStyle}" Margin="0,6,0,0"
MouseUp="Link_OnClick"/>
</Grid>
</Grid>
</Grid>
</Grid>
</Grid>
<Grid x:Name="StatusPanel" Grid.Row="2" Background="#E0E4E8" Focusable="False">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Margin="20,10,20,0" Orientation="Horizontal" Background="Transparent" Focusable="False">
<ContentControl Template="{StaticResource BulletTemplate}">
<StackPanel Orientation="Horizontal" Background="Transparent" Focusable="False">
<TextBlock x:Name="SKTextDisplay" Style="{StaticResource NormalTextBloclStyle}" FontSize="12"/>
<TextBlock x:Name="SKLinkDisplay" Style="{StaticResource HyperLinkStyle}" FontSize="12"
MouseUp="Link_OnClick"/>
</StackPanel>
</ContentControl>
</StackPanel>
<StackPanel Grid.Row="1" Margin="20,5,20,10" Orientation="Horizontal" Background="Transparent" Focusable="False">
<ContentControl Template="{StaticResource BulletTemplate}">
<StackPanel Orientation="Horizontal" Background="Transparent" Focusable="False">
<TextBlock x:Name="PSTextDisplay" Style="{StaticResource NormalTextBloclStyle}" FontSize="12"/>
<TextBlock x:Name="PSLinkDisplay" Style="{StaticResource HyperLinkStyle}" FontSize="12"
MouseUp="Link_OnClick"/>
</StackPanel>
</ContentControl>
</StackPanel>
</Grid>
</Grid>
</Border>
</Grid>
</Window>