/// This event is only triggered when the navigation key is pressed and KeyboardFocusManager tries to move the focus automatically.<br>
/// It won't be emitted for focus movement by calling the SetCurrentFocusView directly.<br>
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public event EventHandlerWithReturnType<object, PreFocusChangeEventArgs, View> PreFocusChange
{
add
/// <summary>
/// The FocusGroupChanged will be triggered after the current focused view has been changed.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public event EventHandler<FocusChangedEventArgs> FocusChanged
{
add
/// If the current focus group has a parent layout control, the FocusManager will make the best guess for the next focus group to move the focus to in the given direction (forward or backward).<br>
/// If not, the application has to set the new focus.<br>
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public event EventHandler<FocusGroupChangedEventArgs> FocusGroupChanged
{
add
/// <summary>
/// The FocusedViewActivated will be triggered when the current focused view has the enter key pressed on it.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public event EventHandler<FocusedViewActivatedEventArgs> FocusedViewActivated
{
add
/// </summary>
/// <param name="view">The view to be focused.</param>
/// <returns>Whether the focus is successful or not.</returns>
+ /// <since_tizen> 3 </since_tizen>
public bool SetCurrentFocusView(View view)
{
if(view == null)
/// Gets the current focused view.
/// </summary>
/// <returns>A handle to the current focused view or an empty handle if no view is focused.</returns>
+ /// <since_tizen> 3 </since_tizen>
public View GetCurrentFocusView()
{
IntPtr cPtr = NDalicManualPINVOKE.FocusManager_GetCurrentFocusActor(swigCPtr);
/// </summary>
/// <param name="direction">The direction of the focus movement.</param>
/// <returns>True if the movement was successful.</returns>
+ /// <since_tizen> 3 </since_tizen>
public bool MoveFocus(View.FocusDirection direction)
{
bool ret = NDalicManualPINVOKE.FocusManager_MoveFocus(swigCPtr, (int)direction);
/// Clears the focus from the current focused view if any, so that no view is focused in the focus chain.<br>
/// It will emit the FocusChanged event without the current focused view.<br>
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public void ClearFocus()
{
NDalicManualPINVOKE.FocusManager_ClearFocus(swigCPtr);
/// <summary>
/// Move the focus to previous focused view.
/// </summary>
+ /// <since_tizen> 4 </since_tizen>
public void MoveFocusBackward()
{
NDalicManualPINVOKE.FocusManager_MoveFocusBackward(swigCPtr);
/// Gets or sets the status of whether the focus movement should be looped within the same focus group.<br>
/// The focus movement is not looped by default.<br>
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public bool FocusGroupLoop
{
set
/// </summary>
/// <param name="view">The view to be set as a focus group.</param>
/// <param name="isFocusGroup">Whether to set the view as a focus group or not.</param>
+ /// <since_tizen> 3 </since_tizen>
public void SetAsFocusGroup(View view, bool isFocusGroup)
{
NDalicManualPINVOKE.FocusManager_SetAsFocusGroup(swigCPtr, View.getCPtr(view), isFocusGroup);
/// </summary>
/// <param name="view">The view to be checked.</param>
/// <returns>Whether the view is set as a focus group.</returns>
+ /// <since_tizen> 3 </since_tizen>
public bool IsFocusGroup(View view)
{
bool ret = NDalicManualPINVOKE.FocusManager_IsFocusGroup(swigCPtr, View.getCPtr(view));
/// </summary>
/// <param name="view">The view to be checked for its focus group.</param>
/// <returns>The focus group the given view belongs to or an empty handle if the given view.</returns>
+ /// <since_tizen> 3 </since_tizen>
public View GetFocusGroup(View view)
{
IntPtr cPtr = NDalicManualPINVOKE.FocusManager_GetFocusGroup(swigCPtr, View.getCPtr(view));
/// Gets or sets the focus indicator view.<br>
/// This will replace the default focus indicator view in the FocusManager and will be added to the focused view as a highlight.<br>
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public View FocusIndicator
{
set
/// Provides the implementation of a custom focus algorithm interface to allow the application to define the focus logic.<br>
/// </summary>
/// <param name="arg0">The user's implementation of ICustomFocusAlgorithm.</param>
+ /// <since_tizen> 3 </since_tizen>
public void SetCustomAlgorithm(ICustomFocusAlgorithm arg0)
{
_customAlgorithmInterfaceWrapper = new CustomAlgorithmInterfaceWrapper();
/// <summary>
/// Gets the singleton of the FocusManager object.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public static FocusManager Instance
{
get
/// If this does not provide a valid view, then the Keyboard FocusManager will check focusable properties to determine the next focusable actor.<br>
/// If focusable properties are not set, then the keyboard FocusManager calls the GetNextFocusableView() method of this interface.<br>
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public interface ICustomFocusAlgorithm
{
View GetNextFocusableView(View current, View proposed, View.FocusDirection direction);
- //Please do not use! this will be deprecated
- [EditorBrowsable(EditorBrowsableState.Never)]
+ //Please do not use! this will be deprecated
+ [EditorBrowsable(EditorBrowsableState.Never)]
public class FocusedViewEnterKeyEventArgs : EventArgs
{
private View _view;
}
}
}
-}
+}
\ No newline at end of file