ViewService.GetModel(DependencyObject) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the model corresponding to the view, or null
if there is no model that matches the view.
public:
abstract System::Activities::Presentation::Model::ModelItem ^ GetModel(System::Windows::DependencyObject ^ view);
public abstract System.Activities.Presentation.Model.ModelItem GetModel (System.Windows.DependencyObject view);
abstract member GetModel : System.Windows.DependencyObject -> System.Activities.Presentation.Model.ModelItem
Public MustOverride Function GetModel (view As DependencyObject) As ModelItem
Parameters
- view
- DependencyObject
The view object that you want to find the model for.
Returns
The corresponding model, or null
if there is no model for the given view object.
Exceptions
view
is null
.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.