pub struct ValueFrameViewModel { /* private fields */ }Expand description
A frame of the values of a control (its local values, a style or control theme that applies to it, the values its template gives it), with the setters of the frame.
Implementations§
Source§impl ValueFrameViewModel
impl ValueFrameViewModel
pub fn new( styled_element: &StyledElement, value_frame: Rc<dyn IValueFrameDiagnostic>, clipboard: Option<Rc<dyn IClipboard>>, ) -> Rc<Self>
pub fn is_active(&self) -> bool
pub fn set_is_active(&self, value: bool)
pub fn is_visible(&self) -> bool
pub fn set_is_visible(&self, value: bool)
pub fn description(&self) -> Option<String>
pub fn setters(&self) -> &[SetterViewModelRef]
Sourcepub fn setters_source(&self) -> ItemsSource
pub fn setters_source(&self) -> ItemsSource
The setters as a source of items, each as a value of its class (for the data templates of the view, which choose by the class of the setter).
pub fn update(&self)
Trait Implementations§
Source§impl INotifyPropertyChanged for ValueFrameViewModel
impl INotifyPropertyChanged for ValueFrameViewModel
Source§fn property_changed(&self) -> &Event<str>
fn property_changed(&self) -> &Event<str>
The event raised when a property value changes.
Source§fn as_notify_property_changing(&self) -> Option<&dyn INotifyPropertyChanging>
fn as_notify_property_changing(&self) -> Option<&dyn INotifyPropertyChanging>
The object as
INotifyPropertyChanging, when it also raises the event of a property
that is about to change; None by default. Read moreSource§impl MarkupTyped for ValueFrameViewModel
impl MarkupTyped for ValueFrameViewModel
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Auto Trait Implementations§
impl !Freeze for ValueFrameViewModel
impl !RefUnwindSafe for ValueFrameViewModel
impl !Send for ValueFrameViewModel
impl !Sync for ValueFrameViewModel
impl !UnwindSafe for ValueFrameViewModel
impl Unpin for ValueFrameViewModel
impl UnsafeUnpin for ValueFrameViewModel
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