API Reference > ui-framework > ContentView > ViewportContentControl ViewportContentControl Class The base class for Frontstage Viewport content controls. Extends ContentControl Extended by IModelViewportControl Implements ConfigurableUiElement SupportsViewSelectorChange Methods Name Description constructor(info: ConfigurableCreateInfo, options: any): ViewportContentControl Creates an instance of ViewportContentControl. getReactElementForViewSelectorChange(_iModel: IModelConnection, _viewDefinitionId: Id64String, _viewState: ViewState, _name: string): React.ReactNode Get the React.Element for a ViewSelector change. getType(): ConfigurableUiControlType Gets the type of ConfigurableUiControl, which is 'Viewport' in this case onActivated(): void Called when this ContentControl is activated processViewSelectorChange(iModel: IModelConnection, viewDefinitionId: Id64String, viewState: ViewState, name: string): Promise<void> Process a ViewSelector change. setIsReady(): void Returns a promise that resolves when the control is ready for usage. Inherited methods Name Inherited from Description onDeactivated(): void ContentControl Called when this ContentControl is deactivated onFrontstageDeactivated(): void ConfigurableUiControl Called when Frontstage is deactivated. onFrontstageReady(): void ConfigurableUiControl Called when Frontstage is ready. onInitialize(): void ConfigurableUiControl Called to initialize the ConfigurableUiControl. Properties Name Type Description isReady Accessor ReadOnly Promise<void> Returns a promise that resolves when the control is ready for usage. isViewport Accessor ReadOnly boolean Returns true if this control is a Viewport control. navigationAidControl Accessor ReadOnly string Get the NavigationAidControl associated with this ContentControl supportsViewSelectorChange Accessor ReadOnly boolean Returns true if this control supports processing ViewSelector changes. viewport Accessor ScreenViewport | undefined The underlying ScreenViewport Inherited properties Name Type Inherited from Description classId Accessor ReadOnly string ConfigurableBase Gets the class Id of configurable element controlId Accessor ReadOnly string ConfigurableUiControl Returns the ID of this ConfigurableUiControl. name Accessor ReadOnly string ConfigurableBase Get internal name of configurable element. If no name is defined in configurationthen the name will match the UniqueId. reactElement Accessor React.ReactNode ContentControl The React element associated with this control. Defined in ui/framework/src/ui-framework/content/ViewportContentControl.ts Line 23 Last Updated: 13 June, 2024