[DesignTimeVisible(true)] public sealed partial class ControlWithPlaceholder : UIControl, IComponent { [Export(nameof(PlaceholderImage)), Browsable(true)] public UIImage PlaceholderImage { get { return _placeholderImageView.Image; } set { _placeholderImageView.Image = value; } } [Export(nameof(PlaceholderText)), Browsable(true)] public string PlaceholderText { get { return _placeholderLabel.Text; } set { _placeholderLabel.Text = value; } } } Все как в статье
Обсуждают сегодня