IAvaloniaPropertyVisitor<TData> Interface

Summary

A visitor to resolve an untyped AvaloniaProperty to a typed property.
Namespace
Avalonia.Utilities
Implementing Types
graph BT Type["IAvaloniaPropertyVisitor<TData>"] class Type type-node Implementing0["Setter"]-.->Type click Implementing0 "/api/Avalonia.Styling/Setter"

Syntax

public interface IAvaloniaPropertyVisitor<TData> where TData : struct

Remarks

Pass an instance that implements this interface to Accept<TData>(IAvaloniaPropertyVisitor<TData>, TData) in order to resolve un untyped AvaloniaProperty to a typed StyledPropertyBase<TValue> or DirectPropertyBase<TValue>.

Type Parameters

Name Description
TData The type of user data passed.

Methods

Name Value Summary
Visit<T>(DirectPropertyBase<T>, TData) void
Called when the property is a direct property.
Visit<T>(StyledPropertyBase<T>, TData) void
Called when the property is a styled property.