2Bbear's knowledge workshop

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
<UserControl.Resources>
        <Style x:Key="CustomToolTip" TargetType="{x:Type ToolTip}" BasedOn="{StaticResource {x:Type ToolTip}}">
            <Setter Property="FontSize" Value="9"/>
            <Setter Property="FontFamily" Value="Noto Sans Light"/>
            <Setter Property="Foreground" Value="#ffffff"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ToolTip}" >
                        <Grid Height="30">
                            <Viewbox Stretch="Fill"  >
                                <Path Data="M 1.5,0 L 3,3 0,3 Z" Width="3" Height="5" Fill="#FF6D6E71" />
 
                            </Viewbox>
                            <Border Background="#6d6e71" CornerRadius="10" Height="20">
                                <Grid VerticalAlignment="Center">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="8"/>
                                        <ColumnDefinition Width="1*"/>
                                        <ColumnDefinition Width="8"/>
                                    </Grid.ColumnDefinitions>
                                    <ContentPresenter Grid.Column="1" ContentSource="{Binding}"/>
                                </Grid>
                            </Border>
                            
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </UserControl.Resources>
cs