<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DockablePane in Zero Document State in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/dockablepane-in-zero-document-state/m-p/11768427#M13790</link>
    <description>&lt;P&gt;Hello &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4176855"&gt;@ricaun&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tested you approach - sound like a reasonable solution.&lt;/P&gt;&lt;P&gt;So, firstly I have assigned a static trigger to my IExternalApplication, which switches between WPF-Window / DockablePane, depending on two conditions: 1. Is DockablePane already registered 2.Is at least one Document opened.&lt;/P&gt;&lt;P&gt;Then I play with Show() / Hide () methods. Logic-wise this works without any problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For that I am using one Page class (Singleton object), which is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;on one hand registered as DockablePane&lt;/LI&gt;&lt;LI&gt;on the other hand, serves as content for my WPF-Window&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;And this is where the problem appears. &lt;STRONG&gt;Problem is with UI display&lt;/STRONG&gt; - no exceptions are thown during App Runtime. If I have only DockablePane registered (no instance of WPF-Window instance created) everything works. Simirarly, if I create a instance of my WPF-Window (no DockablePane registered) everything works as well. But if I show both at the same time, frame of both are visible, but no content, so no Page class instance (UI-wise).... Do you have any idea why this can be like this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below my implementation&lt;/P&gt;&lt;P&gt;//ContentPage implemented as Singleton object&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public partial class ContentPage : Page, INotifyPropertyChanged, IDockablePaneProvider
{
   //Singleton implementation
   public static ContentPage Instance
   {
      if (_instance == null)
         _instance = new ContentPage();
      return _instance;
   }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DockablePane as already mentioned is registered OnApplicationInitialized (so far...)&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;uiControlledApp.RegisterDockablePane(dpid, "MyTitle", ContentPage.Instance as IDockablePaneProvider);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//WPF-Window also implemented as Singleton object&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public partial class WPF_Window : Window
{
   public static WPF_Window Instance
   {
      if (_instance == null)
      _instance = new WPF_Window();

      return _instance;
   }

   private WPF_Window()
   {
      InitializeComponent();
      //XAML bounding to ContentPage Singleton instance
      MainContent.Content = ContentPage.Instance;
   }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//XAML content bounding to ContentPage:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;&amp;lt;Window.Content&amp;gt;
   &amp;lt;Frame x:Name="MainContent" NavigationUIVisibility="Hidden"/&amp;gt;
&amp;lt;/Window.Content&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think that it has anything to do with my Singleton objects.. I would rather see the problem in the BlackBox which is the Registering of DockablePane...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would grately appreciate your feedback,&lt;/P&gt;&lt;P&gt;Best, Lukasz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS. Yes, I am trying to built a sort of output window, which would damp everything that is happening in my IExternalApplication&lt;/P&gt;</description>
    <pubDate>Mon, 20 Feb 2023 22:50:28 GMT</pubDate>
    <dc:creator>lwlXUTTT</dc:creator>
    <dc:date>2023-02-20T22:50:28Z</dc:date>
    <item>
      <title>DockablePane in Zero Document State</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/dockablepane-in-zero-document-state/m-p/11764598#M13784</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have my DockablePane registered OnApplicationInitialized&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public class MainApplication : IExternalApplication
{
   public Result OnStartup(UIControlledApplication uiControlledApp)
   {
      ControlledApplication.ApplicationInitialized += OnApplicationInitialized;
   }

   private static void OnApplicationInitialized(object sender, Autodesk.Revit.DB.Events.ApplicationInitializedEventArgs e)
   {
      MyDockablePane.Register(UiControlledApp);
   }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can see that DockablePane is &lt;STRONG&gt;already registred&lt;/STRONG&gt; after Application is initialized, but the Show() method becomes effective(visible) only when any Document is opened. Is there a way to have my custom DockablePane visible/accessible without having any document open?&lt;/P&gt;&lt;P&gt;- simirarly to Ribbon Buttons, which can be accesed in Zero Document State with proper implementation of IExternalCommandAvailability..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any feedback would be much appreciated,&lt;/P&gt;&lt;P&gt;Best, Lukasz&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2023 19:33:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/dockablepane-in-zero-document-state/m-p/11764598#M13784</guid>
      <dc:creator>lwlXUTTT</dc:creator>
      <dc:date>2023-02-18T19:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: DockablePane in Zero Document State</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/dockablepane-in-zero-document-state/m-p/11764639#M13785</link>
      <description>I believe the DockablePane is designed to only appear when a document is opened, like the Proprietes or Project Browser.&lt;BR /&gt;&lt;BR /&gt;I used a mix of View and DockablePane to make work with document and without document.</description>
      <pubDate>Sat, 18 Feb 2023 20:14:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/dockablepane-in-zero-document-state/m-p/11764639#M13785</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2023-02-18T20:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: DockablePane in Zero Document State</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/dockablepane-in-zero-document-state/m-p/11765472#M13786</link>
      <description>&lt;P&gt;Hello &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4176855"&gt;@ricaun&lt;/a&gt;.,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I used a &lt;STRONG&gt;mix of View and DockablePane&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I don't quite understand what you mean by this. May I ask you to elaborate a bit on that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made a test with WPF Window that sets RevitMainWindowHandle as its Owner. the result is similar to DockablePane, but what is obviously missing is its ability to be 'Docked' inside Revit UI Elements....&lt;/P&gt;&lt;P&gt;Implementation below:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public partial class MyWindow : Window
{
   public void AssignOwner(UIApplication UiApp)
   {
      IntPtr RevitMainWindowHandle = UiApp.MainWindowHandle;

      WindowInteropHelper helper = new WindowInteropHelper(this);
      helper.Owner = RevitMainWindowHandle;
   }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking forward for your answer,&lt;/P&gt;&lt;P&gt;Lukasz&lt;/P&gt;</description>
      <pubDate>Sun, 19 Feb 2023 14:04:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/dockablepane-in-zero-document-state/m-p/11765472#M13786</guid>
      <dc:creator>lwlXUTTT</dc:creator>
      <dc:date>2023-02-19T14:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: DockablePane in Zero Document State</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/dockablepane-in-zero-document-state/m-p/11765577#M13787</link>
      <description>I misspell View, should be a WPF Window &lt;span class="lia-unicode-emoji" title=":upside_down_face:"&gt;🙃&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;In my case, I only open the WPF if the user tries to open the dockable pane when has no document, and is possible to have WPF and dockable pane opened at the same time. This is not a problem in my plugin this behavior, I could make Windows close when a document is opened/created and force the dockable to show.</description>
      <pubDate>Sun, 19 Feb 2023 15:49:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/dockablepane-in-zero-document-state/m-p/11765577#M13787</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2023-02-19T15:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: DockablePane in Zero Document State</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/dockablepane-in-zero-document-state/m-p/11765923#M13788</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4176855"&gt;@ricaun&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for a brief answer. The solution of a global static switch, which changes the referenced object (WPF-Window/DockablePane)&amp;nbsp; may be a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I would have two more questions regarding this approach:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;when do you actually register DockablePane. I used to do this OnApplicationInitialized, but I have found out that, when Revit Document is open directly from file (e.g. doubleclick on detached .rvt file), first the event of DocumentOpend is called and then ApplicationInitialized. This causes an error - trying to show DockablePane which is not registered yet.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.JPG" style="width: 300px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1178533iEDD239A28331E286/image-size/small?v=v2&amp;amp;px=200" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;Secondly - do you have a separate WPF FrameworkElement class for DockablePane and separate for WPF Window? If not, how do you deal with TitleBar with buttons (close / minimize etc)? DockablePane has those built in...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Looking forward,&lt;/P&gt;&lt;P&gt;Best, Lukasz&lt;/P&gt;</description>
      <pubDate>Sun, 19 Feb 2023 21:17:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/dockablepane-in-zero-document-state/m-p/11765923#M13788</guid>
      <dc:creator>lwlXUTTT</dc:creator>
      <dc:date>2023-02-19T21:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: DockablePane in Zero Document State</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/dockablepane-in-zero-document-state/m-p/11766205#M13789</link>
      <description>&lt;P&gt;I register the &lt;STRONG&gt;DockablePane&lt;/STRONG&gt; inside the &lt;STRONG&gt;OnStartup&lt;/STRONG&gt;, I don't use &lt;STRONG&gt;ApplicationInitialized&lt;/STRONG&gt;, but is kinda odd that &lt;STRONG&gt;DocumentOpened&lt;/STRONG&gt; triggers before &lt;STRONG&gt;ApplicationInitialized&lt;/STRONG&gt;. I always assume the &lt;STRONG&gt;ApplicationInitialized&lt;/STRONG&gt; is triggered when all the plugins was loaded and the Revit is ready to open a document... 'The event is raised after Revit was launched as fully initialized, including initialization of external applications.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Revit API guide said:&lt;BR /&gt;&lt;A href="https://help.autodesk.com/view/RVT/2022/ENU/?guid=Revit_API_Revit_API_Developers_Guide_Advanced_Topics_Events_User_Inteface_Events_html" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;ApplicationInitialized&lt;/STRONG&gt; &lt;/A&gt;- notification after the Revit application has been initialized, after all external applications have been started and the application is ready to work with documents&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Maybe the &lt;STRONG&gt;ApplicationInitialized&lt;/STRONG&gt; triggers when the first &lt;STRONG&gt;Idling&lt;/STRONG&gt; is trigged.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my Window I'm using the same Page that is used in the &lt;STRONG&gt;IDockablePaneProvider&lt;/STRONG&gt;, the same &lt;STRONG&gt;FrameworkElement&lt;/STRONG&gt;.&lt;BR /&gt;In my xaml Window I have something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;local:MyDockablePane Margin="5"&amp;gt;&amp;lt;/local:MyDockablePane &amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;The content gonna be the same, the close button usually works out of the box, and minimize/resize I usually disable it with the Icon in the toolbar.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;this.ShowInTaskbar = false;
this.ResizeMode = ResizeMode.NoResize;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, I don't have an example project with &lt;STRONG&gt;Window/DockablePane&lt;/STRONG&gt; to share, maybe I create one just to check this &lt;STRONG&gt;ApplicationInitialized/DocumentOpened&lt;/STRONG&gt; behavior.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;PS: Are you creating a console inside Revit? I have a plugin that does exactly that and other bonuses.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 01:22:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/dockablepane-in-zero-document-state/m-p/11766205#M13789</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2023-02-20T01:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: DockablePane in Zero Document State</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/dockablepane-in-zero-document-state/m-p/11768427#M13790</link>
      <description>&lt;P&gt;Hello &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4176855"&gt;@ricaun&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tested you approach - sound like a reasonable solution.&lt;/P&gt;&lt;P&gt;So, firstly I have assigned a static trigger to my IExternalApplication, which switches between WPF-Window / DockablePane, depending on two conditions: 1. Is DockablePane already registered 2.Is at least one Document opened.&lt;/P&gt;&lt;P&gt;Then I play with Show() / Hide () methods. Logic-wise this works without any problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For that I am using one Page class (Singleton object), which is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;on one hand registered as DockablePane&lt;/LI&gt;&lt;LI&gt;on the other hand, serves as content for my WPF-Window&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;And this is where the problem appears. &lt;STRONG&gt;Problem is with UI display&lt;/STRONG&gt; - no exceptions are thown during App Runtime. If I have only DockablePane registered (no instance of WPF-Window instance created) everything works. Simirarly, if I create a instance of my WPF-Window (no DockablePane registered) everything works as well. But if I show both at the same time, frame of both are visible, but no content, so no Page class instance (UI-wise).... Do you have any idea why this can be like this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below my implementation&lt;/P&gt;&lt;P&gt;//ContentPage implemented as Singleton object&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public partial class ContentPage : Page, INotifyPropertyChanged, IDockablePaneProvider
{
   //Singleton implementation
   public static ContentPage Instance
   {
      if (_instance == null)
         _instance = new ContentPage();
      return _instance;
   }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DockablePane as already mentioned is registered OnApplicationInitialized (so far...)&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;uiControlledApp.RegisterDockablePane(dpid, "MyTitle", ContentPage.Instance as IDockablePaneProvider);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//WPF-Window also implemented as Singleton object&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public partial class WPF_Window : Window
{
   public static WPF_Window Instance
   {
      if (_instance == null)
      _instance = new WPF_Window();

      return _instance;
   }

   private WPF_Window()
   {
      InitializeComponent();
      //XAML bounding to ContentPage Singleton instance
      MainContent.Content = ContentPage.Instance;
   }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//XAML content bounding to ContentPage:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;&amp;lt;Window.Content&amp;gt;
   &amp;lt;Frame x:Name="MainContent" NavigationUIVisibility="Hidden"/&amp;gt;
&amp;lt;/Window.Content&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think that it has anything to do with my Singleton objects.. I would rather see the problem in the BlackBox which is the Registering of DockablePane...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would grately appreciate your feedback,&lt;/P&gt;&lt;P&gt;Best, Lukasz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS. Yes, I am trying to built a sort of output window, which would damp everything that is happening in my IExternalApplication&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 22:50:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/dockablepane-in-zero-document-state/m-p/11768427#M13790</guid>
      <dc:creator>lwlXUTTT</dc:creator>
      <dc:date>2023-02-20T22:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: DockablePane in Zero Document State</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/dockablepane-in-zero-document-state/m-p/11790021#M13791</link>
      <description>&lt;P&gt;In my case, I'm not using &lt;EM&gt;Singleton&lt;/EM&gt; on the &lt;STRONG&gt;Page&lt;/STRONG&gt;. But inside the &lt;STRONG&gt;Page&lt;/STRONG&gt; I'm using a &lt;EM&gt;Singleton&lt;/EM&gt; for the &lt;STRONG&gt;DataContext&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Maybe that's the problem, I guess you are not allowed the same &lt;STRONG&gt;FrameworkElement&lt;/STRONG&gt; instance in two places.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to not use the &lt;EM&gt;Singleton&lt;/EM&gt; on the &lt;STRONG&gt;Page&lt;/STRONG&gt; to test.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public partial class MyDockablePage : Page, IDockablePaneProvider
{
    public MyDockablePage()
    {
        this.DataContext = MyDockableViewModel.ViewModel;
        InitializeComponent();
    }
    public void SetupDockablePane(DockablePaneProviderData data)
    {
        data.FrameworkElement = this;
        data.InitialState = new DockablePaneState
        {
            DockPosition = DockPosition.Right,
        };
        data.VisibleByDefault = false;
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Here is how &lt;STRONG&gt;MyDockablePage&lt;/STRONG&gt; code sample. I'm using &lt;EM&gt;Singleton&lt;/EM&gt; &lt;STRONG&gt;ViewModel&lt;/STRONG&gt; so the data that gonna appear in the &lt;STRONG&gt;DockablePane&lt;/STRONG&gt; gonna be the same in the &lt;STRONG&gt;Window&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 11:43:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/dockablepane-in-zero-document-state/m-p/11790021#M13791</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2023-03-01T11:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: DockablePane in Zero Document State</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/dockablepane-in-zero-document-state/m-p/11814787#M13792</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4176855"&gt;@ricaun&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your suggestion - that did the trick, assigning DataContext to Singleton instance Of ViewModel works perfectly!&lt;/P&gt;&lt;P&gt;One more thing woth to point out - when checking the number of opened documents (to determine whether window should be displayed as WPF-Window or DockablePane) both event should be considered:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;DocumentOpened&lt;/LI&gt;&lt;LI&gt;DocumentCreated&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The latter one is raised when document is created but also when existing family instance is edited from Project Document context,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;all the best, Lukasz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2023 15:50:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/dockablepane-in-zero-document-state/m-p/11814787#M13792</guid>
      <dc:creator>lwlXUTTT</dc:creator>
      <dc:date>2023-03-11T15:50:23Z</dc:date>
    </item>
  </channel>
</rss>

