Floating RadPane (ToolWindow) in windows taskbar?

7 posts, 0 answers
  1. Jon
    Jon avatar
    5 posts
    Member since:
    Jul 2010

    Posted 06 Feb 2012 Link to this post

    Is it possible to show the floating RadPane in the windows taskbar with the other application windows? I was looking through documentation and couldn't find a way to do this.

    I know the floating windows come to the front when the application window is focused, but wondered if that was the desired functionality instead of having them in the taskbar.
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 10 Feb 2012 Link to this post

    Hello Jon,

    Please refer to the attached sample project that demonstrates how to show the ToolWindow in the task bar. The code that allows this is located in the ShownInTaskBarWindowsGeneratedItemsFactory class.

    Hope this helps.

    Greetings,
    Miroslav Nedyalkov
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Jon
    Jon avatar
    5 posts
    Member since:
    Jul 2010

    Posted 10 Feb 2012 Link to this post

    Thank you, that solution works great.
  5. Chris
    Chris avatar
    3 posts
    Member since:
    Nov 2008

    Posted 16 Apr 2012 Link to this post

    When I attempted to close the floating dock window using the red X next to the taskbar icon, I received the following exception:

    System.InvalidOperationException was unhandled by user code
      Message=Cannot set Visibility to Visible or call Show, ShowDialog, Close, or WindowInteropHelper.EnsureHandle while a Window is closing.
      Source=PresentationFramework
      StackTrace:
           at System.Windows.Window.VerifyNotClosing()
           at System.Windows.Window.InternalClose(Boolean shutdown, Boolean ignoreCancel)
           at System.Windows.Window.Close()
           at Telerik.Windows.Controls.InternalWindow.WindowWithNoChromeWindowHost.Close() in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\InternalWindow\WindowWithNoChromeWindowHost.cs:line 59
           at Telerik.Windows.Controls.WindowBase.CloseHostImidiately() in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\WindowBase.cs:line 1224
           at Telerik.Windows.Controls.WindowBase.OnCloseAnimationFinished() in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\WindowBase.cs:line 1066
           at Telerik.Windows.Controls.WindowBase.PlayCloseAnimation() in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\WindowBase.cs:line 1012
           at Telerik.Windows.Controls.WindowBase.TryClose(Boolean shouldCloseHost) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\WindowBase.cs:line 652
           at Telerik.Windows.Controls.WindowBase.TryClose() in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\WindowBase.cs:line 635
           at Telerik.Windows.Controls.WindowBase.Close() in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Navigation\Window\WindowBase.cs:line 566
           at Telerik.Windows.Controls.RadSplitContainer.RefreshVisibility() in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadSplitContainer.cs:line 497
           at Telerik.Windows.Controls.RadPaneGroup.RefreshVisibility() in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadPaneGroup.cs:line 1210
           at Telerik.Windows.Controls.RadPaneGroup.OnItemsChanged(NotifyCollectionChangedEventArgs e) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadPaneGroup.cs:line 841
           at System.Windows.Controls.ItemsControl.OnItemCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
           at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
           at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
           at System.Windows.Controls.ItemCollection.System.Windows.IWeakEventListener.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e)
           at System.Windows.WeakEventManager.DeliverEventToList(Object sender, EventArgs args, ListenerList list)
           at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args)
           at System.Collections.Specialized.CollectionChangedEventManager.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
           at System.Windows.Data.CollectionView.OnCollectionChanged(NotifyCollectionChangedEventArgs args)
           at MS.Internal.Controls.InnerItemCollectionView._RemoveAt(Int32 index, Int32 indexR, Object item)
           at MS.Internal.Controls.InnerItemCollectionView.Remove(Object item)
           at System.Windows.Controls.ItemCollection.Remove(Object removeItem)
           at Telerik.Windows.Controls.RadPaneGroup.CloseSinglePane(RadPane pane) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadPaneGroup.cs:line 1237
           at Telerik.Windows.Controls.RadPaneGroup.ClosePane(RadPane pane) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadPaneGroup.cs:line 620
           at Telerik.Windows.Controls.RadDocking.OnPaneClose(RadPane pane) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadDocking.cs:line 868
           at Telerik.Windows.Controls.RadDocking.OnRadPaneClose(Object sender, StateChangeCommandEventArgs args) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Controls\Docking\Docking\Docking\RadDocking.cs:line 834
      InnerException: 

  6. Georgi
    Admin
    Georgi avatar
    347 posts

    Posted 19 Apr 2012 Link to this post

    Hello Chris,

    You are right. When it is closed from the task bar using the close button the reported exception is thrown. We will investigate the issue.Your Telerik points have been updated for the report. 

    Greetings,
    Georgi
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  7. Chris
    Chris avatar
    3 posts
    Member since:
    Nov 2008

    Posted 20 Apr 2012 Link to this post

    Is there a ticket number that we can use to track the issue?
  8. Georgi
    Admin
    Georgi avatar
    347 posts

    Posted 25 Apr 2012 Link to this post

    Hello Chris,

    Here you can find PITS item for this issue. As we investigated it further we have found out that the problem comes from telerik:AnimationManager.AnimationSelector="{x:Null}". Removing it from the project should do the trick.
    Hope this will help.


    Kind regards,
    Georgi
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top
UI for WPF is Visual Studio 2017 Ready