这是indexloc提供的服务,不要输入任何密码
Skip to content

Document Tab close button: Wrong ResourceKey on VS2013 Theme #271

@usagirei

Description

@usagirei

These 3 Triggers in the VS2013 Theme set the document tab close button (PART_ImgPinClose) to the wrong ResourceKey (DockingButtonForegroundArrowBrushKey)

They should be, respectively:

  • DocumentWellTabButtonSelectedInactiveGlyph
    <!-- Document Well : Tab : Button / Selected, inactive -->
    <MultiDataTrigger>
    <MultiDataTrigger.Conditions>
    <Condition Binding="{Binding IsLastFocusedDocument}" Value="true" />
    </MultiDataTrigger.Conditions>
    <Setter TargetName="PART_ImgPinClose" Property="Fill" Value="{DynamicResource {x:Static reskeys:ResourceKeys.DockingButtonForegroundArrowBrushKey}}" />
    </MultiDataTrigger>
  • DocumentWellTabButtonSelectedInactiveHoveredGlyph
    <!-- Document Well : Tab : Button / Selected, inactive, hovered -->
    <MultiDataTrigger>
    <MultiDataTrigger.Conditions>
    <Condition Binding="{Binding IsLastFocusedDocument}" Value="true" />
    <Condition Binding="{Binding IsMouseOver, ElementName=DocumentCloseButton}" Value="True" />
    </MultiDataTrigger.Conditions>
    <Setter TargetName="DocumentCloseButton" Property="Background" Value="{DynamicResource {x:Static reskeys:ResourceKeys.DocumentWellTabButtonSelectedInactiveHoveredBackground}}" />
    <Setter TargetName="DocumentCloseButton" Property="BorderBrush" Value="{DynamicResource {x:Static reskeys:ResourceKeys.DocumentWellTabButtonSelectedInactiveHoveredBorder}}" />
    <Setter TargetName="PART_ImgPinClose" Property="Fill" Value="{DynamicResource {x:Static reskeys:ResourceKeys.DockingButtonForegroundArrowBrushKey}}" />
    </MultiDataTrigger>
  • DocumentWellTabButtonSelectedActiveGlyph
    <!-- Document Well : Tab : Button / Selected, active -->
    <DataTrigger Binding="{Binding IsActive}" Value="true">
    <Setter TargetName="PART_ImgPinClose" Property="Fill" Value="{DynamicResource {x:Static reskeys:ResourceKeys.DockingButtonForegroundArrowBrushKey}}" />
    </DataTrigger>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions