SingleInstanceViewAttribute class¶
Attributes: [AttributeUsage(AttributeTargets.4)]
Defined in
Namespace: ReactiveUI.Binding.Reactive
Assembly: ReactiveUI.Binding.Reactive.dll
Full name: ReactiveUI.Binding.Reactive.SingleInstanceViewAttribute
Modifiers: public sealed
Summary¶
Indicates that this View should be constructed once and then reused
every time its ViewModel's View is resolved. The source generator will
emit a cached singleton pattern instead of creating a new instance per resolution.
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-tvos18.0, net9.0-maccatalyst18.0, net9.0-ios18.0, net9.0-macos15.0, net9.0-desktop1.0, net8.0, net8.0-macos14.5, net8.0-ios18.0, net8.0-maccatalyst18.0, net8.0-macos15.0, net8.0-tvos18.0, net8.0-ios17.5, net8.0-maccatalyst17.5, netstandard2.1, net481, net462, net471
Class hierarchy
classDiagram
class SingleInstanceViewAttribute
class Attribute
Attribute <|-- SingleInstanceViewAttribute
Inherits from: Attribute
Remarks¶
This is not supported on Views that may be reused multiple
times in the Visual Tree.
Constructors¶
| Name | Summary |
|---|---|
| .ctor |