-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Design improvements #18300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Design improvements #18300
Conversation
You can test this PR using the following package version. |
|
Public API for review: namespace Avalonia.Controls
{
public static class Design
{
+ public static void SetPreviewWith(IDataTemplate target, Control? control);
+ public static Control? GetPreviewWith(IDataTemplate target);
}
} |
@MrJul we can discuss another API option: + public static void SetPreviewWith(AvaloniaObject target, ITemplate<Control>? template)
+ public static void SetPreviewWith(ResourceDictionary target, ITemplate<Control>? template)
+ public static void SetPreviewWith(IDataTemplate target, ITemplate<Control>? template);
+ public static Control? GetPreviewWith(IDataTemplate target); And additionally:
|
The overloads taking Add some way in the XAML compiler to prioritize them. |
You can test this PR using the following package version. |
You can test this PR using the following package version. |
What does the pull request do?
Untested. Need to wait for the nightly builds.