Example #1
0
        protected override void OnExpanded()
        {
            base.OnExpanded();

            DelcamNavigation objNav = (DelcamNavigation)Parent;

            if (objNav != null)
            {
                objNav.SelectedItem = this;
            }
        }
Example #2
0
        public virtual void OnNavigationContentChanged(object objOldValue, object objNewValue)
        {
            if (IsSelected != IsExpanded)
            {
                IsExpanded = IsSelected;

                if (PropertyChanged != null)
                {
                    PropertyChanged(this, new PropertyChangedEventArgs("IsSelected"));
                }
            }

            if (IsSelected)
            {
                DelcamNavigation objNav = (DelcamNavigation)Parent;

                if (objNav != null)
                {
                    objNav.SelectedContent = NavigationContent;
                }
            }
        }
        private static void SelectedContent_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            DelcamNavigation objNav = (DelcamNavigation)d;

            objNav.SelectedContentChanged(e.OldValue, e.NewValue);
        }