BehaviorCollectionTemplate
struct · ferroui-xaml-interactivity · v0.5.0
struct BehaviorCollectionTemplate
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).
Members
new
fn new() -> Rc<Self>
Creates an empty template.
content
fn content(self: &Self) -> Option<BoxedValue>
Gets or sets the content of the template: deferred content built on each
build.
set_content
fn set_content(self: &Self, value: Option<BoxedValue>)
build
fn build(self: &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
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyAnyValueClassDefaultsErasedDestructorIntoEitherDefaultITemplatePartialEqMarkupTyped
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.