Blame view

sources/RoboforkApp/Resources/Tooltip.xaml 1.32 KB
729be9a6d   doan   New Project
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
  <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  
      <ResourceDictionary.MergedDictionaries>
          <ResourceDictionary Source="Brushes.xaml" />
      </ResourceDictionary.MergedDictionaries>
  
      <Style x:Key="{x:Type ToolTip}"
             TargetType="ToolTip">
          <Setter Property="OverridesDefaultStyle"
                  Value="true" />
          <Setter Property="SnapsToDevicePixels"
                  Value="true" />
          <Setter Property="Template">
              <Setter.Value>
                  <ControlTemplate TargetType="ToolTip">
                      <Border Name="Border"
                              CornerRadius="2"
                              Background="#FFFFFFDD"
                              BorderBrush="Black"
                              BorderThickness="1"
                              Width="{TemplateBinding Width}"
                              Height="{TemplateBinding Height}">
                          <ContentPresenter Margin="3"
                                            HorizontalAlignment="Left"
                                            VerticalAlignment="Top" />
                      </Border>
                  </ControlTemplate>
              </Setter.Value>
          </Setter>
      </Style>
  
  </ResourceDictionary>