Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

WPF trouble

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
joeldeehr
459 Views, 2 Replies

WPF trouble

Hi all, I am having trouble displaying my WPF user control in Revit. I am able to do it by putting it in a WindowsForm Window by using ".content =" and ".show()", but this has some limitations to what I want the tool to do.

 

I am looking for an answer as to how to display a WPF userControl without sticking it in a WindowsForm Window

 

I have searched, and found some solution that uses this.ShowDialog(). The problem is, that is a method from System.Forms and not from the WPF library.

 

Any help? Thanks.

2 REPLIES 2
Message 2 of 3
Joe.Ye
in reply to: joeldeehr

 

I think the WPF control now only limited to the model windows Form or dialog.

    "The dialog or form or window host this preview control must be modal."

 

Where do  you want to put the preview WPF control? 

 



Joe Ye
Contractor
Developer Technical Services
Autodesk Developer Network
Message 3 of 3
joeldeehr
in reply to: joeldeehr

Hey Joe, thanks for your reply. I think I have it all figured out now.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community