private void ShowLeftContent(PathContentTranstitionType animType) { if (_StackLeft != null && _PathItemCollection.Count > 0) { _LinkList.SelectedIndex = _PathItemCollection.Count - 1; _StackLeft.ChangeContent(_PathItemCollection.Last <PathItem>().PathControl, animType); } }
private void ShowLeftContent(PathContentTranstitionType animType) { if (_StackLeft != null && _PathItemCollection.Count > 0) { _LinkList.SelectedIndex = _PathItemCollection.Count - 1; _StackLeft.ChangeContent(_PathItemCollection.Last <PathItem>().PathControl, animType); _Grid.ColumnDefinitions[0].Width = new GridLength(_PathItemCollection.Last <PathItem>().Width); } }
public void ChangeContent(object content, PathContentTranstitionType tranType, Action callBack = null) { _ComplateCallBack = callBack; switch (tranType) { case PathContentTranstitionType.LEFT_IN: this.Content = content; if (StoryboardLeftIn != null) { StoryboardLeftIn.Begin(this.ContentPresentationSite); } break; case PathContentTranstitionType.LEFT_OUT: nextContext = content; if (StoryboardLeftOut != null) { StoryboardLeftOut.Begin(this.ContentPresentationSite); } break; case PathContentTranstitionType.RIGHT_IN: this.Content = content; if (StoryboardRightIn != null) { StoryboardRightIn.Begin(this.ContentPresentationSite); } break; case PathContentTranstitionType.RIGHT_OUT: nextContext = content; if (StoryboardRightOut != null) { StoryboardRightOut.Begin(this.ContentPresentationSite); } break; default: this.Content = content; break; } }
private void ShowLeftContent(PathContentTranstitionType animType) { if (_StackLeft != null && _PathItemCollection.Count > 0) { _LinkList.SelectedIndex = _PathItemCollection.Count - 1; _StackLeft.ChangeContent(_PathItemCollection.Last<PathItem>().PathControl, animType); } }
public void ChangeContent(object content, PathContentTranstitionType tranType, Action callBack = null) { _ComplateCallBack = callBack; switch (tranType) { case PathContentTranstitionType.LEFT_IN: this.Content = content; if (StoryboardLeftIn != null) StoryboardLeftIn.Begin(this.ContentPresentationSite); break; case PathContentTranstitionType.LEFT_OUT: nextContext = content; if (StoryboardLeftOut != null) StoryboardLeftOut.Begin(this.ContentPresentationSite); break; case PathContentTranstitionType.RIGHT_IN: this.Content = content; if (StoryboardRightIn != null) StoryboardRightIn.Begin(this.ContentPresentationSite); break; case PathContentTranstitionType.RIGHT_OUT: nextContext = content; if (StoryboardRightOut != null) StoryboardRightOut.Begin(this.ContentPresentationSite); break; default: this.Content = content; break; } }