Skip to main content

KeyboardNavigation

Struct KeyboardNavigation 

Source
pub struct KeyboardNavigation;
Expand description

Defines attached properties that control keyboard navigation behaviour for a container.

Implementations§

Source§

impl KeyboardNavigation

Source

pub const TYPE: &'static TypeInfo = <KeyboardNavigation as crate::StaticType>::TYPE

The runtime type of this type.

Source§

impl KeyboardNavigation

Source

pub fn tab_index_property() -> &'static AttachedProperty<i32>

Defines the TabIndex attached property.

Source

pub fn tab_navigation_property() -> &'static AttachedProperty<KeyboardNavigationMode>

Defines the TabNavigation attached property.

It defines how pressing the Tab key causes focus to be navigated between the children of the container.

Source

pub fn tab_once_active_element_property() -> &'static AttachedProperty<Option<Ref<InputElement>>>

Defines the TabOnceActiveElement attached property.

When focus enters a container which has its TabNavigation attached property set to Once, this property defines to which child the focus should move.

Source

pub fn is_tab_stop_property() -> &'static AttachedProperty<bool>

Defines the IsTabStop attached property.

It determines if the control can receive focus by tab navigation.

Source§

impl KeyboardNavigation

Source

pub fn get_tab_index(element: &InputElement) -> i32

Gets the TabIndex attached property for an element.

Source

pub fn set_tab_index(element: &InputElement, value: i32)

Sets the TabIndex attached property for an element.

Source

pub fn get_tab_navigation(element: &InputElement) -> KeyboardNavigationMode

Gets the TabNavigation attached property for a container.

Source

pub fn set_tab_navigation(element: &InputElement, value: KeyboardNavigationMode)

Sets the TabNavigation attached property for a container.

Source

pub fn get_tab_once_active_element( element: &InputElement, ) -> Option<Ref<InputElement>>

Gets the TabOnceActiveElement attached property for a container.

Source

pub fn set_tab_once_active_element( element: &InputElement, value: Option<Ref<InputElement>>, )

Sets the TabOnceActiveElement attached property for a container.

Source

pub fn set_is_tab_stop(element: &InputElement, value: bool)

Sets the IsTabStop attached property for an element.

Source

pub fn get_is_tab_stop(element: &InputElement) -> bool

Gets the IsTabStop attached property for an element.

Trait Implementations§

Source§

impl StaticType for KeyboardNavigation

Source§

const TYPE: &'static TypeInfo

The runtime type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ClassDefaults for T
where T: ?Sized,

Source§

fn static_constructor()

The static constructor of a type: work done once per thread, after the properties of the type are registered and before its first instance exists (class handlers, affects_render, metadata overrides). Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.