Is there a more elegant way to change a single element in a View.Frame struct in Xamarin/C# without using one of the following patterns?
var frame = View.Frame;
frame.Y = 123;
View.Frame = frame;
or
View.Frame = new RectangleF(View.Frame.X, 123, View.Frame.Width, View.Frame.Height);
Simply changing the element like this: View.Frame.Y = 123;
doesn't have any effect. Only once the entire Frame struct is reassigned does it take effect.