I am trying to set visibility
for ProgressBar
as GONE
.
In XML
<?xml version="1.0" encoding="utf-8"?>
<ProgressBar xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:local="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
local:MvxBind="Visibility Visibility(ProgressVisibility)"
android:background="@drawable/sel_custom_progress" />
In ViewModel
private bool _progressVisibility;
public bool ProgressVisibility
{
get { return _progressVisibility; }
set { _progressVisibility = value; RaisePropertyChanged(() => ProgressVisibility); }
}
I am setting ProgressVisibility = false;
What is happening: The view is still visible and not getting hidden. How to resolve this.