我在 xamarin.Form 頁面上有這些值。他們都給了我智能感知。使用它們中的一個或兩個的場景是什么?
<ContentPage x:DataType="vm:AboutViewModel" >
<ContentPage.BindingContext>
<vm:AboutViewModel>
</vm:AboutViewModel>
</ContentPage.BindingContext>
</ContentPage>
uj5u.com熱心網友回復:
BindingContext 在運行時分配指定類的實體。
x:DataContext是一個設計時助手,它告訴 Intellisense 給定 XAML 塊的背景關系型別是什么
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/373470.html
標籤:沙马林
