Team Ai
Datasetpublic

MegaBites-AI/Windows-powershell

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes372downloads
generic.xaml2791 linesDownload Raw Back to themes
1<!--=================================================================2// Copyright (c) Microsoft Corporation.3// Licensed under the MIT License.4==================================================================-->5 6<ResourceDictionary x:Uid="MainResourceDictionary" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"7    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"8    xmlns:g="clr-namespace:System.Globalization;assembly=mscorlib"9    xmlns:s="clr-namespace:System;assembly=mscorlib"10    xmlns:diagnostics="clr-namespace:System.Diagnostics;assembly=WindowsBase"11    xmlns:local="clr-namespace:Microsoft.Management.UI.Internal"12    xmlns:default="clr-namespace:"13    xmlns:aerotheme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"14    xmlns:classictheme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Classic">15 16    <Geometry x:Key="RightArrow">M 0,0 L 4,3.5 L 0,7 Z</Geometry>17 18    <Geometry x:Key="NavPane_ListViewItem_RightArrow">M7.3391155,8.3084572 L7.3391708,16.109179 10.974259,12.431834 z</Geometry>19 20    <LinearGradientBrush x:Key="NormalBrush" EndPoint="0,1" StartPoint="0,0">21        <GradientStop Color="#EEE" Offset="0.0"/>22        <GradientStop Color="#CCC" Offset="1.0"/>23    </LinearGradientBrush>24 25    <LinearGradientBrush x:Key="NormalBorderBrush" EndPoint="0,1" StartPoint="0,0">26        <GradientStop Color="#CCC" Offset="0.0"/>27        <GradientStop Color="#444" Offset="1.0"/>28    </LinearGradientBrush>29 30    <SolidColorBrush x:Key="AlmostInvisibleBackgroundBrush" Color="#01FFFFFF"/>31 32    <SolidColorBrush x:Key="DisabledForegroundBrush" Color="{StaticResource {x:Static SystemColors.GrayTextColorKey}}"/>33 34    <SolidColorBrush x:Key="FilterBackgroundSearch" Color="#FFEDE7C5"/>35 36    <Geometry x:Key="SingleChevron">M0.83647823,8.3277649 L5.9975096,11.519699 11.198949,8.3030383</Geometry>37 38    <Geometry x:Key="LeftFacingOpenArrow">M205.63696,8.9046901 L201.73368,12.456607 205.68294,16.093484</Geometry>39 40 41    <!--=================================================================42            Designer Style Resources Xaml43        ==================================================================-->44 45    <Style x:Key="FocusVisual_Style">46        <Setter Property="Control.Template">47            <Setter.Value>48                <ControlTemplate>49                    <Grid>50                        <Rectangle51                            SnapsToDevicePixels="true"52                            StrokeThickness="0.75"53                            Stroke="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"54                            />55                        <Rectangle56                            SnapsToDevicePixels="true"57                            StrokeThickness="0.75"58                            Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"59                            StrokeDashArray="3 2"/>60                    </Grid>61                </ControlTemplate>62            </Setter.Value>63        </Setter>64    </Style>65 66    <Style x:Key="TransparentButton_Style" TargetType="{x:Type ButtonBase}" BasedOn="{x:Null}">67        <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual_Style}" />68        <Setter Property="Template">69            <Setter.Value>70                <ControlTemplate TargetType="{x:Type ButtonBase}">71                    <ContentPresenter72                        HorizontalAlignment="Stretch"73                        VerticalAlignment="Stretch"74                        SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />75                </ControlTemplate>76            </Setter.Value>77        </Setter>78        <Setter Property="Padding" Value="0" />79        <Setter Property="ClickMode" Value="Press" />80    </Style>81 82    <Style x:Key="TextTrimmedTextBlockStyle" TargetType="TextBlock">83        <Setter Property="TextTrimming" Value="CharacterEllipsis" />84        <Setter Property="TextWrapping" Value="NoWrap" />85        <Setter Property="local:TextBlockService.IsTextTrimmedMonitoringEnabled" Value="True"/>86        <Setter Property="ToolTipService.Placement" Value="Relative" />87        <Setter Property="ToolTipService.HorizontalOffset" Value="-4" />88        <Style.Triggers>89            <Trigger Property="local:TextBlockService.IsTextTrimmed" Value="True">90                <Setter Property="ToolTip" Value="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=Text}" />91            </Trigger>92 93            <Trigger94                Property="local:TextBlockService.IsTextTrimmedExternally"95                Value="True">96                <Setter97                    Property="ToolTip"98                    Value="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=(local:TextBlockService.UntrimmedText)}" />99            </Trigger>100 101        </Style.Triggers>102    </Style>103 104    <ControlTemplate x:Key="EmptyButton"105                     TargetType="{x:Type ButtonBase}">106        <Border Background="{StaticResource AlmostInvisibleBackgroundBrush}"107                BorderThickness="1">108            <ContentPresenter Margin="{TemplateBinding Padding}" />109        </Border>110    </ControlTemplate>111 112    <!--This is for themeing to make sure all textblocks behave as expected -->113    <Style TargetType="{x:Type TextBlock}">114        <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>115    </Style>116 117    <Style x:Key="HeaderFontVisualStyle">118        <Setter Property="TextBlock.FontWeight" Value="Normal"/>119        <Setter Property="TextBlock.FontStyle" Value="Normal"/>120        <Setter Property="TextBlock.FontStretch" Value="Normal"/>121        <Setter Property="TextBlock.FontSize" Value="16"/>122        <Setter Property="TextBlock.Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>123    </Style>124 125    <!-- Style for Expand Collapse Chevron: points down -->126    <Style x:Key="GeneralExpandCollapseArrowStyle" TargetType="{x:Type Path}">127        <Setter Property="Data" Value="{StaticResource SingleChevron}"/>128        <Setter Property="Width" Value="10"/>129        <Setter Property="Height" Value="6"/>130        <Setter Property="Stroke" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>131        <Setter Property="Stretch" Value="Fill"/>132        <Setter Property="StrokeThickness" Value="2"/>133        <Setter Property="StrokeStartLineCap" Value="Round"/>134        <Setter Property="StrokeEndLineCap" Value="Round"/>135        <Setter Property="RenderTransformOrigin" Value="0.5,0.5" />136        <Setter Property="Path.RenderTransform">137            <Setter.Value>138                <TransformGroup >139                    <ScaleTransform ScaleX="1" ScaleY="1"/>140                    <SkewTransform AngleX="0" AngleY="0"/>141                    <RotateTransform Angle="0"/>142                    <TranslateTransform X="0" Y="0"/>143                </TransformGroup>144            </Setter.Value>145        </Setter>146    </Style>147 148    <!-- Points Right  Use for Nav Pane, CE Etc. -->149    <Style x:Key="GeneralArrowStyle" TargetType="{x:Type Path}">150        <Setter Property="HorizontalAlignment" Value="Center"/>151        <Setter Property="Stroke" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>152        <Setter Property="VerticalAlignment" Value="Center"/>153        <Setter Property="Fill" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>154        <Setter Property="Stretch" Value="Fill"/>155        <Setter Property="Data" Value="{StaticResource NavPane_ListViewItem_RightArrow}"/>156    </Style>157 158    <!-- Points Down Use for menus and the like -->159    <Style x:Key="GeneralArrowStyleDown" TargetType="{x:Type Path}" BasedOn="{StaticResource GeneralArrowStyle}">160        <Setter Property="RenderTransformOrigin" Value="0.5,0.5"/>161        <Setter Property="RenderTransform">162            <Setter.Value>163                <TransformGroup>164                    <ScaleTransform ScaleX="1" ScaleY="1"/>165                    <SkewTransform AngleX="0" AngleY="0"/>166                    <RotateTransform Angle="90"/>167                    <TranslateTransform X="0" Y="0"/>168                </TransformGroup>169            </Setter.Value>170        </Setter>171    </Style>172 173    <Style x:Key="RotatingArrowToggleButtonStyle"174           TargetType="{x:Type ToggleButton}">175        <Setter Property="ToolTip" Value="{x:Static default:XamlLocalizableResources.AutoResXGen_DesignerStyleResources_ToolTip_97}" />176        <Setter Property="Background" Value="{StaticResource AlmostInvisibleBackgroundBrush}" />177        <Setter Property="BorderBrush" Value="{StaticResource AlmostInvisibleBackgroundBrush}" />178        <Setter Property="Cursor" Value="Hand" />179        <Setter Property="Template">180            <Setter.Value>181                <ControlTemplate TargetType="{x:Type ToggleButton}">182                    <Border x:Name="border" Padding="4,3,3,4" BorderThickness="1" CornerRadius="2"183                            Background="{TemplateBinding Background}"184                            BorderBrush="{TemplateBinding BorderBrush}"185                            ToolTip="{TemplateBinding ToolTip}"186                            Cursor="{TemplateBinding Cursor}">187                        <StackPanel Orientation="Horizontal">188                            <Path x:Name="Arrow" Style="{StaticResource GeneralExpandCollapseArrowStyle}" Margin="0,0,5,0" Stroke="{TemplateBinding Foreground}" />189                            <ContentPresenter VerticalAlignment="Center"/>190                        </StackPanel>191                    </Border>192                    <ControlTemplate.Triggers>193                        <Trigger Property="ToggleButton.IsChecked" Value="True">194                            <Setter Property="ToolTip" Value="{x:Static default:XamlLocalizableResources.AutoResXGen_DesignerStyleResources_ToolTip_119}" />195                            <Trigger.EnterActions>196                                <BeginStoryboard>197                                    <Storyboard>198                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Arrow"199                                                           Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">200                                            <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="180"/>201                                        </DoubleAnimationUsingKeyFrames>202                                    </Storyboard>203                                </BeginStoryboard>204                            </Trigger.EnterActions>205                            <Trigger.ExitActions>206                                <BeginStoryboard>207                                    <Storyboard>208                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Arrow"209                                                           Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">210                                            <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/>211                                        </DoubleAnimationUsingKeyFrames>212                                    </Storyboard>213                                </BeginStoryboard>214                            </Trigger.ExitActions>215                        </Trigger>216                    </ControlTemplate.Triggers>217                </ControlTemplate>218            </Setter.Value>219        </Setter>220    </Style>221 222 223    <!-- Pop Up border a la Column Explorer -->224    <Style x:Key="General_PopUp_InnerBorder" TargetType="{x:Type Border}" >225        <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>226        <Setter Property="Padding" Value="8,4,8,8"/>227    </Style>228 229 230    <Style x:Key="GeneralHighlightedArrowStyle" TargetType="{x:Type Path}" BasedOn="{StaticResource GeneralArrowStyle}">231        <Setter Property="Stroke" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}"/>232        <Setter Property="Fill" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}"/>233    </Style>234 235    <Style x:Key="General_PopUp_OuterBorder" TargetType="{x:Type Border}" >236        <Setter Property="BorderBrush" Value="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}"/>237        <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>238        <Setter Property="BorderThickness" Value="1,1,1,1"/>239        <Setter Property="CornerRadius" Value="0"/>240    </Style>241 242    <Style x:Key="General_PopUp_MiddleBorder" TargetType="{x:Type Border}" >243        <Setter Property="Margin" Value="1,1,1,1"/>244        <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>245        <Setter Property="CornerRadius" Value="0"/>246        <Setter Property="Padding" Value="4,4,4,4"/>247    </Style>248 249    <!--Style for NP TabItem-->250    <Style x:Key="MUX_TabControlStyle" TargetType="{x:Type TabControl}">251        <Setter Property="BorderThickness" Value="0,1,0,0"/>252        <Setter Property="BorderBrush" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>253    </Style>254 255    <!--Style for NP TabItem-->256    <Style x:Key="MUX_TabItemStyle" TargetType="{x:Type TabItem}">257    </Style>258 259 260    <Style x:Key="ExpanderButton_FaceStyle" TargetType="{x:Type Path}">261        <Setter Property="Stretch" Value="Uniform" />262        <Setter Property="Fill" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />263        <Style.Triggers>264            <!-- Use different colors if the button is disabled -->265            <Trigger Property="ButtonBase.IsEnabled" Value="False">266                <Setter Property="Fill" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />267            </Trigger>268        </Style.Triggers>269    </Style>270 271    <Style x:Key="ExpanderButton_Face_Style" TargetType="{x:Type Path}" BasedOn="{StaticResource ExpanderButton_FaceStyle}">272        <Setter Property="Data" Value="F1 M 15.0918,20.973L 20.8741,15.1906L 26.8723,21.1888L 25.2473,22.8138L 20.8198,18.4872L 16.7129,22.5941L 15.0918,20.973 Z " />273        <Setter Property="RenderTransformOrigin" Value="0.487,0.6" />274        <Setter Property="Height" Value="5.5" />275    </Style>276 277 278    <ControlTemplate x:Key="ExpanderButton_Template" TargetType="{x:Type ToggleButton}" x:Shared="False">279        <Grid >280            <Ellipse x:Name="BackgroundCircle"281                     Fill="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"282                     Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>283            <Path Style="{StaticResource ExpanderButton_Face_Style}" >284                <Path.RenderTransform>285                    <RotateTransform x:Name="AngleName" Angle="0"/>286                </Path.RenderTransform>287            </Path>288        </Grid>289        <ControlTemplate.Triggers>290            <Trigger Property="IsChecked" Value="False">291                <Setter Property="ToolTip" Value="{x:Static default:XamlLocalizableResources.AutoResXGen_DesignerStyleResources_ToolTip_97}" />292                <Trigger.EnterActions>293                    <BeginStoryboard >294                        <Storyboard >295                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"296                                            Storyboard.TargetName="AngleName"297                                            Storyboard.TargetProperty="Angle">298                                <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="180"/>299                            </DoubleAnimationUsingKeyFrames>300                        </Storyboard>301                    </BeginStoryboard>302                </Trigger.EnterActions>303                <Trigger.ExitActions>304                    <BeginStoryboard >305                        <Storyboard >306                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"307                                            Storyboard.TargetName="AngleName"308                                            Storyboard.TargetProperty="Angle">309                                <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/>310                            </DoubleAnimationUsingKeyFrames>311                        </Storyboard>312                    </BeginStoryboard>313                </Trigger.ExitActions>314            </Trigger>315            <!-- Use different colors if the button is disabled -->316            <Trigger Property="IsEnabled" Value="False">317                <Setter TargetName="BackgroundCircle" Property="Stroke" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />318            </Trigger>319        </ControlTemplate.Triggers>320    </ControlTemplate>321 322    <Style x:Key="ButtonBase_Style" TargetType="{x:Type ButtonBase}">323        <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual_Style}"/>324        <Setter Property="Width" Value="16" />325        <Setter Property="Height" Value="16" />326        <Setter Property="Margin" Value="2,0,2,0" />327        <Setter Property="Cursor" Value="Hand" />328    </Style>329 330    <Style x:Key="ExpanderButton_Style" TargetType="{x:Type ToggleButton}"331           BasedOn="{StaticResource ButtonBase_Style}"  x:Shared="False">332        <Setter Property="ToolTip" Value="{x:Static default:XamlLocalizableResources.AutoResXGen_DesignerStyleResources_ToolTip_119}" />333        <Setter Property="Template" Value="{StaticResource ExpanderButton_Template}" />334    </Style>335 336    <!-- End of Styles from Tile that are used in ManagementList-->337 338 339    <!--=================================================================340        Converts Xaml341    ==================================================================-->342 343    <!-- Converters -->344    <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>345 346    <local:ValidatingSelectorValueToDisplayNameConverter x:Key="ValidatingSelectorValueToDisplayNameConverter" />347 348    <local:VisualToAncestorDataConverter x:Key="VisualToAncestorDataConverter"/>349 350    <local:TextTrimConverter x:Key="TextTrimConverter" />351 352    <local:IntegralConverter x:Key="IntegralConverter" />353 354    <local:ResizerGripThicknessConverter x:Key="ResizerGripThicknessConverter"/>355 356    <local:InverseBooleanConverter x:Key="InverseBooleanConverter"/>357 358    <local:DefaultStringConverter x:Key="NewQueryStringConverter"359                                  DefaultValue="{x:Static default:XamlLocalizableResources.AutoResXGen_ManagementList_Text_602}"/>360 361    <local:StringFormatConverter x:Key="StringFormatConverter"/>362 363    <local:IsEqualConverter x:Key="IsEqualConverter"/>364 365    <local:IsNotNullConverter x:Key="IsNotNullConverter" />366 367    <local:IsValidatingValueValidConverter x:Key="IsValidatingValueValidConverter" />368 369    <local:InputFieldBackgroundTextConverter x:Key="InputFieldBackgroundTextConverter" />370 371 372    <!--=================================================================373        Icons Xaml374    ==================================================================-->375    <!--=================================================================376            Add Filter Rule Picker Default Templates377        ==================================================================-->378 379    <DataTemplate x:Key="AddFilterRulePicker_PickerBase_Header_Template">380        <StackPanel Orientation="Horizontal">381 382            <local:ScalableImage Margin="1,5,0,4">383                <local:ScalableImage.Source>384                    <local:ScalableImageSource Image="pack://application:,,,/Microsoft.Powershell.GraphicalHost;component/resources/Graphics/Add16.png"385                                               Size="9,9" />386                </local:ScalableImage.Source>387            </local:ScalableImage>388 389            <TextBlock x:Name="btnAddContentTextblock"390                       Text="{x:Static default:XamlLocalizableResources.AutoResXGen_ManagementList2_Text_124}"391                       VerticalAlignment="Center"392                       Margin="5,0,2,0" />393 394            <Path x:Name="AddContent_ArrowDown"395                  Style="{StaticResource GeneralArrowStyleDown}"396                  Margin="5,0,5,0" />397 398        </StackPanel>399    </DataTemplate>400 401    <Style x:Key="AddFilterRuleItemCheckBox_Style" TargetType="{x:Type CheckBox}">402        <Setter Property="Margin" Value="2,2,2,0" />403    </Style>404 405    <DataTemplate x:Key="AddFilterRulePicker_PickerBase_Content_FilterItem_Template">406        <ToggleButton x:Name="AddFilterRuleItem"407                      AutomationProperties.Name="{Binding Path=Text, ElementName=AddFilterRuleItemName}"408                      IsChecked="{Binding Path=IsChecked}"409                      KeyboardNavigation.AcceptsReturn="False"410                      HorizontalContentAlignment="Stretch"411                      Margin="0"412                      Padding="0"413                      Template="{StaticResource EmptyButton}">414 415            <Grid>416                <Grid.ColumnDefinitions>417                    <ColumnDefinition Width="Auto" />418                    <ColumnDefinition />419                </Grid.ColumnDefinitions>420 421                <CheckBox x:Name="AddFilterRuleItemCheckBox"422                          AutomationProperties.Name="{Binding Path=Text, ElementName=AddFilterRuleItemName}"423                          IsChecked="{Binding Path=IsChecked}"424                          VerticalAlignment="Top"425                          Style="{StaticResource AddFilterRuleItemCheckBox_Style}"426                          IsTabStop="False">427                    <CheckBox.Content>428                        <Border x:Name="InnerBorder"429                                Grid.Column="1"430                                Padding="2,1,2,1">431                            <local:AutomationTextBlock x:Name="AddFilterRuleItemName"432                                TextWrapping="Wrap"433                                Text="{Binding Path=FilterRule.Rule.DisplayName}" />434                        </Border>435                    </CheckBox.Content>436                </CheckBox>437            </Grid>438        </ToggleButton>439        <DataTemplate.Triggers>440            <Trigger Property="IsKeyboardFocusWithin"441                     Value="True">442                <Setter TargetName="InnerBorder"443                        Property="Background"444                        Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" />445                <Setter TargetName="AddFilterRuleItemName"446                        Property="Foreground"447                        Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}" />448            </Trigger>449            <Trigger Property="IsMouseOver"450                     Value="True">451                <Setter TargetName="InnerBorder"452                        Property="Background"453                        Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" />454                <Setter TargetName="AddFilterRuleItemName"455                        Property="Foreground"456                        Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}" />457            </Trigger>458        </DataTemplate.Triggers>459    </DataTemplate>460 461    <DataTemplate x:Key="AddFilterRulePicker_PickerBase_Content_Template">462        <Border Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"463                BorderBrush="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}"464                BorderThickness="1"465                CornerRadius="2">466 467            <Grid>468                <Grid.RowDefinitions>469                    <RowDefinition />470                    <RowDefinition Height="Auto" />471                </Grid.RowDefinitions>472 473                <!-- Shortcut Rules -->474                <ScrollViewer x:Name="ShortcutRulesScrollViewer"475                              KeyboardNavigation.TabNavigation="Once"476                              HorizontalScrollBarVisibility="Disabled"477                              VerticalScrollBarVisibility="Auto">478                    <StackPanel>479                        <local:AutomationGroup x:Name="ShortcutRuleItems"480                                           AutomationProperties.Name="{x:Static default:XamlLocalizableResources.AutoResXGen_AddFilterRulePicker_AutomationPropertiesName_157}"481                                           IsTabStop="False">482                            <ItemsControl x:Name="PART_Rules"483                                  ItemsSource="{Binding Path=ShortcutFilterRules, RelativeSource={RelativeSource AncestorType={x:Type local:AddFilterRulePicker}}}"484                                  ItemTemplate="{StaticResource AddFilterRulePicker_PickerBase_Content_FilterItem_Template}"485                                  IsTabStop="False"486                                  Margin="1" />487                        </local:AutomationGroup>488 489                        <Separator490                            x:Name="PART_RulesSeparator"491                            Background="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"492                            Margin="0,2,0,2"493                            Height="1" />494 495                        <local:AutomationGroup x:Name="ColumnRuleItems"496                                               AutomationProperties.Name="{x:Static default:XamlLocalizableResources.AutoResXGen_AddFilterRulePicker_AutomationPropertiesName_180}"497                                               IsTabStop="False">498                            <ItemsControl x:Name="PART_ExtraRules"499                                      ItemsSource="{Binding Path=ColumnFilterRules, RelativeSource={RelativeSource AncestorType={x:Type local:AddFilterRulePicker}}}"500                                      ItemTemplate="{StaticResource AddFilterRulePicker_PickerBase_Content_FilterItem_Template}"501                                      IsTabStop="False"502                                      Margin="1" />503                        </local:AutomationGroup>504                    </StackPanel>505                </ScrollViewer>506 507                <!--Footer Border-->508 509                <Grid Grid.Row="2"510                      Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}">511                    <Grid.ColumnDefinitions>512                        <ColumnDefinition />513                        <ColumnDefinition Width="Auto" />514                    </Grid.ColumnDefinitions>515                    <Grid.RowDefinitions>516                        <RowDefinition Height="Auto" />517                        <RowDefinition Height="Auto" />518                    </Grid.RowDefinitions>519 520                    <Rectangle HorizontalAlignment="Stretch"521                               Height="3"522                               Grid.ColumnSpan="2">523                        <Rectangle.Fill>524                            <LinearGradientBrush StartPoint="0.5,1.0"525                                                 EndPoint="0.5,0.0">526                                <GradientStop Color="#88000000"527                                              Offset="0" />528                                <GradientStop Color="#00000000"529                                              Offset="1" />530                            </LinearGradientBrush>531                        </Rectangle.Fill>532                    </Rectangle>533 534                    <local:AutomationButton x:Name="PART_OkButton"535                            Command="{x:Static local:AddFilterRulePicker.OkAddFilterRulesCommand}"536                            HorizontalAlignment="Right"537                            Grid.Row="1"538                            Content="{x:Static default:XamlLocalizableResources.AutoResXGen_AddFilterRulePicker_Content_214}"539                            MinWidth="70"540                            IsDefault="True"541                            Margin="5,5,10,3" />542 543                    <local:AutomationButton x:Name="PART_CancelButton"544                            Grid.Column="1"545                            Grid.Row="1"546                            Command="{x:Static local:AddFilterRulePicker.CancelAddFilterRulesCommand}"547                            Content="{x:Static default:XamlLocalizableResources.AutoResXGen_AddFilterRulePicker_Content_223}"548                            MinWidth="70"549                            IsCancel="True"550                            Margin="0,5,5,3" />551                </Grid>552            </Grid>553        </Border>554 555        <DataTemplate.Triggers>556 557            <!--Hide the separator if there are no shortcut filter rules -->558            <DataTrigger Binding="{Binding Path=ShortcutFilterRules.Count, RelativeSource={RelativeSource AncestorType={x:Type local:AddFilterRulePicker}}}"559                         Value="0">560                <Setter TargetName="PART_RulesSeparator"561                        Property="Visibility"562                        Value="Collapsed" />563            </DataTrigger>564 565            <!--Hide the separator if there are no column filter rules-->566            <DataTrigger Binding="{Binding Path=ColumnFilterRules.Count, RelativeSource={RelativeSource AncestorType={x:Type local:AddFilterRulePicker}}}"567                         Value="0">568                <Setter TargetName="PART_RulesSeparator"569                        Property="Visibility"570                        Value="Collapsed" />571            </DataTrigger>572 573        </DataTemplate.Triggers>574    </DataTemplate>575 576    <!--Add Filter Rule Picker Base Style-->577    <Style x:Key="AddFilterRulePicker_PickerBase_Style"578           TargetType="{x:Type local:PickerBase}">579        <Setter Property="HeaderTemplate"580                Value="{StaticResource AddFilterRulePicker_PickerBase_Header_Template}" />581        <Setter Property="ContentTemplate"582                Value="{StaticResource AddFilterRulePicker_PickerBase_Content_Template}" />583        <Setter Property="AutomationProperties.AutomationId"584                Value="AddFilterRulePicker" />585    </Style>586 587    <!--Add Filter Rule Picker-->588    <Style TargetType="{x:Type local:AddFilterRulePicker}">589        <Setter Property="IsTabStop"590                Value="False" />591        <Setter Property="Background"592                Value="Transparent" />593        <Setter Property="BorderThickness"594                Value="0" />595 596        <Setter Property="Template">597            <Setter.Value>598                <ControlTemplate TargetType="{x:Type local:AddFilterRulePicker}">599                    <Border Background="{TemplateBinding Background}"600                            BorderBrush="{TemplateBinding BorderBrush}"601                            BorderThickness="{TemplateBinding BorderThickness}">602 603                        <local:PickerBase x:Name="AddCriteriaPickerBase"604                                          AutomationProperties.Name="{x:Static default:XamlLocalizableResources.AutoResXGen_AddFilterRulePicker_AutomationPropertiesName_293}"605                                          IsOpen="{Binding Path=IsOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"606                                          Style="{StaticResource AddFilterRulePicker_PickerBase_Style}">607                            <local:PickerBase.DropDownStyle>608                                <Style TargetType="{x:Type Popup}">609                                    <Setter Property="AutomationProperties.AutomationId" Value="AddSearchCriteriaDropDown" />610                                    <Setter Property="MinWidth" Value="200" />611                                    <Setter Property="MaxWidth" Value="400" />612                                    <Setter Property="MaxHeight" Value="300" />613                                </Style>614                            </local:PickerBase.DropDownStyle>615                        </local:PickerBase>616                    </Border>617                </ControlTemplate>618            </Setter.Value>619        </Setter>620    </Style>621 622 623    <!--=================================================================624            Column Picker Xaml625        ==================================================================-->626 627    <!--ColumnPicker Styles-->628    <!-- These styles are available for theming the components of the ColumnPicker dialog. -->629    <Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ColumnPicker}, ResourceId=CPWindowStyle}"630           TargetType="{x:Type Window}">631        <Setter Property="Width"632                Value="500" />633        <Setter Property="Height"634                Value="400" />635        <Setter Property="MinWidth"636                Value="400" />637        <Setter Property="MinHeight"638                Value="300" />639    </Style>640    <Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ColumnPicker}, ResourceId=CPOuterGridStyle}"641           TargetType="{x:Type Grid}">642        <Setter Property="Margin"643                Value="5,5,5,5" />644    </Style>645    <Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ColumnPicker}, ResourceId=CPNotSelectedListboxHeaderStyle}"646           TargetType="{x:Type Label}">647    </Style>648    <Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ColumnPicker}, ResourceId=CPSelectedListboxHeaderStyle}"649           TargetType="{x:Type Label}">650    </Style>651    <Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ColumnPicker}, ResourceId=CPWarningTextStyle}"652           TargetType="{x:Type TextBlock}">653        <Setter Property="HorizontalAlignment"654                Value="Center" />655    </Style>656    <Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ColumnPicker}, ResourceId=CPNotSelectedListboxStyle}"657           TargetType="{x:Type ListBox}">658    </Style>659    <Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ColumnPicker}, ResourceId=CPNotSelectedListboxItemStyle}"660           TargetType="{x:Type ListBoxItem}">661        <Setter Property="AutomationProperties.Name"662                Value="{Binding Path=DataDescription.DisplayName}" />663    </Style>664    <Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ColumnPicker}, ResourceId=CPSelectedListboxStyle}"665           TargetType="{x:Type ListBox}">666    </Style>667    <Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ColumnPicker}, ResourceId=CPSelectedListboxItemStyle}"668           TargetType="{x:Type ListBoxItem}">669        <Setter Property="AutomationProperties.Name"670                Value="{Binding Path=DataDescription.DisplayName}" />671    </Style>672    <Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ColumnPicker}, ResourceId=CPAddRemoveStackPanelStyle}"673           TargetType="{x:Type StackPanel}">674        <Setter Property="Margin"675                Value="10,20,10,0" />676    </Style>677    <Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ColumnPicker}, ResourceId=CPAddButtonStyle}"678           TargetType="{x:Type Button}">679    </Style>680    <Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ColumnPicker}, ResourceId=CPRemoveButtonStyle}"681           TargetType="{x:Type Button}">682        <Setter Property="Margin"683                Value="0,10,0,0" />684    </Style>685    <Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ColumnPicker}, ResourceId=CPUpDownStackPanelStyle}"686           TargetType="{x:Type StackPanel}">687        <Setter Property="Margin"688                Value="10,20,0,0" />689    </Style>690    <Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ColumnPicker}, ResourceId=CPMoveUpButtonStyle}"691           TargetType="{x:Type Button}">692    </Style>693    <Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ColumnPicker}, ResourceId=CPMoveDownButtonStyle}"694           TargetType="{x:Type Button}">695        <Setter Property="Margin"696                Value="0,10,0,0" />697    </Style>698    <Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ColumnPicker}, ResourceId=CPOkCancelStackPanelStyle}"699           TargetType="{x:Type StackPanel}">700        <Setter Property="Margin"701                Value="0,10,0,0" />702    </Style>703    <Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ColumnPicker}, ResourceId=CPOkButtonStyle}"704           TargetType="{x:Type Button}">705        <Setter Property="Margin"706                Value="0,0,10,0" />707        <Setter Property="MinWidth"708                Value="75" />709        <Setter Property="MinHeight"710                Value="23" />711        <Setter Property="Padding"712                Value="10,0,10,0" />713    </Style>714    <Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ColumnPicker}, ResourceId=CPCancelButtonStyle}"715           TargetType="{x:Type Button}">716        <Setter Property="MinWidth"717                Value="75" />718        <Setter Property="MinHeight"719                Value="23" />720        <Setter Property="Padding"721                Value="10,0,10,0" />722    </Style>723 724    <Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ColumnPicker}, ResourceId=CPOkCancelButtonStyle}"725           TargetType="{x:Type Button}">726        <Setter Property="MinWidth"727                Value="75" />728        <Setter Property="Margin"729                Value="5,3,5,3" />730    </Style>731    <Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ColumnPicker}, ResourceId=CPOkCancelFooterRectangleStyle}"732           TargetType="{x:Type Rectangle}">733        <Setter Property="Height"734                Value="3" />735        <Setter Property="Stroke"736                Value="{x:Null}" />737        <Setter Property="Fill">738            <Setter.Value>739                <LinearGradientBrush StartPoint="0.5,1.0"740                                     EndPoint="0.5,0.0">741                    <GradientStop Color="#88000000"742                                  Offset="0" />743                    <GradientStop Color="#00000000"744                                  Offset="1" />745                </LinearGradientBrush>746            </Setter.Value>747        </Setter>748    </Style>749    <Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:ColumnPicker}, ResourceId=CPOkCancelGridStyle}"750           TargetType="{x:Type Grid}">751        <Setter Property="Background">752            <Setter.Value>753                <SolidColorBrush Color="{x:Static SystemColors.ControlColor}" />754            </Setter.Value>755        </Setter>756    </Style>757 758 759    <!--=================================================================760            Filter Rule Panel Default Templates761        ==================================================================-->762 763    <Style x:Key="OperatorDropDown_Button_Style" TargetType="{x:Type ButtonBase}">764        <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HotTrackBrushKey}}" />765 766        <Setter Property="Control.Template">767            <Setter.Value>768                <ControlTemplate TargetType="{x:Type ButtonBase}">769                    <TextBlock x:Name="PART_TextBlock"770                               TextDecorations="Underline"771                               Foreground="{TemplateBinding Foreground}">772                        <TextBlock.Text>773                            <MultiBinding Converter="{StaticResource ValidatingSelectorValueToDisplayNameConverter}">774                                <Binding />775                                <Binding Path="Tag" RelativeSource="{RelativeSource AncestorType={x:Type ComboBox}}" />776                            </MultiBinding>777                        </TextBlock.Text>778                    </TextBlock>779                    <ControlTemplate.Triggers>780                        <Trigger Property="IsMouseOver" Value="True">781                            <Setter Property="Cursor" Value="Hand" />782                        </Trigger>783                        <Trigger Property="IsEnabled" Value="False">784                            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>785                        </Trigger>786                    </ControlTemplate.Triggers>787                </ControlTemplate>788            </Setter.Value>789        </Setter>790    </Style>791 792    <ControlTemplate x:Key="OperatorDropDown_Item_Template" TargetType="{x:Type ComboBoxItem}">793        <Border x:Name="innerBorder"794                Padding="2,1,2,1">795            <TextBlock x:Name="tb"796                       TextSearch.Text="{Binding Path=DisplayName, Mode=OneWay}">797                <TextBlock.Text>798                    <MultiBinding Converter="{StaticResource ValidatingSelectorValueToDisplayNameConverter}">799                        <Binding />800                        <Binding Path="Tag"801                                 RelativeSource="{RelativeSource AncestorType={x:Type ComboBox}}" />802                    </MultiBinding>803                </TextBlock.Text>804            </TextBlock>805        </Border>806        <ControlTemplate.Triggers>807            <Trigger Property="IsMouseOver" Value="True">808                <Setter TargetName="innerBorder" Property="Background" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>809                <Setter TargetName="tb" Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}"/>810            </Trigger>811            <Trigger Property="IsSelected" Value="True">812                <Setter TargetName="innerBorder" Property="Background" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>813                <Setter TargetName="tb" Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}"/>814            </Trigger>815        </ControlTemplate.Triggers>816    </ControlTemplate>817 818 819    <Style x:Key="OperatorDropDown_Style" TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">820        <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual_Style}" />821        <Setter Property="Margin" Value="0,5,0,0" />822        <Setter Property="VerticalAlignment" Value="Top" />823        <Setter Property="AutomationProperties.AutomationId" Value="OperatorDropDownButton" />824        <Setter Property="AutomationProperties.Name" Value="{Binding Path=SelectedItem.DisplayName, RelativeSource={RelativeSource Self}}" />825 826        <Setter Property="ItemsControl.ItemContainerStyle">827            <Setter.Value>828                <Style TargetType="{x:Type ComboBoxItem}">829                    <Setter Property="Control.Template" Value="{StaticResource OperatorDropDown_Item_Template}" />830                    <Setter Property="AutomationProperties.AutomationId" Value="OperatorDropDownItem" />831                    <Setter Property="AutomationProperties.Name" Value="{Binding Path=DisplayName}" />832                </Style>833            </Setter.Value>834        </Setter>835        <Setter Property="Template">836            <Setter.Value>837                <ControlTemplate TargetType="{x:Type ComboBox}">838                    <Grid Name="MainGrid"839                          SnapsToDevicePixels="true">840                        <local:ExpanderButton841                            Focusable="False"842                            Style="{StaticResource OperatorDropDown_Button_Style}"843                            IsEnabled="{TemplateBinding IsEnabled}"844                            DataContext="{Binding Path=SelectedItem, RelativeSource={RelativeSource TemplatedParent}}"845                            IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>846 847                        <local:DismissiblePopup848                            SetFocusOnClose="True"849                            AllowsTransparency="True"850                            Placement="Bottom"851                            IsOpen="{Binding Path=IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}"852                            PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">853                            <classictheme:SystemDropShadowChrome Color="#71000000" Margin="0,0,5,5">854                                <Border x:Name="DropDownBorder"855                                        BorderThickness="1"856                                        BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}"857                                        Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}">858                                    <ScrollViewer CanContentScroll="true">859                                        <ItemsPresenter KeyboardNavigation.DirectionalNavigation="Contained"860                                                        Margin="1"861                                                        SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />862                                    </ScrollViewer>863                                </Border>864                            </classictheme:SystemDropShadowChrome>865                        </local:DismissiblePopup>866                    </Grid>867                </ControlTemplate>868            </Setter.Value>869        </Setter>870    </Style>871 872    <DataTemplate x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:FilterRulePanel}, ResourceId=ValidatingSelectorValueTemplate}">873        <ComboBox x:Name="cb"874                  SelectedIndex="{Binding Path=SelectedIndex}"875                  ItemsSource="{Binding Path=AvailableValues}"876                  Tag="{Binding Path=DisplayNameConverter}"877                  Style="{StaticResource OperatorDropDown_Style}">878        </ComboBox>879    </DataTemplate>880 881    <Style x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:FilterRulePanel}, ResourceId=RemoveFilterItemButtonStyle}"882           TargetType="Button">883        <Setter Property="VerticalAlignment"884                Value="Top" />885 886        <Setter Property="Margin"887                Value="5,3,0,0" />888        <Setter Property="Command"889                Value="{x:Static local:FilterRulePanel.RemoveRuleCommand}" />890 891        <Setter Property="CommandParameter"892                Value="{Binding RelativeSource={RelativeSource Self}, Converter={StaticResource VisualToAncestorDataConverter}, ConverterParameter={x:Type local:FilterRulePanelItem}}" />893 894        <Setter Property="FocusVisualStyle"895                Value="{StaticResource FocusVisual_Style}" />896        <Setter Property="Background"897                Value="{StaticResource NormalBrush}" />898        <Setter Property="BorderBrush"899                Value="{StaticResource NormalBorderBrush}" />900 901        <Setter Property="AutomationProperties.AutomationId"902                Value="RemoveFilterRulePanelItemButton" />903        <Setter Property="AutomationProperties.Name"904                Value="{x:Static default:XamlLocalizableResources.AutoResXGen_ManagementList_AutomationPropertiesName_302}" />905 906        <Setter Property="Template">907            <Setter.Value>908                <ControlTemplate TargetType="{x:Type Button}">909 910                    <Grid x:Name="Grid">911                        <Border BorderThickness="1,1,1,1"912                                CornerRadius="0,0,0,0"913                                Background="{StaticResource AlmostInvisibleBackgroundBrush}"914                                Width="18"915                                Height="18">916                            <local:ScalableImage x:Name="image">917                                <local:ScalableImage.Source>918                                    <local:ScalableImageSource Image="pack://application:,,,/Microsoft.Powershell.GraphicalHost;component/resources/Graphics/Delete16.png"919                                                               Size="10,10" />920                                </local:ScalableImage.Source>921                            </local:ScalableImage>922                        </Border>923                    </Grid>924 925                    <ControlTemplate.Triggers>926                        <Trigger Property="IsEnabled"927                                 Value="false">928                            <Setter Property="Foreground"929                                    Value="{StaticResource DisabledForegroundBrush}" />930                        </Trigger>931                    </ControlTemplate.Triggers>932                </ControlTemplate>933            </Setter.Value>934        </Setter>935    </Style>936 937    <DataTemplate x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:FilterRulePanel}, ResourceId=CompositeRuleTemplate}">938        <WrapPanel>939            <local:AutomationTextBlock940                AutomationProperties.AutomationId="PropertyName"941                VerticalAlignment="Top"942                Margin="0,5,4,0"943                Text="{Binding Path=DisplayName, Mode=OneWay}" />944 945            <StackPanel Orientation="Horizontal">946                <!--Rules Selector-->947                <local:FilterRulePanelContentPresenter Content="{Binding Path=AvailableRules}" />948 949                <!--Rule Input-->950                <local:FilterRulePanelContentPresenter Content="{Binding Path=AvailableRules.SelectedValue}" />951 952                <!--Delete Button-->953                <local:AutomationButton Style="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type local:FilterRulePanel}, ResourceId=RemoveFilterItemButtonStyle}}" />954            </StackPanel>955        </WrapPanel>956    </DataTemplate>957 958    <DataTemplate x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:FilterRulePanel}, ResourceId=CatchAllTemplate}">959        <!--The ContentTemplateSelector must be explicitly set to null, otherwise infinite loops are possible-->960        <ContentPresenter ContentTemplateSelector="{x:Null}" />961    </DataTemplate>962 963    <DataTemplate x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:FilterRulePanel}, ResourceId=NoInputTemplate}">964        <ContentPresenter Content="{x:Null}" />965    </DataTemplate>966 967    <ControlTemplate x:Key="FilterRuleValidationErrorTemplate">968        <AdornedElementPlaceholder />969    </ControlTemplate>970 971    <DataTemplate x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:FilterRulePanel}, ResourceId=ComparableValueRuleTemplate}">972        <local:FilterRulePanelContentPresenter Content="{Binding Path=Value}" />973    </DataTemplate>974 975    <DataTemplate x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:FilterRulePanel}, ResourceId=ValidatingValueTemplate}">976        <local:FilterRulePanelContentPresenter Content="{Binding}"977                                             ContentConverter="{x:Static local:ValidatingValueToGenericParameterTypeConverter.Instance}"/>978    </DataTemplate>979 980    <Style x:Key="ValidatingValueInput_Style" TargetType="{x:Type local:MessageTextBox}">981        <Setter Property="Text" Value="{Binding Path=Value, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource TextTrimConverter}}" />982        <Setter Property="AutomationProperties.Name" Value="{x:Static default:XamlLocalizableResources.AutoResXGen_FilterRulePanel_AutomationPropertiesName_199}" />983        <Setter Property="AutomationProperties.AutomationId" Value="InputField" />984        <Setter Property="BackgroundText" Value="{Binding Converter={StaticResource InputFieldBackgroundTextConverter}}" />985        <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />986        <Setter Property="Margin" Value="5, 2" />987        <Setter Property="Validation.ErrorTemplate" Value="{StaticResource FilterRuleValidationErrorTemplate}" />988        <Setter Property="Width" Value="100" />989    </Style>990 991    <DataTemplate x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:FilterRulePanel}, ResourceId=InputValueTemplate}">992        <StackPanel Orientation="Horizontal">993            <local:AutomationImage x:Name="ErrorGraphics"994                   Visibility="Collapsed"995                   Margin="5, 2, 0, 2"996                   Focusable="False"997                   AutomationProperties.Name="{Binding Path=(AutomationProperties.HelpText), ElementName=InputField}"998                   AutomationProperties.AutomationId="ErrorGraphics"999                   Stretch="None"1000                   Width="16"1001                   Height="16"1002                   Source="pack://application:,,,/Microsoft.Powershell.GraphicalHost;component/resources/Graphics/Error16.png" />1003 1004            <local:MessageTextBox1005                x:Name="InputField"1006                AutomationProperties.HelpText="{Binding Path=(Validation.Errors).CurrentItem.ErrorContent, RelativeSource={RelativeSource Self}}"1007                Style="{StaticResource ValidatingValueInput_Style}" />1008 1009            <local:DismissiblePopup1010                Focusable="False"1011                MinWidth="100"1012                x:Name="ErrorPopup"1013                AutomationProperties.AutomationId="ErrorPopup"1014                IsOpen="False"1015                Width="{Binding Path=ActualWidth, ElementName=InputField}"1016                PlacementTarget="{Binding ElementName=InputField}"1017                Placement="Top">1018                <Border1019                    Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"1020                    Padding="2"1021                    BorderBrush="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"1022                    BorderThickness="2">1023                    <local:AutomationTextBlock1024                        x:Name="txtError"1025                        Text="{Binding Path=(AutomationProperties.HelpText), ElementName=InputField}"1026                        Focusable="False"1027                        TextWrapping="Wrap" />1028                </Border>1029            </local:DismissiblePopup>1030 1031        </StackPanel>1032 1033        <DataTemplate.Triggers>1034 1035            <!--Show Error Icon When Input Is Invalid-->1036            <Trigger SourceName="InputField"1037                     Property="Validation.HasError"1038                     Value="True">1039                <Setter TargetName="ErrorGraphics"1040                        Property="Visibility"1041                        Value="Visible" />1042            </Trigger>1043 1044            <!--Show error popup when input is invalid and when the mouse is over the textbox-->1045            <MultiDataTrigger>1046                <MultiDataTrigger.Conditions>1047                    <Condition1048                        Binding="{Binding Path=Error, Converter={StaticResource IsValidatingValueValidConverter}}"1049                        Value="False" />1050                    <Condition1051                        Binding="{Binding Path=IsMouseOver, ElementName=InputField}"1052                        Value="True" />1053                </MultiDataTrigger.Conditions>1054 1055                <Setter1056                    TargetName="ErrorPopup"1057                    Property="IsOpen"1058                    Value="True" />1059            </MultiDataTrigger>1060 1061            <!--Show error popup when input is invalid and when the textbox has focus-->1062            <MultiDataTrigger>1063                <MultiDataTrigger.Conditions>1064                    <Condition1065                        Binding="{Binding Path=Error, Converter={StaticResource IsValidatingValueValidConverter}}"1066                        Value="False" />1067                    <Condition1068                        Binding="{Binding Path=IsFocused, ElementName=InputField}"1069                        Value="True" />1070                </MultiDataTrigger.Conditions>1071 1072                <Setter1073                    TargetName="ErrorPopup"1074                    Property="IsOpen"1075                    Value="True" />1076            </MultiDataTrigger>1077 1078        </DataTemplate.Triggers>1079    </DataTemplate>1080 1081    <DataTemplate x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:FilterRulePanel}, ResourceId=IsBetweenRuleTemplate}">1082        <StackPanel Orientation="Horizontal">1083            <local:FilterRulePanelContentPresenter Content="{Binding Path=StartValue}" />1084 1085            <local:FilterRulePanelContentPresenter Content="{Binding Path=EndValue}" />1086        </StackPanel>1087    </DataTemplate>1088 1089    <DataTemplate x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:FilterRulePanel}, ResourceId=FilterRulePanelGroupItemTypeTemplate}">1090 1091        <local:AutomationTextBlock VerticalAlignment="Center" Margin="5,0,4,0"  x:Name="LogicalOperator" />1092 1093        <DataTemplate.Triggers>1094            <DataTrigger1095                Binding="{Binding}"1096                Value="{x:Static local:FilterRulePanelItemType.FirstHeader}">1097                <Setter1098                    Property="Text"1099                    Value="{x:Static default:XamlLocalizableResources.FilterRulePanel_LogicalOperatorText_FirstHeader}"1100                    TargetName="LogicalOperator" />1101            </DataTrigger>1102 1103            <DataTrigger1104                Binding="{Binding}"1105                Value="{x:Static local:FilterRulePanelItemType.Header}">1106                <Setter1107                    Property="Text"1108                    Value="{x:Static default:XamlLocalizableResources.FilterRulePanel_LogicalOperatorText_Header}"1109                    TargetName="LogicalOperator" />1110            </DataTrigger>1111 1112            <DataTrigger1113                Binding="{Binding}"1114                Value="{x:Static local:FilterRulePanelItemType.Item}">1115                <Setter1116                    Property="Text"1117                    Value="{x:Static default:XamlLocalizableResources.FilterRulePanel_LogicalOperatorText_Item}"1118                    TargetName="LogicalOperator" />1119                <Setter1120                    TargetName="LogicalOperator"1121                    Property="Margin"1122                    Value="13, 0, 4, 0" />1123            </DataTrigger>1124        </DataTemplate.Triggers>1125    </DataTemplate>1126 1127    <!--=================================================================1128            Filter Rule Panel1129        ==================================================================-->1130 1131    <Style TargetType="{x:Type local:FilterRulePanel}">1132        <Setter Property="IsTabStop" Value="False" />1133        <Setter Property="Background" Value="Transparent" />1134        <Setter Property="BorderThickness" Value="0" />1135        <Setter Property="AutomationProperties.Name" Value="{x:Static default:XamlLocalizableResources.AutoResXGen_FilterRulePanel_AutomationPropertiesName_257}" />1136        <Setter Property="AutomationProperties.AutomationId" Value="FilterRulePanel" />1137        <Setter Property="Template">1138            <Setter.Value>1139                <ControlTemplate TargetType="{x:Type local:FilterRulePanel}">1140                    <!--Adding AdornerDecorator with implicit style for Control to fix Win7 bug 393988-->1141                    <AdornerDecorator>1142                        <AdornerDecorator.Resources>1143                            <Style1144                                TargetType="Control">1145                                <Setter1146                                    Property="Focusable"1147                                    Value="False" />1148                            </Style>1149                        </AdornerDecorator.Resources>1150                        <Border Background="{TemplateBinding Background}"1151                                BorderBrush="{TemplateBinding BorderBrush}"1152                                BorderThickness="{TemplateBinding BorderThickness}">1153                            <ItemsControl1154                                x:Name="list"1155                                IsTabStop="False"1156                                ItemsSource="{Binding Path=FilterRulePanelItems, RelativeSource={RelativeSource TemplatedParent}}">1157                                <ItemsControl.ItemTemplate>1158                                    <DataTemplate>1159                                        <local:AutomationGroup1160                                            x:Name="FilterRulePanelItem"1161                                            AutomationProperties.Name="{Binding Path=Rule.DisplayName, StringFormat={x:Static default:XamlLocalizableResources.FilterRule_AccessibleName}}"1162                                            IsTabStop="False">1163                                            <Grid Margin="0, 1">1164                                                <Grid.ColumnDefinitions>1165                                                    <ColumnDefinition Width="Auto" />1166                                                    <ColumnDefinition />1167                                                </Grid.ColumnDefinitions>1168 1169                                                <ContentPresenter Content="{Binding Path=ItemType}"1170                                                                  VerticalAlignment="Top"1171                                                                  Margin="0,5,0,0"1172                                                                  ContentTemplateSelector="{Binding Path=FilterRuleTemplateSelector, RelativeSource={RelativeSource AncestorType={x:Type local:FilterRulePanel}}}" />1173 1174                                                <ContentPresenter Grid.Column="1"1175                                                                  Content="{Binding Path=Rule}"1176                                                                  ContentTemplateSelector="{Binding Path=FilterRuleTemplateSelector, RelativeSource={RelativeSource AncestorType={x:Type local:FilterRulePanel}}}" />1177                                            </Grid>1178                                        </local:AutomationGroup>1179                                    </DataTemplate>1180                                </ItemsControl.ItemTemplate>1181                            </ItemsControl>1182                        </Border>1183                    </AdornerDecorator>1184                    <ControlTemplate.Triggers>1185                        <DataTrigger Binding="{Binding Path=Items.Count, ElementName=list}" Value="0">1186                            <Setter Property="Visibility" Value="Collapsed" TargetName="list" />1187                        </DataTrigger>1188                    </ControlTemplate.Triggers>1189                </ControlTemplate>1190            </Setter.Value>1191        </Setter>1192    </Style>1193 1194 1195    <!--=================================================================1196            Inner List Xaml1197        ==================================================================-->1198 1199    <!--MenuItem Style definition -->1200    <ControlTemplate x:Key="{x:Static MenuItem.TopLevelItemTemplateKey}"

Showing the first 1,200 of 2791 lines. Download the file for the rest.