feat: upgrade to 11.
This commit is contained in:
@@ -18,12 +18,12 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Avalonia" Version="11.0.0-rc1.1" />
|
<PackageReference Include="Avalonia" Version="11.0.0" />
|
||||||
<PackageReference Include="Avalonia.Desktop" Version="11.0.0-rc1.1" />
|
<PackageReference Include="Avalonia.Desktop" Version="11.0.0" />
|
||||||
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
|
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
|
||||||
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="11.0.0-rc1.1" />
|
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="11.0.0" />
|
||||||
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.1.0" />
|
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.1.0" />
|
||||||
<PackageReference Include="Semi.Avalonia" Version="11.0.0-rc1" />
|
<PackageReference Include="Semi.Avalonia" Version="11.0.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<ControlTheme x:Key="{x:Type u:Badge}" TargetType="{x:Type u:Badge}">
|
<ControlTheme x:Key="{x:Type u:Badge}" TargetType="{x:Type u:Badge}">
|
||||||
<!-- Set a very large corner radius to achieve pill look. -->
|
<!-- Set a very large corner radius to achieve pill look. -->
|
||||||
<Setter Property="u:Badge.CornerRadius" Value="100" />
|
<Setter Property="u:Badge.CornerRadius" Value="100" />
|
||||||
<Setter Property="u:Badge.FontSize" Value="8" />
|
<Setter Property="u:Badge.FontSize" Value="14" />
|
||||||
<Setter Property="u:Badge.Background" Value="{DynamicResource BadgePrimaryBadgeBackground}" />
|
<Setter Property="u:Badge.Background" Value="{DynamicResource BadgePrimaryBadgeBackground}" />
|
||||||
<Setter Property="u:Badge.ClipToBounds" Value="False" />
|
<Setter Property="u:Badge.ClipToBounds" Value="False" />
|
||||||
<Setter Property="u:Badge.HorizontalAlignment" Value="Center" />
|
<Setter Property="u:Badge.HorizontalAlignment" Value="Center" />
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Avalonia" Version="11.0.0-rc1.1" />
|
<PackageReference Include="Avalonia" Version="11.0.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ using Avalonia.Controls;
|
|||||||
using Avalonia.Controls.Metadata;
|
using Avalonia.Controls.Metadata;
|
||||||
using Avalonia.Controls.Presenters;
|
using Avalonia.Controls.Presenters;
|
||||||
using Avalonia.Controls.Primitives;
|
using Avalonia.Controls.Primitives;
|
||||||
|
using Avalonia.Interactivity;
|
||||||
using Avalonia.Media;
|
using Avalonia.Media;
|
||||||
using Avalonia.Styling;
|
using Avalonia.Styling;
|
||||||
using Ursa.Common;
|
using Ursa.Common;
|
||||||
@@ -75,9 +76,9 @@ public class Badge: ContentControl
|
|||||||
_badgeContent = e.NameScope.Find<ContentPresenter>(PART_BadgeContentPresenter);
|
_badgeContent = e.NameScope.Find<ContentPresenter>(PART_BadgeContentPresenter);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnLoaded()
|
protected override void OnLoaded(RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
base.OnLoaded();
|
base.OnLoaded(e);
|
||||||
UpdateBadgePosition();
|
UpdateBadgePosition();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Avalonia" Version="11.0.0-rc1.1" />
|
<PackageReference Include="Avalonia" Version="11.0.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
Reference in New Issue
Block a user