pub enum PreviewTarget {
Style(Rc<dyn IStyle>),
DataTemplate(Rc<dyn IDataTemplate>),
Object(Ref<FerroObject>),
Other,
}Expand description
What a design-time preview is created for; see
Design::create_preview_with_control.
Variants§
Style(Rc<dyn IStyle>)
A style that is not an object.
DataTemplate(Rc<dyn IDataTemplate>)
A data template.
Object(Ref<FerroObject>)
An object: a control, a style, a resource dictionary, the application, …
Other
Anything else.
Auto Trait Implementations§
impl !RefUnwindSafe for PreviewTarget
impl !Send for PreviewTarget
impl !Sync for PreviewTarget
impl !UnwindSafe for PreviewTarget
impl Freeze for PreviewTarget
impl Unpin for PreviewTarget
impl UnsafeUnpin for PreviewTarget
Blanket Implementations§
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