<StackLayout IsVisible="{Binding IsAdminTrue}"> <Label Text="is_professional"></Label> </StackLayout>ViewModel Codepublic void IsProfessional(){ if (CurrentUser.IsAdmin!= true) { IsAdminTrue= false; } else { IsAdminTrue= true; } }
<StackLayout IsVisible="{Binding IsAdminTrue}">
<Label Text="is_professional"></Label> </StackLayout>ViewModel Code
<Label Text="is_professional"></Label> </StackLayout>
public void IsProfessional(){ if (CurrentUser.IsAdmin!= true) { IsAdminTrue= false; } else { IsAdminTrue= true; } }
public void IsProfessional()
{ if (CurrentUser.IsAdmin!= true) { IsAdminTrue= false; }
else { IsAdminTrue= true; } }