Skip to content

Commit 17e35be

Browse files
committed
Setting styles to null
1 parent 5bba94f commit 17e35be

File tree

1 file changed

+44
-31
lines changed

1 file changed

+44
-31
lines changed

Snoop.Core/Windows/SnoopUI.xaml

+44-31
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ All other rights reserved.
4747
<Setter Property="Control.Template">
4848
<Setter.Value>
4949
<ControlTemplate>
50-
<Rectangle
51-
Stroke="#FF000000"
52-
StrokeThickness="1"
53-
Margin="3,3,3,3"
54-
SnapsToDevicePixels="True"
55-
StrokeDashArray="1 2"
56-
/>
50+
<Rectangle Style="{x:Null}"
51+
Stroke="#FF000000"
52+
StrokeThickness="1"
53+
Margin="3,3,3,3"
54+
SnapsToDevicePixels="True"
55+
StrokeDashArray="1 2"
56+
/>
5757
</ControlTemplate>
5858
</Setter.Value>
5959
</Setter>
@@ -76,13 +76,13 @@ All other rights reserved.
7676
<Setter Property="Template">
7777
<Setter.Value>
7878
<ControlTemplate TargetType="{x:Type ButtonBase}">
79-
<Grid Width="Auto" Height="Auto">
80-
<Border
81-
x:Name="border"
82-
BorderBrush="#FF696969"
83-
BorderThickness="1,1,1,1"
84-
CornerRadius="4,4,4,4"
85-
/>
79+
<Grid Style="{x:Null}" Width="Auto" Height="Auto">
80+
<Border Style="{x:Null}"
81+
x:Name="border"
82+
BorderBrush="#FF696969"
83+
BorderThickness="1,1,1,1"
84+
CornerRadius="4,4,4,4"
85+
/>
8686
<ContentPresenter Margin="2,2,2,2"/>
8787
</Grid>
8888
<ControlTemplate.Triggers>
@@ -116,7 +116,13 @@ All other rights reserved.
116116
<StackPanel Style="{x:Null}"
117117
DockPanel.Dock="Top"
118118
Orientation="Horizontal">
119-
<ComboBox Style="{x:Null}"
119+
<Label Style="{x:Null}"
120+
Padding="2"
121+
Target="{Binding ElementName=TreeTypeComboBox}"
122+
Content="Tree:" />
123+
<ComboBox Style="{x:Null}"
124+
x:Name="TreeTypeComboBox"
125+
Padding="4,2"
120126
ItemsSource="{Binding Source={markup:EnumBindingSource {x:Type tree:TreeType}}}"
121127
SelectedItem="{Binding CurrentTreeType, Mode=TwoWay}" />
122128
<Menu Style="{x:Null}">
@@ -151,10 +157,10 @@ All other rights reserved.
151157
Text="{Binding Filter, UpdateSourceTrigger=PropertyChanged}"
152158
Margin="2,2,22,2"
153159
>
154-
<ComboBoxItem>
160+
<ComboBoxItem Style="{x:Null}">
155161
<TextBlock Style="{x:Null}" Text="Clear any filter applied to the tree view"/>
156162
</ComboBoxItem>
157-
<ComboBoxItem>
163+
<ComboBoxItem Style="{x:Null}">
158164
<TextBlock Style="{x:Null}" Text="Show only elements with binding errors"/>
159165
</ComboBoxItem>
160166
<ComboBox.ToolTip>
@@ -192,6 +198,7 @@ All other rights reserved.
192198
<TreeView.Resources>
193199
<HierarchicalDataTemplate DataType="{x:Type tree:TreeItem}" ItemsSource="{Binding Children}">
194200
<TextBlock
201+
Style="{x:Null}"
195202
Text="{Binding}"
196203
HorizontalAlignment="Stretch"
197204
infrastructure:BringIntoViewBehavior.IsActive="{Binding IsSelected}"
@@ -216,8 +223,8 @@ All other rights reserved.
216223
<Setter Property="Template">
217224
<Setter.Value>
218225
<ControlTemplate TargetType="{x:Type ToolTip}">
219-
<Grid Width="200" Height="200">
220-
<Rectangle Fill="{TemplateBinding Content}" RadiusX="10" RadiusY="10" Margin="10"/>
226+
<Grid Width="200" Height="200" Style="{x:Null}">
227+
<Rectangle Style="{x:Null}" Fill="{TemplateBinding Content}" RadiusX="10" RadiusY="10" Margin="10"/>
221228

222229
<Grid.Effect>
223230
<DropShadowEffect/>
@@ -291,11 +298,12 @@ All other rights reserved.
291298
</TabItem.Header>
292299
<controls:PropertyInspector x:Name="DataContextPropertyGrid" RootTarget="{Binding CurrentSelection.Target.DataContext}"/>
293300
</TabItem>
301+
294302
<TabItem Style="{x:Null}">
295303
<TabItem.Header>
296304
<TextBlock Style="{x:Null}" Text="Events">
297305
<TextBlock.ToolTip>
298-
<StackPanel MaxWidth="300">
306+
<StackPanel Style="{x:Null}" MaxWidth="300">
299307
<TextBlock Style="{x:Null}" Text="Events View"/>
300308
<TextBlock
301309
Style="{x:Null}"
@@ -306,13 +314,15 @@ All other rights reserved.
306314
</TextBlock.ToolTip>
307315
</TextBlock>
308316
</TabItem.Header>
317+
309318
<views:EventsView/>
310319
</TabItem>
320+
311321
<TabItem Style="{x:Null}">
312322
<TabItem.Header>
313323
<TextBlock Style="{x:Null}" Text="Triggers">
314324
<TextBlock.ToolTip>
315-
<StackPanel MaxWidth="300">
325+
<StackPanel Style="{x:Null}" MaxWidth="300">
316326
<TextBlock Style="{x:Null}" Text="Triggers View"/>
317327
<TextBlock
318328
Style="{x:Null}"
@@ -323,14 +333,16 @@ All other rights reserved.
323333
</TextBlock.ToolTip>
324334
</TextBlock>
325335
</TabItem.Header>
336+
326337
<triggersTab:TriggersView RootTarget="{Binding CurrentSelection.Target}"
327338
IsSelected="{Binding IsSelected, RelativeSource={RelativeSource AncestorType={x:Type TabItem}}}" />
328339
</TabItem>
340+
329341
<TabItem Style="{x:Null}">
330342
<TabItem.Header>
331343
<TextBlock Style="{x:Null}" Text="Behaviors">
332344
<TextBlock.ToolTip>
333-
<StackPanel MaxWidth="300">
345+
<StackPanel Style="{x:Null}" MaxWidth="300">
334346
<TextBlock Style="{x:Null}" Text="Behaviors View"/>
335347
<TextBlock
336348
Style="{x:Null}"
@@ -341,6 +353,7 @@ All other rights reserved.
341353
</TextBlock.ToolTip>
342354
</TextBlock>
343355
</TabItem.Header>
356+
344357
<behaviorsTab:BehaviorsView RootTarget="{Binding CurrentSelection.Target}"
345358
IsSelected="{Binding IsSelected, RelativeSource={RelativeSource AncestorType={x:Type TabItem}}}" />
346359
</TabItem>
@@ -349,7 +362,7 @@ All other rights reserved.
349362
<TabItem.Header>
350363
<TextBlock Style="{x:Null}" Text="Methods">
351364
<TextBlock.ToolTip>
352-
<StackPanel MaxWidth="300">
365+
<StackPanel Style="{x:Null}" MaxWidth="300">
353366
<TextBlock Style="{x:Null}" Text="Methods View"/>
354367
<TextBlock
355368
Style="{x:Null}"
@@ -372,7 +385,7 @@ All other rights reserved.
372385
<TabItem.Header>
373386
<TextBlock Style="{x:Null}" Text="PowerShell">
374387
<TextBlock.ToolTip>
375-
<StackPanel MaxWidth="300">
388+
<StackPanel Style="{x:Null}" MaxWidth="300">
376389
<TextBlock Style="{x:Null}" Text="PowerShell View"/>
377390
<TextBlock
378391
Style="{x:Null}"
@@ -391,7 +404,7 @@ All other rights reserved.
391404
<TabItem.Header>
392405
<TextBlock Style="{x:Null}" Text="Debug Listener">
393406
<TextBlock.ToolTip>
394-
<StackPanel MaxWidth="300">
407+
<StackPanel Style="{x:Null}" MaxWidth="300">
395408
<TextBlock Style="{x:Null}" Text="Debug Listener"/>
396409
<TextBlock
397410
Style="{x:Null}"
@@ -429,28 +442,28 @@ All other rights reserved.
429442

430443
<!-- StatusBar -->
431444
<StatusBar Style="{x:Null}" Grid.Row="3" Grid.ColumnSpan="2" Grid.Column="0">
432-
<StackPanel Orientation="Horizontal">
433-
<StackPanel Orientation="Horizontal">
445+
<StackPanel Style="{x:Null}" Orientation="Horizontal">
446+
<StackPanel Style="{x:Null}" Orientation="Horizontal">
434447
<TextBlock Style="{x:Null}" Text="Keyboard.FocusedElement:"/>
435448
<TextBlock Style="{x:Null}" Margin="3,0,0,0">
436449
<windows:NoFocusHyperlink
437450
Focusable="False"
438451
Command="{x:Static windows:SnoopUI.SelectFocusCommand}"
439452
CommandParameter="{Binding CurrentFocus}"
440453
>
441-
<TextBlock Text="{Binding CurrentFocus, Converter={x:Static converters:ObjectToStringConverter.Instance}}"/>
454+
<TextBlock Style="{x:Null}" Text="{Binding CurrentFocus, Converter={x:Static converters:ObjectToStringConverter.Instance}}"/>
442455
</windows:NoFocusHyperlink>
443456
</TextBlock>
444457
<TextBlock Style="{x:Null}" Text="; "/>
445458
<StackPanel.ToolTip>
446-
<StackPanel>
459+
<StackPanel Style="{x:Null}">
447460
<TextBlock Style="{x:Null}" Text="This is the object that has keyboard focus."/>
448461
<TextBlock Style="{x:Null}" Text="Click the link to select this object."/>
449462
</StackPanel>
450463
</StackPanel.ToolTip>
451464
</StackPanel>
452465

453-
<StackPanel Orientation="Horizontal">
466+
<StackPanel Style="{x:Null}" Orientation="Horizontal">
454467
<TextBlock Style="{x:Null}" Text="Current FocusScope:"/>
455468
<TextBlock Style="{x:Null}" Margin="3,0,0,0">
456469
<windows:NoFocusHyperlink
@@ -462,7 +475,7 @@ All other rights reserved.
462475
</windows:NoFocusHyperlink>
463476
</TextBlock>
464477
<StackPanel.ToolTip>
465-
<StackPanel>
478+
<StackPanel Style="{x:Null}">
466479
<TextBlock Style="{x:Null}" Text="This is the object that is the root of the current focus scope."/>
467480
<TextBlock Style="{x:Null}" Text="Click the link to select this object."/>
468481
</StackPanel>

0 commit comments

Comments
 (0)