Exemplo n.º 1
0
        protected override void OnApplyTemplate()
        {
            _pageFrame       = GetTemplateChild("PageFrame") as Frame;
            _navMenuListView = GetTemplateChild("NavMenuList") as NavMenuListView;
            _backButton      = GetTemplateChild("BackButton") as Button;

            if (_navMenuListView != null)
            {
                _navMenuListView.ItemInvoked += OnNavMenuItemInvoked;
                _navMenuListView.ContainerContentChanging += OnContainerContextChanging;
            }

            if (_backButton != null)
            {
                _backButton.Click += OnBackButtonClick;
            }

            if (_pageFrame != null)
            {
                _pageFrame.Navigating += OnNavigatingToPage;
                _pageFrame.Navigated  += OnNavigatedToPage;
            }
        }
Exemplo n.º 2
0
        protected override void OnApplyTemplate()
        {
            _pageFrame = GetTemplateChild("PageFrame") as Frame;
            _navMenuListView = GetTemplateChild("NavMenuList") as NavMenuListView;
            _backButton = GetTemplateChild("BackButton") as Button;

            if (_navMenuListView != null)
            {
                _navMenuListView.ItemInvoked += OnNavMenuItemInvoked;
                _navMenuListView.ContainerContentChanging += OnContainerContextChanging;
            }

            if (_backButton != null)
            {
                _backButton.Click += OnBackButtonClick;
            }

            if (_pageFrame != null)
            {
                _pageFrame.Navigating += OnNavigatingToPage;
                _pageFrame.Navigated += OnNavigatedToPage;
            }
        }