Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/SharpVectorRuntime/Themes/Generic.xaml @ 12803

Last change on this file since 12803 was 12762, checked in by aballeit, 9 years ago

#2283 GUI updates, Tree-chart, MCTS Version 2 (prune leaves)

File size: 2.0 KB
Line 
1<ResourceDictionary
2    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4    xmlns:local="clr-namespace:SharpVectors.Runtime"
5    >
6   
7    <!--
8    Default style and template for the ZoomPanControl.
9    -->
10    <Style
11        TargetType="{x:Type local:ZoomPanControl}"
12        >
13       
14        <Setter
15            Property="Template"
16            >
17            <Setter.Value>
18               
19                <ControlTemplate
20                    TargetType="{x:Type local:ZoomPanControl}"
21                    >
22                   
23                    <Border
24                        Background="{TemplateBinding Background}"
25                        BorderBrush="{TemplateBinding BorderBrush}"
26                        BorderThickness="{TemplateBinding BorderThickness}"
27                        >
28                       
29                        <!--
30                        The ContentPresenter is used to scale and offset the content of ZoomPanControl.
31                   
32                        A transforms computed from 'ContentScale', 'ContentOffsetX' and 'ContentOffsetY' are assigned
33                        to the 'RenderTransform' property in OnApplyTemplate in ZoomPanControl.cs.
34                       
35                        The alignment is set to top-left.  This allows the content offset to be used to place
36                        the content in the center of the viewport when the viewport is bigger than the content.
37                        -->
38                        <ContentPresenter
39              x:Name="PART_Content"
40                            HorizontalAlignment="Left"
41                            VerticalAlignment="Top"
42                            />
43                           
44                    </Border>
45                   
46                </ControlTemplate>
47               
48            </Setter.Value>
49        </Setter>
50       
51    </Style>
52
53</ResourceDictionary>
Note: See TracBrowser for help on using the repository browser.