Good day,
I'm looking for a way to convert the following XAML code into C# code, :
<ActivityIndicator x:Name="activityIndicator"
IsRunning="true"
HorizontalOptions="CenterAndExpand"
RelativeLayout.XConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.5}"
RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.5}"
/>
I need to do this, because I when I use the above XAML code, the ActivityIndicator will appear slightly off to the right and down. So I would need to subtract it with AcitivityIndicator.Width / 2.
A solution as to do this in XAML is also appreciated.
Thanks!
Sincerely,
Niels