aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/SideChains/RealTimeGraphEx/Resources/Resources.xaml
blob: 87ba506dcc025bf62b27741ff2a10896771e372b (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:local="clr-namespace:RealTimeGraphEx"
                    xmlns:components="clr-namespace:RealTimeGraphEx.Components"
                    xmlns:componentsItems="clr-namespace:RealTimeGraphEx.Components.ComponentsItems"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <Style TargetType="components:MouseValueToolTip">
        <Style.Setters>
            <Setter Property="ContentTemplate">
                <Setter.Value>
                    <DataTemplate>
                        <TextBlock Foreground="White" Background="#80000000" Padding="5 2 5 2" Text="{Binding Path=.,StringFormat='#0.0'}" Margin="20 15 0 0"></TextBlock>
                    </DataTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>

    <Style TargetType="componentsItems:YAxisLabel">
        <Style.Setters>
            <Setter Property="ContentTemplate">
                <Setter.Value>
                    <DataTemplate>
                        <ContentControl HorizontalAlignment="Center" VerticalAlignment="Center" Content="{Binding}"></ContentControl>
                    </DataTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>

    <Style TargetType="componentsItems:YAxisSmallTick">
        <Style.Setters>
            <Setter Property="ContentTemplate">
                <Setter.Value>
                    <DataTemplate>
                        <Rectangle Height="1" Width="3" Margin="0 0 2 0" Fill="{Binding RelativeSource={RelativeSource AncestorType=components:YAxisTicks},Path=Foreground}"></Rectangle>
                    </DataTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>

    <Style TargetType="componentsItems:YAxisBigTick">
        <Style.Setters>
            <Setter Property="ContentTemplate">
                <Setter.Value>
                    <DataTemplate>
                        <Rectangle Height="1" Fill="{Binding RelativeSource={RelativeSource AncestorType=components:YAxisTicks},Path=Foreground}"></Rectangle>
                    </DataTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>

    <Style TargetType="componentsItems:YAxisLegend">
        <Style.Setters>
            <Setter Property="ContentTemplate">
                <Setter.Value>
                    <DataTemplate>
                        <Border BorderBrush="Gray" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="2">
                            <StackPanel Orientation="Vertical">
                                <TextBlock Text="{Binding Name}" FlowDirection="LeftToRight"></TextBlock>
                                <Rectangle HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Height="1" Fill="{Binding Stroke}">
                                </Rectangle>
                            </StackPanel>
                        </Border>
                    </DataTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>


</ResourceDictionary>