Answer the question
In order to leave comments, you need to log in
Can XAML for Xamarin Forms use calculations when binding a model to a view?
Hello!
Is it possible, and if so how, to use Boolean expressions in a XAML view in Xamarin Forms?
The essence of the task is as follows: There is a button and a process progress bar. When you press the button, the process starts, which lasts for some time. before starting the process, make the button invisible and the progress indicator visible. after the process is completed, the visibility status is changed to the opposite.
I have the following code in the xaml description of the view:
<Button x:Name="SaveSettings" Text="Сохранить и проверить" Command="{Binding SaveSettings}"
IsVisible="{Binding !Busy}" />
<ActivityIndicator IsVisible="{Binding Busy}" IsRunning="{Binding Busy}" />
Answer the question
In order to leave comments, you need to log in
You can use converters
msdn.microsoft.com/en-us/library/system.windows.da...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question