Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/Common/PlotterStyle.xaml @ 13792

Last change on this file since 13792 was 12503, checked in by aballeit, 9 years ago

#2283 added GUI and charts; fixed MCTS

File size: 4.6 KB
Line 
1<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3                    xmlns:local="clr-namespace:Microsoft.Research.DynamicDataDisplay"
4                                        xmlns:common="clr-namespace:Microsoft.Research.DynamicDataDisplay.Common">
5
6    <Style TargetType="{x:Type local:Plotter}" x:Key="defaultPlotterStyle">
7        <Setter Property="Background" Value="White"/>
8        <Setter Property="BorderBrush" Value="Black"/>
9    <Setter Property="ClipToBounds" Value="True"/>
10    </Style>
11
12  <!--Send feedback icon-->
13    <Image x:Key="SendFeedbackIcon" Width="16" Height="16">
14        <Image.Source>
15            <DrawingImage>
16                <DrawingImage.Drawing>
17                    <DrawingGroup>
18                        <DrawingGroup.Children>
19                            <GeometryDrawing Brush="#FFFFD94D" Geometry="F1 M 5.125,10.0208L 26.7083,10.0208L 26.7083,21.6875L 5.125,21.6875L 5.125,10.0208 Z">
20                                <GeometryDrawing.Pen>
21                                    <Pen LineJoin="Round" Brush="#FF000000"/>
22                                </GeometryDrawing.Pen>
23                            </GeometryDrawing>
24                            <GeometryDrawing Brush="#FFFFE278" Geometry="F1 M 5.52083,21.2708L 15.9167,14.2292L 26.2708,21.2708">
25                                <GeometryDrawing.Pen>
26                                    <Pen LineJoin="Round" Brush="#FF000000"/>
27                                </GeometryDrawing.Pen>
28                            </GeometryDrawing>
29                            <GeometryDrawing Brush="#FFFFC800" Geometry="F1 M 5.45833,10.4583L 16,16.4375L 26.3958,10.4583">
30                                <GeometryDrawing.Pen>
31                                    <Pen LineJoin="Round" Brush="#FF000000"/>
32                                </GeometryDrawing.Pen>
33                            </GeometryDrawing>
34                        </DrawingGroup.Children>
35                    </DrawingGroup>
36                </DrawingImage.Drawing>
37            </DrawingImage>
38        </Image.Source>
39    </Image>
40
41    <!--Plotter template-->
42  <ControlTemplate TargetType="{x:Type local:Plotter}" x:Key="defaultPlotterTemplate">
43        <common:NotifyingGrid Name="PART_ContentsGrid" Background="{TemplateBinding Background}" DataContext="{TemplateBinding DataContext}">
44            <Grid.RowDefinitions>
45                <RowDefinition Height="auto"/>
46                <RowDefinition/>
47                <RowDefinition Height="auto"/>
48            </Grid.RowDefinitions>
49
50            <common:NotifyingStackPanel Name="PART_HeaderPanel" Orientation="Vertical" Grid.Row="0"/>
51
52            <common:NotifyingGrid Name="PART_MainGrid" Grid.Row="1">
53                <Grid.RowDefinitions>
54                    <RowDefinition Height="auto"/>
55                    <RowDefinition/>
56                    <RowDefinition Height="auto"/>
57                </Grid.RowDefinitions>
58                <Grid.ColumnDefinitions>
59                    <ColumnDefinition Width="auto"/>
60                    <ColumnDefinition/>
61                    <ColumnDefinition Width="auto"/>
62                </Grid.ColumnDefinitions>
63
64
65        <common:NotifyingGrid Name="PART_CentralGrid" Grid.Column="1" Grid.Row="1" ClipToBounds="True" Background="Transparent">
66          <common:NotifyingCanvas Name="PART_MainCanvas" Grid.Column="1" Grid.Row="1" ClipToBounds="True" Panel.ZIndex="1"/>
67        </common:NotifyingGrid>
68
69        <!-- Border of viewport -->
70                <Rectangle Name="Border" Grid.Column="1" Grid.Row="1" Stroke="{TemplateBinding BorderBrush}"
71                   StrokeThickness="{TemplateBinding BorderThickness}"/>
72
73                <common:NotifyingStackPanel Name="PART_LeftPanel" Grid.Column="0" Grid.Row="1" Orientation="Horizontal" Background="Transparent"/>
74                <common:NotifyingStackPanel Name="PART_RightPanel" Grid.Column="2" Grid.Row="1" Orientation="Horizontal" Background="Transparent"/>
75                <common:NotifyingStackPanel Name="PART_BottomPanel" Grid.Column="1" Grid.Row="2" Orientation="Vertical" Background="Transparent"/>
76                <common:NotifyingStackPanel Name="PART_TopPanel" Grid.Column="1" Grid.Row="0" Orientation="Vertical" Background="Transparent"/>
77            </common:NotifyingGrid>
78
79            <common:NotifyingCanvas Name="PART_ParallelCanvas" Grid.Column="1" Grid.Row="1"/>
80
81            <common:NotifyingStackPanel Name="PART_FooterPanel" Orientation="Vertical" Grid.Row="2"/>
82        </common:NotifyingGrid>
83    </ControlTemplate>
84</ResourceDictionary>
Note: See TracBrowser for help on using the repository browser.