コード例 #1
0
        protected override void OnExpanded()
        {
            base.OnExpanded();

            DelcamDesktop objDesktop = (DelcamDesktop)Parent;

            if (objDesktop != null)
            {
                objDesktop.SelectedItem = this;
            }
        }
コード例 #2
0
        protected override void OnHeaderChanged(object oldHeader, object newHeader)
        {
            base.OnHeaderChanged(oldHeader, newHeader);

            if (IsSelected)
            {
                DelcamDesktop objDesktop = (DelcamDesktop)Parent;

                if (objDesktop != null)
                {
                    objDesktop.SelectedHeader = Header;
                }
            }
        }
コード例 #3
0
        protected override void OnContentChanged(object oldContent, object newContent)
        {
            base.OnContentChanged(oldContent, newContent);

            if (IsSelected)
            {
                DelcamDesktop objDesktop = (DelcamDesktop)Parent;

                if (objDesktop != null)
                {
                    objDesktop.SelectedContent = Content;
                }
            }
        }
 public DelcamDesktopAutomationPeer(DelcamDesktop owner) : base(owner)
 {
 }
コード例 #5
0
        private static void SelectedContent_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            DelcamDesktop objDesktop = (DelcamDesktop)d;

            objDesktop.OnSelectedContentChanged(e.OldValue, e.NewValue);
        }