Xamarin-BindingProperty是否存在基类?
我有一个问题: 如果我有按钮和标签-我想用Xamarin-BindingProperty是否存在基类?,xamarin,xamarin.forms,Xamarin,Xamarin.forms,我有一个问题: 如果我有按钮和标签-我想用setterBackgroundColorProperty=Color.Black设置样式。我试着用这种方式给按钮: new Setter { Property = Label.BackgroundColorProperty, Value = Color.Black } 以及它的工作 所以问题-如果存在基类或我可以使用的东西: new Setter { Property = BASECLASS.BackgroundColorProperty, Valu
setter
BackgroundColorProperty=Color.Black
设置样式。我试着用这种方式给按钮:
new Setter { Property = Label.BackgroundColorProperty, Value = Color.Black }
以及它的工作
所以问题-如果存在基类或我可以使用的东西:
new Setter { Property = BASECLASS.BackgroundColorProperty, Value = Color.Black }
每个可视元素的基类都是
VisualElement
如果您使用Resharper,它会告诉您在本例中可以使用基类:)
每个可视元素的基类都是
VisualElement
如果您使用Resharper,它会告诉您在本例中可以使用基类:)