|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:charting="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit">
<Style x:Key="CandleStick" TargetType="charting:BubbleDataPoint">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate
TargetType="charting:BubbleDataPoint">
<Border>
<Grid>
<Rectangle x:Name="Wick" Width="2">
<Rectangle.Fill>
<SolidColorBrush Color="{Binding Path=CandleColor}" />
</Rectangle.Fill>
</Rectangle>
<Rectangle x:Name="Body" Width="7" StrokeThickness="2" RenderTransformOrigin="{Binding Path=Origin}" >
<Rectangle.RenderTransform>
<ScaleTransform ScaleY="{Binding Path=ScaleY}" />
</Rectangle.RenderTransform>
<Rectangle.Stroke>
<SolidColorBrush Color="{Binding Path=CandleColor}" />
</Rectangle.Stroke>
<Rectangle.Fill>
<SolidColorBrush Color="{Binding Path=FillColor}" />
</Rectangle.Fill>
</Rectangle>
<ToolTipService.ToolTip>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" Orientation="Vertical">
<ContentControl Content="Open " />
<ContentControl Content="High " />
<ContentControl Content="Low " />
<ContentControl Content="Close " />
<ContentControl Content="Volume " />
</StackPanel>
<StackPanel Grid.Column="1" Orientation="Vertical">
<ContentControl Content="{Binding Path=Open}" />
<ContentControl Content="{Binding Path=High}" />
<ContentControl Content="{Binding Path=Low}" />
<ContentControl Content="{Binding Path=Close}" />
<ContentControl Content="{Binding Path=Volume}" />
</StackPanel>
</Grid>
</ToolTipService.ToolTip>
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.