feat: fix various issues.
This commit is contained in:
@@ -27,14 +27,14 @@
|
||||
<Border
|
||||
x:Name="PART_LoadingBorder"
|
||||
Classes.Active="{Binding Path= IsActive, RelativeSource={RelativeSource TemplatedParent}}"
|
||||
IsHitTestVisible="{TemplateBinding Loading}"
|
||||
IsHitTestVisible="{TemplateBinding IsLoading}"
|
||||
Background="{DynamicResource SkeletonDefaultBackground}"
|
||||
IsVisible="{TemplateBinding Loading}">
|
||||
IsVisible="{TemplateBinding IsLoading}">
|
||||
</Border>
|
||||
<Border
|
||||
x:Name="PART_ActiveBorder"
|
||||
IsHitTestVisible="{TemplateBinding Loading}"
|
||||
IsVisible="{TemplateBinding Loading}"
|
||||
IsHitTestVisible="{TemplateBinding IsLoading}"
|
||||
IsVisible="{TemplateBinding IsLoading}"
|
||||
>
|
||||
</Border>
|
||||
</Panel>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
</Design.PreviewWith>
|
||||
|
||||
<!-- Add Styles Here -->
|
||||
<Style Selector="u|Skeleton[IsActive=True][Loading=True] /template/ Border#PART_ActiveBorder">
|
||||
<Style Selector="u|Skeleton[IsActive=True][IsLoading=True] /template/ Border#PART_ActiveBorder">
|
||||
<Style.Animations>
|
||||
<Animation
|
||||
FillMode="None"
|
||||
|
||||
@@ -17,13 +17,13 @@ namespace Ursa.Controls
|
||||
set { SetValue(IsActiveProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly StyledProperty<bool> LoadingProperty =
|
||||
AvaloniaProperty.Register<Skeleton, bool>(nameof(Loading));
|
||||
public static readonly StyledProperty<bool> IsLoadingProperty =
|
||||
AvaloniaProperty.Register<Skeleton, bool>(nameof(IsLoading));
|
||||
|
||||
public bool Loading
|
||||
public bool IsLoading
|
||||
{
|
||||
get => GetValue(LoadingProperty);
|
||||
set => SetValue(LoadingProperty, value);
|
||||
get => GetValue(IsLoadingProperty);
|
||||
set => SetValue(IsLoadingProperty, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user