IFrameworkElementCreator Interface


Interface that the Revit UI will call, if present, to construct the FrameworkElement for the pane.

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 18.0.0.0 (18.2.0.0)
Since: 2018

Syntax

C#
public interface IFrameworkElementCreator
Visual Basic
Public Interface IFrameworkElementCreator
Visual C++
public interface class IFrameworkElementCreator

Examples

Copy C#
// 
// Class implementing the interface used in Revit to 
// on demand create the pane UI.
// 
internal class BrowserCreator : IFrameworkElementCreator
{
   // 
   // Implement the creation call back by returning a
   // new WebBrowser each time the callback is triggered. 
   // 
   public FrameworkElement CreateFrameworkElement()
   {
      return new WebBrowser();
   }
}
Copy VB.NET
'
' Class implementing the interface used in Revit to 
' on demand create the pane UI.
'
Friend Class BrowserCreator
    Implements IFrameworkElementCreator
    ' 
    ' Implement the creation call back by returning a
    ' new WebBrowser each time the callback is triggered. 
    '
    Public Function CreateFrameworkElement() As FrameworkElement Implements IFrameworkElementCreator.CreateFrameworkElement
        Return New WebBrowser()
    End Function

End Class

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →