private void SynchronizeProperties()
{
if (this.isVisibleChanged)
{
this.applicationBar.IsVisible = this.IsVisible;
}
else if (GetBindingExpression(IsVisibleProperty) == null)
{
this.IsVisible = this.applicationBar.IsVisible;
}
if (this.isMenuEnabledChanged)
{
this.applicationBar.IsMenuEnabled = this.IsMenuEnabled;
}
else if (GetBindingExpression(IsMenuEnabledProperty) == null)
{
this.IsMenuEnabled = this.applicationBar.IsMenuEnabled;
}
if (this.backgroundColorChanged)
{
this.applicationBar.BackgroundColor = this.BackgroundColor;
}
else if (GetBindingExpression(BackgroundColorProperty) == null)
{
this.BackgroundColor = this.applicationBar.BackgroundColor;
}
if (this.foregroundColorChanged)
{
this.applicationBar.ForegroundColor = this.ForegroundColor;
}
else if (GetBindingExpression(ForegroundColorProperty) == null)
{
this.ForegroundColor = this.applicationBar.ForegroundColor;
}
if (this.modeChanged)
{
this.applicationBar.Mode = this.Mode;
}
else if (GetBindingExpression(ModeProperty) == null)
{
this.Mode = this.applicationBar.Mode;
}
if (this.bindableOpacityChanged)
{
this.applicationBar.Opacity = this.BindableOpacity;
}
else if (GetBindingExpression(BindableOpacityProperty) == null)
{
this.BindableOpacity = this.applicationBar.Opacity;
}
}
#endregion