Changeset 2582


Ignore:
Timestamp:
Feb 5, 2011, 1:48:23 AM (11 years ago)
Author:
matkovic
Message:

-PluginContainerView: TextBox borders are now only visible on these cases: IsMouseOver, IsFocused.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/WorkspaceManager/View/Resource/Styles.xaml

    r2280 r2582  
    219219        <Setter Property="KeyboardNavigation.TabNavigation" Value="None"/>
    220220        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
     221        <Setter Property="Foreground" Value="#999"></Setter>
    221222        <Setter Property="AllowDrop" Value="true"/>
    222223        <Setter Property="Template">
     
    225226                   
    226227                    <DockPanel LastChildFill="True">
    227                         <Rectangle DockPanel.Dock="Left" Fill="#555" Width="1" Height="auto"></Rectangle>
    228                         <Rectangle DockPanel.Dock="Top" Fill="#555" Height="1" Width="auto"></Rectangle>
     228                        <Rectangle DockPanel.Dock="Left" x:Name="Border" Visibility="Hidden" Fill="#555" Width="2" Height="auto"></Rectangle>
     229                        <Rectangle DockPanel.Dock="Top" x:Name="Border2" Visibility="Hidden" Fill="#555" Height="2" Width="auto"></Rectangle>
    229230                        <ScrollViewer Margin="0" x:Name="PART_ContentHost"/>
    230231                    </DockPanel>
    231                    
     232                    <ControlTemplate.Triggers>
     233                        <Trigger Property="IsMouseOver" Value="True">
     234                            <Setter Property="Visibility" Value="Visible" TargetName="Border"></Setter>
     235                            <Setter Property="Visibility" Value="Visible" TargetName="Border2"></Setter>
     236                        </Trigger>
     237
     238                        <Trigger Property="CaretBrush" Value="Gray">
     239                            <Setter Property="Visibility" Value="Visible" TargetName="Border"></Setter>
     240                            <Setter Property="Visibility" Value="Visible" TargetName="Border2"></Setter>
     241                        </Trigger>
     242                    </ControlTemplate.Triggers>
    232243                </ControlTemplate>
    233244            </Setter.Value>
Note: See TracChangeset for help on using the changeset viewer.