}
}
+ public bool SetFocusOptionButton
+ {
+ get;
+ set;
+ }
+
/// <summary>
/// A command will be executed if the cancel button in FooterDeleteStatus is clicked
/// </summary>
AppControlUtils.SendAppAddedNotificationToHome("org.tizen.settings");
AppControlUtils.SelfTerminate();
}
+ SetFocusOptionButton = true;
+ OnPropertyChanged("SetFocusOptionButton");
+
});
SortOptionIndexCommand = new Command<int>((sortingOption) =>
x:Class="TVApps.Views.FooterNormalStatus"
PinAppCommand="{Binding ButtonPinAppCommand}"
DeleteAppCommand="{Binding ButtonDeleteAppCommand}"
- SortOptionIndexCommand="{Binding SortOptionIndexCommand}">
+ SortOptionIndexCommand="{Binding SortOptionIndexCommand}"
+ SetFocusOptionButton ="{Binding SetFocusOptionButton}">
</RelativeLayout>
\ No newline at end of file
set { SetValue(SortOptionIndexCommandProperty, value); }
}
+ public static readonly BindableProperty SetFocusOptionButtonProperty = BindableProperty.Create("SetFocusOptionButton", typeof(bool), typeof(FooterNormalStatus), false, BindingMode.TwoWay);
+ public bool SetFocusOptionButton
+ {
+ get { return (bool)GetValue(SetFocusOptionButtonProperty); }
+ set { SetValue(SetFocusOptionButtonProperty, value); }
+ }
+
/// <summary>
/// A command will be executed if the Context Popup is showed or dismissed
/// </summary>
CreateSortButton();
CreateOptionButton();
+
+ PropertyChanged += FooterNormalStatusPropertyChanged;
}
/// <summary>
isPopupShowing = true;
ChangeBackKeyInfoCommand?.Execute(isPopupShowing);
}
+
+
+ private void FooterNormalStatusPropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
+ {
+ if (e.PropertyName.Equals("SetFocusOptionButton"))
+ {
+ if (SetFocusOptionButton)
+ {
+ OptionButton.Focus();
+ SetFocusOptionButton = false;
+ }
+ }
+ }
}
}