protected override void OnExpanded() { base.OnExpanded(); DelcamDesktop objDesktop = (DelcamDesktop)Parent; if (objDesktop != null) { objDesktop.SelectedItem = this; } }
protected override void OnHeaderChanged(object oldHeader, object newHeader) { base.OnHeaderChanged(oldHeader, newHeader); if (IsSelected) { DelcamDesktop objDesktop = (DelcamDesktop)Parent; if (objDesktop != null) { objDesktop.SelectedHeader = Header; } } }
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) { }
private static void SelectedContent_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e) { DelcamDesktop objDesktop = (DelcamDesktop)d; objDesktop.OnSelectedContentChanged(e.OldValue, e.NewValue); }