Hello!
I would be very appreciate of someone tells me how can I style the line that goes from axis and connects to eventTitle cloud. Generally I need to manage the color of that line.
Thanks!
Hello,
This line is part of the Event Title - its style is set through EventTitle's LineStyle property.
Here is a link to the style guide for the Event Titles.
Here is a sample line style:
<Style x:Key="EventTitleStyle" TargetType="ig:EventTitle"> <Setter Property="LineStyle"> <Setter.Value> <Style TargetType="Line"> <Setter Property="StrokeThickness" Value="1" /> <Setter Property="Stroke" Value="Black" /> <Setter Property="Canvas.ZIndex" Value="-1" /> </Style> </Setter.Value> </Setter> </Style>
Here is how to apply the line style:
<ig:XamTimeline EventTitleBottomStyle="{StaticResource EventTitleStyle}" EventTitleTopStyle="{StaticResource EventTitleStyle}">
Thanks,
Nikolay
Thanks for reply, it works.
But I have a little but more complicated case.
The color of line is not yet predefined and it gets defined on runtime, and
when I try to set the value from DataContext on the Line object it always returns empty datacontext,
<Setter Property="LineStyle">
<Setter.Value>
<Style TargetType="{x:Type Line}">
<Setter Property="StrokeThickness" Value="1"/>
<Setter Property="Stroke">
<SolidColorBrush Color="{Binding Path=BorderColor, Mode=OneTime}"></SolidColorBrush>
</Setter.Value>
</Setter>
<Setter Property="Panel.ZIndex" Value="-1"/>
<Setter Property="Margin" Value="0,3,0,0"/>
</Style>
So basically the question transfers to the following, how can I use databinding for the color of that line object.