pub enum BindingMode {
Default,
OneWay,
TwoWay,
OneTime,
OneWayToSource,
}Expand description
Defines possible binding modes.
Variants§
Default
Uses the default binding mode specified for the property.
OneWay
Binds one way from source to target.
TwoWay
Binds two-way with the initial value coming from the target.
OneTime
Updates the target when the application starts or when the data context changes.
OneWayToSource
Binds one way from target to source.
Trait Implementations§
Source§impl Clone for BindingMode
impl Clone for BindingMode
impl Copy for BindingMode
Source§impl Debug for BindingMode
impl Debug for BindingMode
Source§impl Default for BindingMode
impl Default for BindingMode
impl Eq for BindingMode
Source§impl Hash for BindingMode
impl Hash for BindingMode
Source§impl MarkupTyped for BindingMode
impl MarkupTyped for BindingMode
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Source§impl PartialEq for BindingMode
impl PartialEq for BindingMode
impl StructuralPartialEq for BindingMode
Auto Trait Implementations§
impl Freeze for BindingMode
impl RefUnwindSafe for BindingMode
impl Send for BindingMode
impl Sync for BindingMode
impl Unpin for BindingMode
impl UnsafeUnpin for BindingMode
impl UnwindSafe for BindingMode
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
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