[12503] | 1 | <ResourceDictionary
|
---|
| 2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
---|
| 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
---|
| 4 | xmlns:charts="clr-namespace:Microsoft.Research.DynamicDataDisplay.Charts"
|
---|
| 5 | xmlns:shapes="clr-namespace:Microsoft.Research.DynamicDataDisplay.Charts.Shapes"
|
---|
| 6 | xmlns:navigation="clr-namespace:Microsoft.Research.DynamicDataDisplay.Charts.Navigation"
|
---|
| 7 | xmlns:markup="clr-namespace:Microsoft.Research.DynamicDataDisplay.MarkupExtensions">
|
---|
| 8 |
|
---|
| 9 | <ResourceDictionary.MergedDictionaries>
|
---|
| 10 | <ResourceDictionary Source="/DynamicDataDisplay;component/Charts/Legend items/LegendResources.xaml"/>
|
---|
| 11 | </ResourceDictionary.MergedDictionaries>
|
---|
| 12 |
|
---|
| 13 | <!--Draggable Point-->
|
---|
| 14 | <Style TargetType="{x:Type shapes:DraggablePoint}">
|
---|
| 15 | <Style.Resources>
|
---|
| 16 | <Storyboard x:Key="story">
|
---|
| 17 | <DoubleAnimation Storyboard.TargetProperty="Opacity"
|
---|
| 18 | From="1"
|
---|
| 19 | To="0.1" Duration="0:0:0.4" AutoReverse="True"
|
---|
| 20 | RepeatBehavior="Forever"/>
|
---|
| 21 | </Storyboard>
|
---|
| 22 | </Style.Resources>
|
---|
| 23 |
|
---|
| 24 | <Setter Property="Focusable" Value="False"/>
|
---|
| 25 | <Setter Property="Opacity" Value="1"/>
|
---|
| 26 | <Setter Property="Cursor" Value="ScrollAll"/>
|
---|
| 27 | <Setter Property="HorizontalContentAlignment" Value="Center"/>
|
---|
| 28 | <Setter Property="VerticalContentAlignment" Value="Center"/>
|
---|
| 29 |
|
---|
| 30 | <Style.Triggers>
|
---|
| 31 | <MultiTrigger>
|
---|
| 32 | <MultiTrigger.Conditions>
|
---|
| 33 | <Condition Property="IsMouseOver" Value="True"/>
|
---|
| 34 | <Condition Property="IsMouseCaptured" Value="False"/>
|
---|
| 35 | </MultiTrigger.Conditions>
|
---|
| 36 | <MultiTrigger.EnterActions>
|
---|
| 37 | <BeginStoryboard Name="storyboard" Storyboard="{StaticResource story}"/>
|
---|
| 38 | </MultiTrigger.EnterActions>
|
---|
| 39 | <MultiTrigger.ExitActions>
|
---|
| 40 | <RemoveStoryboard BeginStoryboardName="storyboard"/>
|
---|
| 41 | </MultiTrigger.ExitActions>
|
---|
| 42 | </MultiTrigger>
|
---|
| 43 | </Style.Triggers>
|
---|
| 44 | </Style>
|
---|
| 45 |
|
---|
| 46 | <DropShadowEffect Direction="315" Opacity="0.4" ShadowDepth="4" x:Key="liveTooltipDefaultEffect"/>
|
---|
| 47 |
|
---|
| 48 |
|
---|
| 49 | <!--LiveTooltip-->
|
---|
| 50 | <Style TargetType="{x:Type charts:LiveToolTip}">
|
---|
| 51 | <Setter Property="Template">
|
---|
| 52 | <Setter.Value>
|
---|
| 53 | <ControlTemplate TargetType="{x:Type charts:LiveToolTip}">
|
---|
| 54 | <Grid>
|
---|
| 55 | <Rectangle Fill="{TemplateBinding Background}"
|
---|
| 56 | Stroke="{TemplateBinding BorderBrush}"
|
---|
| 57 | StrokeThickness="{TemplateBinding BorderThickness}"
|
---|
| 58 | RadiusX="1" RadiusY="1" Opacity="{TemplateBinding Opacity}"
|
---|
| 59 | Effect="{markup:XbapConditionalExpression liveTooltipDefaultEffect}">
|
---|
| 60 | <!--<Rectangle.Effect>
|
---|
| 61 | <DropShadowEffect Direction="315" Opacity="0.4" ShadowDepth="4"/>
|
---|
| 62 | </Rectangle.Effect>-->
|
---|
| 63 | </Rectangle>
|
---|
| 64 | <ContentPresenter Margin="5" Content="{TemplateBinding Content}"/>
|
---|
| 65 | </Grid>
|
---|
| 66 | </ControlTemplate>
|
---|
| 67 | </Setter.Value>
|
---|
| 68 | </Setter>
|
---|
| 69 | </Style>
|
---|
| 70 |
|
---|
| 71 | </ResourceDictionary>
|
---|