Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/Charts/Shapes/RangeHighlightStyle.xaml @ 12747

Last change on this file since 12747 was 12503, checked in by aballeit, 10 years ago

#2283 added GUI and charts; fixed MCTS

File size: 2.3 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:l="clr-namespace:Microsoft.Research.DynamicDataDisplay.Charts">
4
5  <Style TargetType="{x:Type Shape}" x:Key="linesPathStyle">
6    <Setter Property="Fill" Value="{x:Null}"/>
7    <Setter Property="Stroke" Value="{Binding l:RangeHighlight.Stroke}"/>
8    <Setter Property="StrokeDashArray" Value="{Binding l:RangeHighlight.StrokeDashArray}"/>
9    <Setter Property="StrokeDashCap" Value="{Binding l:RangeHighlight.StrokeDashCap}"/>
10    <Setter Property="StrokeDashOffset" Value="{Binding l:RangeHighlight.StrokeDashOffset}"/>
11    <Setter Property="StrokeEndLineCap" Value="{Binding l:RangeHighlight.StrokeEndLineCap}"/>
12    <Setter Property="StrokeLineJoin" Value="{Binding l:RangeHighlight.StrokeLineJoin}"/>
13    <Setter Property="StrokeMiterLimit" Value="{Binding l:RangeHighlight.StrokeMiterLimit}"/>
14    <Setter Property="StrokeStartLineCap" Value="{Binding l:RangeHighlight.StrokeStartLineCap}"/>
15    <Setter Property="StrokeThickness" Value="{Binding l:RangeHighlight.StrokeThickness}"/>
16  </Style>
17
18  <Style TargetType="{x:Type l:RangeHighlight}">
19    <Setter Property="Stroke" Value="DarkBlue"/>
20    <Setter Property="StrokeThickness" Value="1"/>
21    <Setter Property="Opacity" Value="0.3"/>
22    <Setter Property="Fill" Value="Blue"/>
23    <Setter Property="Template">
24      <Setter.Value>
25        <ControlTemplate TargetType="{x:Type l:RangeHighlight}">
26          <Grid>
27            <Path Name="PART_RectPath"
28                  Fill="{TemplateBinding Fill}"/>
29            <Path Name="PART_LinesPath"
30                  Fill="{x:Null}"
31                  Stroke="{TemplateBinding Stroke}"
32                  StrokeDashArray="{TemplateBinding StrokeDashArray}"
33                  StrokeDashCap="{TemplateBinding StrokeDashCap}"
34                  StrokeDashOffset="{TemplateBinding StrokeDashOffset}"
35                  StrokeEndLineCap="{TemplateBinding StrokeEndLineCap}"
36                  StrokeLineJoin="{TemplateBinding StrokeLineJoin}"
37                  StrokeMiterLimit="{TemplateBinding StrokeMiterLimit}"
38                  StrokeStartLineCap="{TemplateBinding StrokeStartLineCap}"
39                  StrokeThickness="{TemplateBinding StrokeThickness}"
40                  />
41          </Grid>
42        </ControlTemplate>
43      </Setter.Value>
44    </Setter>
45  </Style>
46</ResourceDictionary>
Note: See TracBrowser for help on using the repository browser.