Beispiel #1
0
 private void UnhookTitleEvent(wucDX_Base control)
 {
     if (control != null)
     {
         control.TitleChanged -= SetTitle;
     }
 }
Beispiel #2
0
        private void HookTitleEvent(wucDX_Base control)
        {
            SetTitle(control, EventArgs.Empty);

            if (control != null)
            {
                control.TitleChanged += SetTitle;
            }
        }
Beispiel #3
0
        private void ShowUserControl(wucDX_Base control)
        {
            //UnhookTitleEvent(_currentControl);
            dpUserControlContainer.Children.Clear();

            if (control != null)
            {
                dpUserControlContainer.Children.Add(control);
                _currentControl = control;
            }

            //HookTitleEvent(_currentControl);
        }