Support unarchiving

This commit is contained in:
TheXamlGuy
2024-05-19 16:13:45 +01:00
parent 41c7f71a9d
commit 718a1f92ca
7 changed files with 21 additions and 18 deletions
+10
View File
@@ -0,0 +1,10 @@
namespace Toolkit.Foundation;
public record Cancel
{
public static CancelEventArgs<TValue> As<TValue>(TValue value) =>
new(value);
public static CancelEventArgs<TValue> As<TValue>() where TValue : new() =>
new(new TValue());
}
+3
View File
@@ -0,0 +1,3 @@
namespace Toolkit.Foundation;
public record CancelEventArgs<TValue>(TValue Value);
-17
View File
@@ -1,17 +0,0 @@
using Avalonia.Controls;
using Avalonia.Controls.Primitives;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Toolkit.UI.Controls;
public class AttachedFlyout : PopupFlyoutBase
{
protected override Control CreatePresenter()
{
throw new NotImplementedException();
}
}
@@ -1,6 +1,7 @@
<Styles xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Styles xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Styles.Resources> <Styles.Resources>
<ResourceDictionary> <ResourceDictionary>
<FontFamily x:Key="FluentThemeFontFamily">/Fonts/#FluentSystemIcons-Regular</FontFamily>
<ResourceDictionary.MergedDictionaries> <ResourceDictionary.MergedDictionaries>
<MergeResourceInclude Source="../CarouselView/CarouselView.axaml" /> <MergeResourceInclude Source="../CarouselView/CarouselView.axaml" />
<MergeResourceInclude Source="../ContentDialog/ContentDialog.axaml" /> <MergeResourceInclude Source="../ContentDialog/ContentDialog.axaml" />
@@ -5,6 +5,12 @@
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<None Remove="Fonts\FluentSystemIcons-Regular.ttf" />
</ItemGroup>
<ItemGroup>
<AvaloniaResource Include="Fonts\FluentSystemIcons-Regular.ttf" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Avalonia" Version="11.2.999-cibuild0048140-alpha" /> <PackageReference Include="Avalonia" Version="11.2.999-cibuild0048140-alpha" />
<PackageReference Include="Avalonia.Labs.Controls" Version="11.0.10.1" /> <PackageReference Include="Avalonia.Labs.Controls" Version="11.0.10.1" />