ForNeVeR / AvaloniaRider

JetBrains Rider plugin for Avalonia development
https://plugins.jetbrains.com/plugin/14839-avaloniarider/
MIT License
446 stars 19 forks source link

Selector="Image[(asyncImageLoader|ImageLoader.IsLoading)=True] #268

Closed afunc233 closed 1 year ago

afunc233 commented 1 year ago

I use the AsyncImageLoader.Avalonia version 3.0.0-avalonia11-preview3

public static class ImageLoader
{
    public static readonly AttachedProperty<bool> IsLoadingProperty = AvaloniaProperty.RegisterAttached<Image, bool>("IsLoading", typeof (ImageLoader));

    public static bool GetIsLoading(Image element) => element.GetValue<bool>((StyledProperty<bool>) ImageLoader.IsLoadingProperty);

    private static void SetIsLoading(Image element, bool value) => element.SetValue<bool>((StyledProperty<bool>) ImageLoader.IsLoadingProperty, value);
}

the Rider has a tips image and the application run well

if replace | to : got Unable to parse selector: Expected '.', got ':' Line 59, position 54.

I think this is a bug, maybe I was wrong ?

Rider version : JetBrains Rider 2023.1 EAP 8 AvaloniaRider version : 1.0.3.104

ForNeVeR commented 1 year ago

Please open an issue on the ReSharper issue tracker. Code highlighting is done by ReSharper core and not this plugin.