Adding properties to dockable pane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I've a routine I created for Revit which opens certain views - this uses Win Forms a modeless dialog.
I've decided to update this to a dockable pane, and so I'm in the process of moving it to WPF (and learning WPF!).
Originally, when using a Form, I passed several variables to it, I did this by creating some properties in the Form class, i.e.
public List<ElementId> getAllSheets_IDs
{
get;
set;
}When the External Command ran I created the form with
var myForm = new Form1();
And I could access the property with myForm.getAllSheets_IDs - this worked well.
Now moving to WPF, I have to register the dockable pane in the App : IExternalApplication class which I understand runs when Revit loads (as the docable form needs to be registered in a zero doc state).
This means that the instance of my pane is created in App : IExternalApplication class and I cannot access it from the class Command : IExternalCommand hence I cannot access any properties of it.
Is there a way I can pass data to the pane?
I hope my explanation above make sense, I'm a bit of a noob at this!
Cheers.