void Initialize() { if (_button == null) { _button = new EButton(XForms.NativeParent); _button.BackgroundColor = EColor.Transparent; _button.SetPartColor("effect", EColor.Transparent); _button.SetPartColor("effect_pressed", EColor.Transparent); _button.Show(); _button.Pressed += OnPressed; _button.Released += OnReleased; _button.Clicked += OnClicked; Control.PackEnd(_button); } }
void Initialize() { if (_button == null) { _button = new EButton(XForms.NativeParent); _button.SetTransparentStyle(); _button.Opacity = 0; _button.Show(); _button.Pressed += OnPressed; _button.Released += OnReleased; _button.Clicked += OnClicked; _button.Focused += OnButtonFocused; _button.Unfocused += OnButtonFocused; Control.PackEnd(_button); } }