Can I use Window instead of Page when making my dialog dockable?

Can I use Window instead of Page when making my dialog dockable?

Anonymous
Not applicable
572 Views
4 Replies
Message 1 of 5

Can I use Window instead of Page when making my dialog dockable?

Anonymous
Not applicable

Hi,
I want to create a dockable dialog that will contain UI elements.

 

I have created the dialog using WPF Window class but it seems that Revit only allows Dialog that implements Page and Autodesk.Revit.UI.IDockablePaneProvider.

 

Can I use Window instead of Page and make it work?

I tried using UserControl and it worked fine. But my dialog is developed using Window.

0 Likes
Accepted solutions (1)
573 Views
4 Replies
Replies (4)
Message 2 of 5

jeremytammik
Autodesk
Autodesk
Accepted solution

Nope.

 

Sorry!



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 5

Anonymous
Not applicable

Hey Jeremy, thanks for replying.

Window can't be used - you've confirmed it. But what about UserControl?

I tried to create dockable dialog with UserControl and it worked. It means we have two options: Page and UserControl. Which one will you recommend and why?

0 Likes
Message 4 of 5

jeremytammik
Autodesk
Autodesk

I only know that UserControl can be used. 

 

I previously did not know that Page can be used as well.



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 5 of 5

Anonymous
Not applicable

Okay. Thanks. I'll use UserControl then.

0 Likes