Class FocusFrame
It is a container to decorate focused state
Inheritance
Implements
Inherited Members
Namespace: Tizen.Theme.Common
Assembly: Tizen.Theme.Common.dll
Syntax
public class FocusFrame : Frame, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, INavigationProxy, IStyleSelectable, IAnimatable, IResourcesProvider, IStyleElement, IFlowDirectionController, IPropertyPropagationController, IVisualController, ITabStopElement, IStylable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, ILayout, ILayoutController, IControlTemplated, IElementConfiguration<Frame>, IPaddingElement, IBorderElement
Constructors
FocusFrame()
Creates and initializes a new instance of the FocusFrame class.
Declaration
public FocusFrame()
Fields
ContentFocusedCommandParameterProperty
Identifies the ContentFocusedCommandParameter bindable property
Declaration
public static readonly BindableProperty ContentFocusedCommandParameterProperty
Field Value
Type | Description |
---|---|
Xamarin.Forms.BindableProperty |
ContentFocusedCommandProperty
Identifies the ContentFocusedCommand bindable property
Declaration
public static readonly BindableProperty ContentFocusedCommandProperty
Field Value
Type | Description |
---|---|
Xamarin.Forms.BindableProperty |
ContentUnfocusedCommandParameterProperty
Identifies the ContentUnfocusedCommandParameter bindable property
Declaration
public static readonly BindableProperty ContentUnfocusedCommandParameterProperty
Field Value
Type | Description |
---|---|
Xamarin.Forms.BindableProperty |
ContentUnfocusedCommandProperty
Identifies the ContentUnfocusedCommand bindable property
Declaration
public static readonly BindableProperty ContentUnfocusedCommandProperty
Field Value
Type | Description |
---|---|
Xamarin.Forms.BindableProperty |
FocusedColorProperty
Identifies the FocusedColor bindable property.
Declaration
public static readonly BindableProperty FocusedColorProperty
Field Value
Type | Description |
---|---|
Xamarin.Forms.BindableProperty |
IsContentFocusedProperty
Identifies the IsContentFocused bindable property.
Declaration
public static readonly BindableProperty IsContentFocusedProperty
Field Value
Type | Description |
---|---|
Xamarin.Forms.BindableProperty |
UnfocusedColorProperty
Identifies the UnfocusedColor bindable property.
Declaration
public static readonly BindableProperty UnfocusedColorProperty
Field Value
Type | Description |
---|---|
Xamarin.Forms.BindableProperty |
Properties
ContentFocusedCommand
Gets or sets the command to invoke when the content is focused. This is a bindable property.
Declaration
public ICommand ContentFocusedCommand { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand |
ContentFocusedCommandParameter
Gets or sets the parameter to pass to the ContentFocusedCommand property. This is a bindable property.
Declaration
public object ContentFocusedCommandParameter { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
ContentUnfocusedCommand
Gets or sets the command to invoke when the content is unfocused. This is a bindable property.
Declaration
public ICommand ContentUnfocusedCommand { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand |
ContentUnfocusedCommandParameter
Gets or sets the parameter to pass to the ContentUnfocusedCommand property. This is a bindable property.
Declaration
public object ContentUnfocusedCommandParameter { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
FocusedColor
Gets or sets a value that represents FocusedColor, it used for decorating focused state on content
Declaration
public Color FocusedColor { get; set; }
Property Value
Type | Description |
---|---|
Xamarin.Forms.Color |
IsContentFocused
Gets a value indicating whether content is focused currently.
Declaration
public bool IsContentFocused { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
UnfocusedColor
Gets or sets a value that represents UnfocusedColor, it used for decorating unfocused state on content
Declaration
public Color UnfocusedColor { get; set; }
Property Value
Type | Description |
---|---|
Xamarin.Forms.Color |
Methods
OnContentFocused(Boolean)
This method was called when content's focused state was changed. To change behavior of decorating, overriding this method
Declaration
protected virtual void OnContentFocused(bool isFocused)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isFocused | This parameter indicates whether the content is focused. |
OnPropertyChanged(String)
Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName |
Overrides
OnPropertyChanging(String)
Declaration
protected override void OnPropertyChanging(string propertyName = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName |
Overrides
Events
ContentFocused
Raise when one of descendants view are focused
Declaration
public event EventHandler<FocusEventArgs> ContentFocused
Event Type
Type | Description |
---|---|
System.EventHandler<Xamarin.Forms.FocusEventArgs> |
ContentUnfocused
Raise when one of descendants view are unfocused
Declaration
public event EventHandler<FocusEventArgs> ContentUnfocused
Event Type
Type | Description |
---|---|
System.EventHandler<Xamarin.Forms.FocusEventArgs> |