Creates and initializes an instance of the ShowViewSource class with the specified parameters.
Namespace: DevExpress.ExpressApp
Assembly: DevExpress.ExpressApp.v18.2.dll
public ShowViewSource(
Frame sourceFrame,
ActionBase sourceAction
)
Public Sub New(
sourceFrame As Frame,
sourceAction As ActionBase
)
Type | Name | Description |
---|---|---|
Frame | sourceFrame | A Frame from which the ShowViewStrategyBase.ShowView method is called. This parameter's value is used to initialize the ShowViewSource.SourceFrame property. |
ActionBase | sourceAction | If a View has to be created as the result of an Action, this parameter should contain a reference to the Action's instance. This parameter's value is used to initialize the ShowViewSource.SourceAction property. |
Generally, you do not need to instantiate a ShowViewSource object. If you need to display a View in a UI, use the PopupWindowShowAction or the ActionBaseEventArgs.ShowViewParameters parameter in an Action's Execute event handler.