protected override void OnApplyTemplate() { base.OnApplyTemplate(); _headerBackground = this.GetTemplateChild(HeaderBackgroundName) as Windows.UI.Xaml.Controls.ScrollViewer; _mainListview = this.GetTemplateChild(ScrollViewerName) as Windows.UI.Xaml.Controls.ListView; _commandBar = this.GetTemplateChild(CommandBarName) as Windows.UI.Xaml.Controls.CommandBar; }
protected override void OnToggle() { CommandBar.OnCommandExecutionStatic(this); base.OnToggle(); }
protected override void OnVisibilityChanged(Visibility oldValue, Visibility newValue) { base.OnVisibilityChanged(oldValue, newValue); CommandBar.OnCommandBarElementVisibilityChanged(this); }
public void Init(CommandBar parent, bool notifyCollectionChanging) { m_parent = parent; m_notifyCollectionChanging = notifyCollectionChanging; }