Example #1
0
 public void RemovePanel()
 {
     // use _control
     if (_taskBarIcon != null)
     {
         _taskBarIcon.TearDown();
         _taskBarIcon = null;
     }
 }
Example #2
0
 public void RemovePanel()
 {
     // use _control
     if (_taskBarIcon != null)
     {
         _taskBarIcon.TearDown();
         _taskBarIcon = null;
     }
 }
Example #3
0
        /// <summary>
        /// Place WPF window on Taskbar
        /// </summary>
        /// <param name="control">WPF window to be placed on taskbar</param>
        /// <param name="initialWidth">Initial width</param>
        public void InsertPanel(TaskbarPanel panel)
        {
            if (_taskBarIcon != null)
            {
                RemovePanel();
            }

            _taskBarIcon = new TaskbarHost(panel);

            _taskBarIcon.SetTaskBarControl(panel);
            panel.SetTaskBarHost(_taskBarIcon);

            _taskBarIcon.Setup();
        }
Example #4
0
        /// <summary>
        /// Place WPF window on Taskbar
        /// </summary>
        /// <param name="control">WPF window to be placed on taskbar</param>
        /// <param name="initialWidth">Initial width</param>
        public void InsertPanel(TaskbarPanel panel)
        {
            if (_taskBarIcon != null)
            {
                RemovePanel();
            }

            _taskBarIcon = new TaskbarHost(panel);

            _taskBarIcon.SetTaskBarControl(panel);
            panel.SetTaskBarHost(_taskBarIcon);

            _taskBarIcon.Setup();
        }