pub struct BehaviorCollectionTemplate { /* private fields */ }Expand description
A template for creating a collection of IBehavior objects.
As the value of a style setter of (Interaction.Behaviors) it builds a new collection for
each element the style applies to (a collection attaches to one object only).
Implementations§
Source§impl BehaviorCollectionTemplate
impl BehaviorCollectionTemplate
Sourcepub fn content(&self) -> Option<BoxedValue>
pub fn content(&self) -> Option<BoxedValue>
Gets or sets the content of the template: deferred content built on each
build.
pub fn set_content(&self, value: Option<BoxedValue>)
Sourcepub fn build(&self) -> Option<BehaviorCollection>
pub fn build(&self) -> Option<BehaviorCollection>
Builds the collection of behaviors from the template.
§Panics
Panics if the content is not template content, or builds something else than a collection of behaviors.
Trait Implementations§
Source§impl Default for BehaviorCollectionTemplate
impl Default for BehaviorCollectionTemplate
Source§impl ITemplate for BehaviorCollectionTemplate
impl ITemplate for BehaviorCollectionTemplate
Source§fn build(&self) -> BoxedValue
fn build(&self) -> BoxedValue
Builds the collection of behaviors from the template, as the value of the attached property (an optional collection).
Source§impl MarkupTyped for BehaviorCollectionTemplate
impl MarkupTyped for BehaviorCollectionTemplate
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Auto Trait Implementations§
impl !Freeze for BehaviorCollectionTemplate
impl !RefUnwindSafe for BehaviorCollectionTemplate
impl !Send for BehaviorCollectionTemplate
impl !Sync for BehaviorCollectionTemplate
impl !UnwindSafe for BehaviorCollectionTemplate
impl Unpin for BehaviorCollectionTemplate
impl UnsafeUnpin for BehaviorCollectionTemplate
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