-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3636 from AvaloniaUI/refactor/styling
Refactor styling
- Loading branch information
Showing
73 changed files
with
1,819 additions
and
1,527 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#nullable enable | ||
|
||
namespace Avalonia.Utilities | ||
{ | ||
/// <summary> | ||
/// A visitor to resolve an untyped <see cref="AvaloniaProperty"/> to a typed property. | ||
/// </summary> | ||
/// <typeparam name="TData">The type of user data passed.</typeparam> | ||
/// <remarks> | ||
/// Pass an instance that implements this interface to | ||
/// <see cref="AvaloniaProperty.Accept{TData}(IAvaloniaPropertyVisitor{TData}, ref TData)"/> | ||
/// in order to resolve un untyped <see cref="AvaloniaProperty"/> to a typed | ||
/// <see cref="StyledPropertyBase{TValue}"/> or <see cref="DirectPropertyBase{TValue}"/>. | ||
/// </remarks> | ||
public interface IAvaloniaPropertyVisitor<TData> | ||
where TData : struct | ||
{ | ||
/// <summary> | ||
/// Called when the property is a styled property. | ||
/// </summary> | ||
/// <typeparam name="T">The property value type.</typeparam> | ||
/// <param name="property">The property.</param> | ||
/// <param name="data">The user data.</param> | ||
void Visit<T>(StyledPropertyBase<T> property, ref TData data); | ||
|
||
/// <summary> | ||
/// Called when the property is a direct property. | ||
/// </summary> | ||
/// <typeparam name="T">The property value type.</typeparam> | ||
/// <param name="property">The property.</param> | ||
/// <param name="data">The user data.</param> | ||
void Visit<T>(DirectPropertyBase<T> property, ref TData data); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.