private void UnhookTitleEvent(wucDX_Base control) { if (control != null) { control.TitleChanged -= SetTitle; } }
private void HookTitleEvent(wucDX_Base control) { SetTitle(control, EventArgs.Empty); if (control != null) { control.TitleChanged += SetTitle; } }
private void ShowUserControl(wucDX_Base control) { //UnhookTitleEvent(_currentControl); dpUserControlContainer.Children.Clear(); if (control != null) { dpUserControlContainer.Children.Add(control); _currentControl = control; } //HookTitleEvent(_currentControl); }