aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Visuals/Components/PieAxisTicks.xaml
blob: 535524d321ba93c7fbe428e29621fb485ae87878 (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
<UserControl x:ClassModifier="internal" x:Class="Tango.Visuals.Components.PieAxisTicks"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" Background="White">
    <Grid>
        <Grid RenderTransformOrigin="0.5,1">
            <Grid.RenderTransform>
                <RotateTransform Angle="90"></RotateTransform>
            </Grid.RenderTransform>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>

            <Rectangle Width="1" VerticalAlignment="Stretch" Grid.RowSpan="5" Grid.Row="1" HorizontalAlignment="Right" Stroke="Black"></Rectangle>

            <TextBlock RenderTransformOrigin="0.5,0.5" Grid.Row="0" VerticalAlignment="Top" HorizontalAlignment="Center" FontSize="22" Grid.ColumnSpan="2" Text="uCO">
                <TextBlock.RenderTransform>
                    <RotateTransform Angle="-90"></RotateTransform>
                </TextBlock.RenderTransform>
            </TextBlock>

            <Rectangle Grid.Row="0" Width="50" Height="2" VerticalAlignment="Bottom" Stroke="Black" Grid.ColumnSpan="2"></Rectangle>
            <Rectangle Grid.Row="1" Width="50" Height="2" VerticalAlignment="Bottom" Stroke="Black" Grid.ColumnSpan="2"></Rectangle>
            <Rectangle Grid.Row="2" Width="50" Height="2" VerticalAlignment="Bottom" Stroke="Black" Grid.ColumnSpan="2"></Rectangle>
            <Rectangle Grid.Row="3" Width="50" Height="2" VerticalAlignment="Bottom" Stroke="Black" Grid.ColumnSpan="2"></Rectangle>
            <Rectangle Grid.Row="4" Width="50" Height="2" VerticalAlignment="Bottom" Stroke="Black" Grid.ColumnSpan="2"></Rectangle>
        </Grid>
    </Grid>
</UserControl>
ot; xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:local="clr-namespace:Tango.MachineStudio.Technician.Resources"> <FontFamily x:Key="FontName">Segoe UI</FontFamily> <FontFamily x:Key="NotesFont">Lucida Console</FontFamily> <sys:Double x:Key="ExtraExtraLargeFontSize">28</sys:Double> <sys:Double x:Key="ExtraLargeFontSize">26</sys:Double> <sys:Double x:Key="LargeFontSize">20</sys:Double> <sys:Double x:Key="MediumFontSize">16</sys:Double> <sys:Double x:Key="SmallFontSize">14</sys:Double> <sys:Double x:Key="MiniFontSize">12</sys:Double> <sys:Double x:Key="TinyFontSize">9</sys:Double> <!-- moved to COMMON --> <!-- Colors--> <!--<Color x:Key="borderColor">Silver</Color> <Color x:Key="graphGridLinesColor">#FFE9E9E9</Color> <Color x:Key="graphsMarkerColor">Gray</Color> <Color x:Key="materialColor">#03A9F4</Color> --><!--Brushes--><!-- <SolidColorBrush x:Key="borderBrush" Color="{StaticResource borderColor}"></SolidColorBrush> <SolidColorBrush x:Key="graphGridLinesBrush" Color="{StaticResource graphGridLinesColor}"></SolidColorBrush> <SolidColorBrush x:Key="BlackBrush" Color="#545454"></SolidColorBrush> <SolidColorBrush x:Key="graphGridLinesLightBrush" Color="{StaticResource graphGridLinesColor}"></SolidColorBrush> <SolidColorBrush x:Key="graphGridLinesDarkBrush" Color="#FF2E2E2E"></SolidColorBrush>--> <!--<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" x:Key="graphBackgroundLight"> <GradientStop Color="White"/> <GradientStop Color="#FFE9E9E9" Offset="1"/> </LinearGradientBrush> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" x:Key="graphBackgroundDark"> <GradientStop Color="Black"/> <GradientStop Color="#FF333333" Offset="1"/> </LinearGradientBrush> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" x:Key="graphBackground"> <GradientStop Color="White"/> <GradientStop Color="#FFE9E9E9" Offset="1"/> </LinearGradientBrush>--> <!--<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" x:Key="graphLabelBackground" Opacity="0.7"> <GradientStop Color="White"/> <GradientStop Color="#FFD9D9D9" Offset="1"/> </LinearGradientBrush> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" x:Key="graphLegendBackground" Opacity="0.7"> <GradientStop Color="#FFE9E9E9"/> <GradientStop Color="#FFBDBDBD" Offset="1"/> </LinearGradientBrush> <SolidColorBrush Color="{DynamicResource WhiteBrush100}" x:Key="topBarBackgroundBrush"></SolidColorBrush>--> <!--Navigation Link Button--> <Style x:Key="LinkButton" TargetType="Button"> <Setter Property="Stylus.IsPressAndHoldEnabled" Value="False"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <TextBlock FontSize="{TemplateBinding FontSize}" FontFamily="{TemplateBinding FontFamily}"> <ContentPresenter /></TextBlock> </ControlTemplate> </Setter.Value> </Setter> <Setter Property="Foreground" Value="{StaticResource BlackForegroundBrush}" /> <Style.Triggers> <Trigger Property="IsEnabled" Value="False"> <Setter Property="Opacity" Value="0.5"></Setter> </Trigger> <Trigger Property="IsMouseOver" Value="true"> <Setter Property="Foreground" Value="{StaticResource AccentColorBrush}" /> </Trigger> <EventTrigger RoutedEvent="TouchUp"> <BeginStoryboard> <Storyboard> <ColorAnimation Storyboard.TargetProperty="Foreground.Color" Duration="0" To="{StaticResource BlackColor}"></ColorAnimation> </Storyboard> </BeginStoryboard> </EventTrigger> </Style.Triggers> </Style> <!--Navigation Link Button--> <!--Graph Label--> <Style x:Key="graphLabel" TargetType="Label"> <Style.Setters> <Setter Property="IsHitTestVisible" Value="False"></Setter> <Setter Property="Margin" Value="-1 -1 0 0"></Setter> <Setter Property="HorizontalAlignment" Value="Left"></Setter> <Setter Property="VerticalAlignment" Value="Top"></Setter> <Setter Property="Padding" Value="0"></Setter> <Setter Property="ContentTemplate"> <Setter.Value> <DataTemplate> <Border Width="Auto" Padding="0 0 20 0" Height="25" BorderBrush="{StaticResource AccentColorBrush}" BorderThickness="1" CornerRadius="0 0 30 0" Background="{StaticResource graphLabelBackground}" > <TextBlock Margin="5 0 0 0" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="{StaticResource TinyFontSize}" Text="{Binding}"></TextBlock> </Border> </DataTemplate> </Setter.Value> </Setter> </Style.Setters> </Style> <!--Graph Label--> <!--Graph Ticks Template--> <DataTemplate x:Key="graphTicksTemplate"> <Ellipse Width="3" Height="3" Margin="0 0 0 0" Fill="{StaticResource AccentColorBrush}"></Ellipse> </DataTemplate> <!--Graph Ticks Template--> <DataTemplate x:Key="graphTooltipTemplate"> <Border CornerRadius="5" BorderThickness="1" BorderBrush="White" Padding="8" MinWidth="50" Margin="20 0 20 0"> <Border.Background> <SolidColorBrush Color="Black" Opacity="0.5"></SolidColorBrush> </Border.Background> <TextBlock Foreground="White" FontSize="10" HorizontalAlignment="Center" TextAlignment="Center" Text="{Binding StringFormat='0.000'}"></TextBlock> </Border> </DataTemplate> </ResourceDictionary>