1using System.ComponentModel;
13 [TypeConverter(typeof(ReferenceTypeConverter))]
34 if (View is Controls.ImageButton ImageButton)
35 ImageButton.Clicked += this.Button_Clicked;
36 else if (View is Button Button)
37 Button.Clicked += this.Button_Clicked;
39 base.OnAttachedTo(View);
45 if (View is Controls.ImageButton ImageButton)
46 ImageButton.Clicked -= this.Button_Clicked;
47 else if (View is Button Button)
48 Button.Clicked -= this.Button_Clicked;
50 base.OnDetachingFrom(View);
53 private void Button_Clicked(
object? Sender, EventArgs e)
65 Element Loop = Element.Parent;
67 while (Loop is not
null && Loop is not ScrollView)
70 (Loop as ScrollView)?.ScrollToAsync(Element, ScrollToPosition.MakeVisible,
true);