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.
Solved! Go to Solution.
Solved by joeldeehr. Go to Solution.
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?