1

Closed

Issues when the frame or page is custom

description

I have a custom frame in my app witch is not a descendant of system frame.
and i have a custom page in my app witch is not a descendant of system page, so your control gives me an error.

I propose to change the following lines to more generic:

file: DateControl.xaml.cs
line 296
change this: UIElement root = ((Frame)Window.Current.Content).Content as UIElement;
to this: UIElement root = ((ContentControl)Window.Current.Content).Content as UIElement;
Works because: the frame is ContentControl.

file: DateControl.xaml.cs
line 318
change this: AnimationHelper.CompositeTransformTranslateY(((Frame)Windows.UI.Xaml.Window.Current.Content).Content as Page, 0, 100);
to this: AnimationHelper.CompositeTransformTranslateY(((ContentControl)Windows.UI.Xaml.Window.Current.Content).Content as UIElement, 0, 100);
Works because: the frame is ContentControl and AnimationHelper.CompositeTransformTranslateY get parameter as UIElement

Thanks
Closed May 4, 2013 at 8:33 AM by sureshkumart

comments

wrote May 4, 2013 at 8:33 AM

Resolved with changeset 25096: Fixed to handle custom page and frame

wrote May 16, 2013 at 8:51 AM