SingleInstanceViewAttribute class¶
Attributes: [AttributeUsage(AttributeTargets.4)]
Defined in
Namespace: ReactiveUI.Binding
Assembly: ReactiveUI.Binding.dll
Full name: ReactiveUI.Binding.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-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481
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 |