I would like to specify the width of a Xamarin.Forms.Button with an effect in UWP, something like:
protected override void OnAttached()
{
if (VisualElement is Xamarin.Forms.Button buttonControl)
{
buttonControl.WidthRequest = 40;
buttonControl.BorderWidth = 1;
}
}
VisualElement is an invalid type. What goes in its place? Thank you!