Let's agree to the disagree. We'll map 3rd party controls to our own classes therefore having the ability to declare XML to CRL mapping. Cleaner xaml without the prefixes.
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Avalonia" Version="11.0.0-preview3" />
|
||||
<PackageReference Include="FluentAvaloniaUI" Version="2.0.0-preview3" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\UI\UI.csproj" />
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
using Avalonia.Styling;
|
||||
|
||||
namespace TheXamlGuy.UI.Avalonia.Controls;
|
||||
|
||||
public class ContentDialog : FluentAvalonia.UI.Controls.ContentDialog, IStyleable
|
||||
{
|
||||
Type IStyleable.StyleKey => typeof(FluentAvalonia.UI.Controls.ContentDialog);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using Avalonia.Styling;
|
||||
|
||||
namespace TheXamlGuy.UI.Avalonia.Controls;
|
||||
|
||||
public class Frame : FluentAvalonia.UI.Controls.Frame, IStyleable
|
||||
{
|
||||
Type IStyleable.StyleKey => typeof(FluentAvalonia.UI.Controls.Frame);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using Avalonia.Styling;
|
||||
|
||||
namespace TheXamlGuy.UI.Avalonia.Controls;
|
||||
|
||||
public class PathIconEx : FluentAvalonia.UI.Controls.FAPathIcon, IStyleable
|
||||
{
|
||||
Type IStyleable.StyleKey => typeof(FluentAvalonia.UI.Controls.FAPathIcon);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace TheXamlGuy.UI.Avalonia.Controls
|
||||
{
|
||||
public class PathIconSource : FluentAvalonia.UI.Controls.PathIconSource
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using Avalonia.Styling;
|
||||
|
||||
namespace TheXamlGuy.UI.Avalonia.Controls;
|
||||
|
||||
public class NavigationView : FluentAvalonia.UI.Controls.NavigationView, IStyleable
|
||||
{
|
||||
Type IStyleable.StyleKey => typeof(FluentAvalonia.UI.Controls.NavigationView);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using Avalonia.Styling;
|
||||
|
||||
namespace TheXamlGuy.UI.Avalonia.Controls;
|
||||
|
||||
public class NavigationViewItem : FluentAvalonia.UI.Controls.NavigationViewItem, IStyleable
|
||||
{
|
||||
Type IStyleable.StyleKey => typeof(FluentAvalonia.UI.Controls.NavigationViewItem);
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
using Avalonia.Metadata;
|
||||
|
||||
[assembly: XmlnsDefinition("https://github.com/avaloniaui", "TheXamlGuy.UI.Avalonia.Controls")]
|
||||
@@ -0,0 +1,8 @@
|
||||
using Avalonia.Styling;
|
||||
|
||||
namespace TheXamlGuy.UI.Avalonia.Controls;
|
||||
|
||||
public class SettingsExpander : FluentAvalonia.UI.Controls.SettingsExpander, IStyleable
|
||||
{
|
||||
Type IStyleable.StyleKey => typeof(FluentAvalonia.UI.Controls.SettingsExpander);
|
||||
}
|
||||
@@ -12,9 +12,4 @@
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\UI\UI.csproj" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="FluentAvalonia">
|
||||
<HintPath>References\FluentAvalonia.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using Avalonia.Metadata;
|
||||
|
||||
[assembly: XmlnsDefinition("https://github.com/avaloniaui", "FluentAvalonia.UI.Controls")]
|
||||
[assembly: XmlnsDefinition("https://github.com/avaloniaui", "TheXamlGuy.UI.Avalonia")]
|
||||
Reference in New Issue
Block a user