Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/Charts/Shapes/DraggablePoint.xaml @ 13398

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

#2283 added GUI and charts; fixed MCTS

File size: 2.2 KB
Line 
1<d3:PositionalViewportUIContainer x:Class="Microsoft.Research.DynamicDataDisplay.Charts.Shapes.DraggablePoint"
2    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4  xmlns:d3="clr-namespace:Microsoft.Research.DynamicDataDisplay.Charts"
5  xmlns:d3core="clr-namespace:Microsoft.Research.DynamicDataDisplay"
6  ToolTip="{Binding Position, RelativeSource={RelativeSource Self}}">
7
8    <d3:PositionalViewportUIContainer.Style>
9        <Style TargetType="{x:Type d3:PositionalViewportUIContainer}">
10            <Style.Resources>
11                <Storyboard x:Key="story">
12                    <DoubleAnimation Storyboard.TargetProperty="Opacity"
13                   From="1"
14                   To="0.1" Duration="0:0:0.4" AutoReverse="True"
15                   RepeatBehavior="Forever"/>
16                </Storyboard>
17            </Style.Resources>
18
19            <Setter Property="Focusable" Value="False"/>
20            <Setter Property="Opacity" Value="1"/>
21            <Setter Property="Cursor" Value="ScrollAll"/>
22            <Setter Property="HorizontalContentAlignment" Value="Center"/>
23            <Setter Property="VerticalContentAlignment" Value="Center"/>
24
25            <Style.Triggers>
26                <MultiTrigger>
27                    <MultiTrigger.Conditions>
28                        <Condition Property="IsMouseOver" Value="True"/>
29                        <Condition Property="IsMouseCaptured" Value="False"/>
30                    </MultiTrigger.Conditions>
31                    <MultiTrigger.EnterActions>
32                        <BeginStoryboard Name="storyboard" Storyboard="{StaticResource story}"/>
33                    </MultiTrigger.EnterActions>
34                    <MultiTrigger.ExitActions>
35                        <RemoveStoryboard BeginStoryboardName="storyboard"/>
36                    </MultiTrigger.ExitActions>
37                </MultiTrigger>
38            </Style.Triggers>
39        </Style>
40    </d3:PositionalViewportUIContainer.Style>
41
42    <Grid Width="12" Height="12">
43        <Ellipse Width="3" Height="3" Fill="Black"/>
44        <Ellipse Width="12" Height="12" Fill="Transparent" Stroke="Black"/>
45    </Grid>
46</d3:PositionalViewportUIContainer>
Note: See TracBrowser for help on using the repository browser.