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.
The target date for the next service relase is April 4th.
No. Every series has a different color on a legend, and a different color of the border of eventTitle and now I need to manage the color of the line as well.
When the next release is going to be available?
Is the color different for each time entry?
There is an issue with the Data Context of the Line objects - currently the Data Context is the same as the Timeline's. If all entries have the same color, there might be a workaround.
The issue has been fixed and the fix will be available in next releases.