コード例 #1
0
        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;
        }
コード例 #2
0
 protected override void OnToggle()
 {
     CommandBar.OnCommandExecutionStatic(this);
     base.OnToggle();
 }
コード例 #3
0
 protected override void OnVisibilityChanged(Visibility oldValue, Visibility newValue)
 {
     base.OnVisibilityChanged(oldValue, newValue);
     CommandBar.OnCommandBarElementVisibilityChanged(this);
 }
コード例 #4
0
 public void Init(CommandBar parent, bool notifyCollectionChanging)
 {
     m_parent = parent;
     m_notifyCollectionChanging = notifyCollectionChanging;
 }