I trying with the timeline demo code.I'm want to place multiple y-values at runtime. (top/center/etc)
And how can I set a StaticResource from code behind?I've try series.EventSpanStyle = CType(Resources("EventSpanTopStyle"), Style)
How can I do?
Please check my sample code.
Like screen below.
Hi Min,
Thank you for your post. I have looking into your issue and I believe that the style is applied correctly. If you would like to apply the styles for the event titles, you need to apply the EventTitleTopStyle and EventTitleBottomStyle styles as shown in the application in our Samples Browser.
Let me know, if you need any further assistance on this matter.
I'm want to place multiple y-values at runtime. (top/center/etc)
I tried add two series => Dim series As New DateTimeSeries() series.Title = "Series With Data Binding" series.DataSource = collection series.Fill = CType(Resources("SeriesBrush1"), Brush) series.Position = Position.TopOrLeft series.EventSpanStyle = CType(Resources("EventSpanTopStyle"), Style) series.DataMapping = "Time=Time;Duration=Duration;Title=Title;Details=Details"
xamTimeline.Series.Add(series)
Dim series2 As New DateTimeSeries() series2.Title = "Series2 With Data Binding" series2.DataSource = collection series2.Fill = CType(Resources("SeriesBrush2"), Brush) series2.Position = Position.BottomOrRight
series2.DataMapping = "Time=Time;Duration=Duration;Title=Title;Details=Details" xamTimeline.Series.Add(series2)
but series value is duplicated.How can I do?
Hi,
Thank you for your reply. I am glad that you have managed to resolve your issue.
It was my mistake.! ;(
thanks!
Thank you for your reply. The duplication occurs because you are using the same data source for the both series. Could you please try to use different data collection for the series and tell me the result?
Looking forward to hearing from you.