Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 66667

Re: RegisterDockablePane from Eventhandler

$
0
0

Dear Ryuji,

 

Sorry for the late reply, i had  a small vacation.

Many Thanks for your reply, it makes the code a lot clearer and easies to understand, unfortunately i still get an error i cant solve.

 public partial class testform : Page, Autodesk.Revit.UI.IDockablePaneProvider
    {
        public testform()
        {
            InitializeComponent();
        }

        public void SetupDockablePane(Autodesk.Revit.UI.DockablePaneProviderData data)
        {
            data.FrameworkElement = this as FrameworkElement;

            data.InitialState = new Autodesk.Revit.UI.DockablePaneState();
            data.InitialState.DockPosition = Autodesk.Revit.UI.DockPosition.Tabbed;
            data.InitialState.TabBehind = Autodesk.Revit.UI.DockablePanes.BuiltInDockablePanes.ProjectBrowser;
        }
    }

error.jpg

 

Apparently the WPFTEST.testform cannot be converted to a Frameworkelement.

Do you have any suggestions?

 

Best Regards,

Martin B


Viewing all articles
Browse latest Browse all 66667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>