I'm learning xamarin forms and binding. I would like to bind the HorizontalTextAlignment
xaml property to the viewmodel property MessagePosition:
<Label Text="{Binding Message}" HorizontalTextAlignment="{Binding MessagePosition}" />
where MessagePosition has a value of "Start" or "End". Unfortunately, it does not seem to work.
Explicitly setting:
<Label Text="{Binding Message}" HorizontalTextAlignment="Start" />
or
<Label Text="{Binding Message}" HorizontalTextAlignment="End" />
does work.
The Text
binding on the viewmodel property Message works as well.
Sorry if duplicate question...thanks for your time.