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
20
XamMonthView - ActivityPresenter Styling Error inside TabControl
posted

Hi all,

I'm trying to remove the time from the left side of XamMonthView appointments. The time only displays when the appointment is on a single day.

I've successfully styled the control by customizing the generic.shared infragistics style, however, when placing the XamMonthView inside of a TabControl the XamMonthView's style will throw an error when clicking between tabs.

The error occurs in the:

<ControlTemplate x:Key="ActivityTemplate"  TargetType="igSchedulePrim:ActivityPresenter">

when setting the Data property of the path.

I receive the error: Failed to assign to property 'system.windows.shapes.path.data'.

The path's style is (where Data=... is causing the error:

<Path
     Data="{TemplateBinding ComputedGeometry}"
     Fill="{TemplateBinding ComputedBackground}"
     Stroke ="{TemplateBinding ComputedBorderBrush}"
     StrokeThickness ="{TemplateBinding ComputedBorderStrokeThickness}"
     igPrim:XamlHelper.SnapsToDevicePixels="True"/>

This error ONLY occurs when viewing the XamMonthView inside of a TabControl and clicking around tabs.

Here are steps to repro this:

1. Add a TabControl with 3 tabs

2. Place the XamMonthView in the second tab.

3. When viewing the page click the second tab to view the XamMonthView. (No Problems)

4. Click the 3rd tab

5. Go back to the 2nd tab to view XamMonthView again and the above error occurs.

Any help or insight is greatly appreciated.

Thanks,

Evan