共用方式為


ShellTemplatedViewManager.OnViewDataChanged Method

Definition

public:
 static void OnViewDataChanged(Microsoft::Maui::Controls::DataTemplate ^ currentViewTemplate, Microsoft::Maui::Controls::View ^ % localViewRef, System::Object ^ newViewData, Action<Microsoft::Maui::Controls::Element ^> ^ OnChildRemoved, Action<Microsoft::Maui::Controls::Element ^> ^ OnChildAdded);
public static void OnViewDataChanged (Microsoft.Maui.Controls.DataTemplate currentViewTemplate, ref Microsoft.Maui.Controls.View localViewRef, object newViewData, Action<Microsoft.Maui.Controls.Element> OnChildRemoved, Action<Microsoft.Maui.Controls.Element> OnChildAdded);
static member OnViewDataChanged : Microsoft.Maui.Controls.DataTemplate * View * obj * Action<Microsoft.Maui.Controls.Element> * Action<Microsoft.Maui.Controls.Element> -> unit
Public Shared Sub OnViewDataChanged (currentViewTemplate As DataTemplate, ByRef localViewRef As View, newViewData As Object, OnChildRemoved As Action(Of Element), OnChildAdded As Action(Of Element))

Parameters

currentViewTemplate
DataTemplate
localViewRef
View
newViewData
Object
OnChildRemoved
Action<Element>
OnChildAdded
Action<Element>

Applies to