Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
135
EventPointStyle is clipped on the Zoombar preview
posted

I am using the Timeline with a DateTimeSeries and version 11.1

I have hidden the scene so only the preview in the zoombar is visible

I am trying to show my users the scale of the points in the timeline by styling the eventPoint

I've used the following http://blogs.msdn.com/b/delay/archive/2009/11/02/as-the-platform-evolves-so-do-the-workarounds-better-settervaluebindinghelper-makes-silverlight-setters-better-er.aspx to allow binding to my data in the style static resource

I overrode the content template for the ig:EventPoint and replaced it with an ellipse that binds the height and width to a value in my view model. The range of values is from 10 to 40

Everything works and the eventPoints are different sizes but for larger eventPoints the ellipse is clipped. Is there anyway I can avoid this?

My ControlTemplate is as follows

<ControlTemplate TargetType="ig:EventPoint>
<Grid>
<Ellipse Width={TemplateBinding Width} Height={TemplateBinding Height} />
</Grid>
</ControlTemplate>

The width and height are then set in the style that contains the template.

 

Parents Reply Children
No Data