Xamarin 自定义控件,如何添加属性以显示在 Xcode 面板中?
Xamarin custom controls, how do I add properties to display in the Xcode panel?
我想实现自定义控件,但是官方案例太少,无法了解更多。我现在想知道的是,我想给自己的控件添加一个属性,比如Title,这个属性必须在Xcode控件属性面板中随意填写
我目前的学习文档:https://developer.xamarin.com/guides/mac/user-interface/custom-controls/
正如我在您问 here 时所指出的那样:
So if you are referring to:
(since it contains UIImage), that is discussing Xamarin Studio's built
in iOS designer. Xamarin.Mac does not have such a feature.
The Xcode way of doing this is via IBInspectable / IBDesignable
http://nshipster.com/ibinspectable-ibdesignable/
however, Xcode / Xamarin.Mac does not have support for this.
我想实现自定义控件,但是官方案例太少,无法了解更多。我现在想知道的是,我想给自己的控件添加一个属性,比如Title,这个属性必须在Xcode控件属性面板中随意填写
我目前的学习文档:https://developer.xamarin.com/guides/mac/user-interface/custom-controls/
正如我在您问 here 时所指出的那样:
So if you are referring to:
(since it contains UIImage), that is discussing Xamarin Studio's built in iOS designer. Xamarin.Mac does not have such a feature.
The Xcode way of doing this is via IBInspectable / IBDesignable
http://nshipster.com/ibinspectable-ibdesignable/
however, Xcode / Xamarin.Mac does not have support for this.