I'm using the XamlTimeline and putting a group of DateTimeSeries objects on it. Each has a series of DateTimeEvent in turn associated with them.
I've associated a custom Fill color with each of my series. Some of the data points that are on the series have my styling, some do not. I've seen this even in the default styling.
Playing with properties, the ones that aren't getting populated are being populated by the HollowFill color. I can't find any good documentation on this. When is it used? More to the point: How can I STOP it being used?
Thanks,
Mike
The HollowFill is used when there is no space to show the event title for specific entry. But if you don’t want to use it, you can change the EventPointStyle. Try using:
<Grid x:Name="LayoutRoot">
<Grid.Resources>
<Style x:Name="EventPointStyle" TargetType="igTimeline:EventPoint">
<Setter Property="Width" Value="10" />
<Setter Property="Stroke" Value="Black"/>
<Setter Property="Fill" Value="Green"/>
<Setter Property="HollowFill" Value="Green"/>
</Style>
</Grid.Resources>
<igTimeline:XamWebTimeline EventPointStyle="{StaticResource EventPointStyle}">
...
So I tried this and it does work. Where this solution falls down is that I have (up to) 25 date time series on the timeline and I'd rather not manage 25 timelines.
I have gotten it setup to assign the fill to each of these series appropriately. I had intended to cross bind HollowFill to Fill, however, HollowFill is not a dependency property, and hence that's not an option.
I could support the 25 different styles if I REALLY need to, but I'd rather not. Is there another way?
HollowFill is a dependency property. It is a little bit tricky to create a setter value binding in SL.
One way of doing this is explained here:
http://blogs.msdn.com/delay/archive/2009/05/07/one-more-platform-difference-more-or-less-tamed-settervaluebindinghelper-makes-silverlight-setters-better.aspx
I attached a sample app that uses this.
You can set:
<ig:EventTitleLayoutSettings HorizontalOffset="0" VerticalOffset="0" />
So you will use the whole available space. Is this what you are asking for? If not, can you send a screenshot with your issue?
Thanks, I did find that and it was considerably simpler than the prior situation.
What I REALLY want is to have staggered event titles. I've attempted to use the EventTitleLayoutSettings.
When Disabled, it's ovelapping my titles, but they all show.
When Enabled, it's removing titles that would have any overlap, despite the abundance of available vertical space.available.
What I _want_ is to have multiple titles to show and each to have a variable length "leash" to the timeline proper to make sure that they don't overlap. I've seen this in a couple of the samples, and it sometimes works in mine. Having added anotehr inch to the vertical height of the timeline, I now get a second row of dates.
It appears as though there's a defined minimum "leash' length before it'll put an event title. Is there someway to effect what that is? If I had a smaller line segment before the first title, I could fit a 3rd row of titles in.
Hi,
In the new versions we added HollowFill property to the Series and you can set it directly:
<igTimeline:NumericTimeSeries Fill="Green" HollowFill="{Binding Path=Fill, RelativeSource={RelativeSource Self}}" />
Can you provide a little more info about - “the event title is shown with a line of staggered distance” ?. I’m not sure I understand it correctly.
So, completely differnt project and I'm at the same spot ... mostly.
In some of the samples, the title of the events are hidden (and you go to the HollowFill) when there's not enough room, in others, the event title is shown with a line of staggered distance to it and I can't figure out what's causing that behavior (which I want).
How do you get it to behave in that fashion?