pub enum RelativeSourceMode {
DataContext,
TemplatedParent,
SelfMode,
FindAncestor,
}Expand description
Defines the mode of a RelativeSource.
Variants§
DataContext
The binding will be to the element’s data context.
TemplatedParent
The binding will be to the element’s templated parent.
SelfMode
The binding will be to the element itself.
FindAncestor
The binding will be to an ancestor of the element in the visual or logical tree.
Trait Implementations§
Source§impl Clone for RelativeSourceMode
impl Clone for RelativeSourceMode
impl Copy for RelativeSourceMode
Source§impl Debug for RelativeSourceMode
impl Debug for RelativeSourceMode
impl Eq for RelativeSourceMode
Source§impl Hash for RelativeSourceMode
impl Hash for RelativeSourceMode
Source§impl MarkupTyped for RelativeSourceMode
impl MarkupTyped for RelativeSourceMode
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Source§impl PartialEq for RelativeSourceMode
impl PartialEq for RelativeSourceMode
impl StructuralPartialEq for RelativeSourceMode
Auto Trait Implementations§
impl Freeze for RelativeSourceMode
impl RefUnwindSafe for RelativeSourceMode
impl Send for RelativeSourceMode
impl Sync for RelativeSourceMode
impl Unpin for RelativeSourceMode
impl UnsafeUnpin for RelativeSourceMode
impl UnwindSafe for RelativeSourceMode
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