From c3d33c3017fdc2c374a22d0a21c142acee3d5988 Mon Sep 17 00:00:00 2001 From: Arlo Godfrey Date: Fri, 16 Aug 2024 13:03:04 -0500 Subject: [PATCH] Add partial to resolve CsWinRT1028 --- CommunityToolkit.App.Shared/Converters/StringToUriConverter.cs | 2 +- CommunityToolkit.App.Shared/DocOrSampleTemplateSelector.cs | 2 +- .../Renderers/GeneratedSampleOptionTemplateSelector.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CommunityToolkit.App.Shared/Converters/StringToUriConverter.cs b/CommunityToolkit.App.Shared/Converters/StringToUriConverter.cs index d9aa0f57..5c148d41 100644 --- a/CommunityToolkit.App.Shared/Converters/StringToUriConverter.cs +++ b/CommunityToolkit.App.Shared/Converters/StringToUriConverter.cs @@ -6,7 +6,7 @@ namespace CommunityToolkit.App.Shared.Converters; -public class StringToUriConverter : IValueConverter +public partial class StringToUriConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, string language) { diff --git a/CommunityToolkit.App.Shared/DocOrSampleTemplateSelector.cs b/CommunityToolkit.App.Shared/DocOrSampleTemplateSelector.cs index 530ed2bb..bd6d80ad 100644 --- a/CommunityToolkit.App.Shared/DocOrSampleTemplateSelector.cs +++ b/CommunityToolkit.App.Shared/DocOrSampleTemplateSelector.cs @@ -14,7 +14,7 @@ namespace CommunityToolkit.App.Shared; -public class DocOrSampleTemplateSelector : DataTemplateSelector +public partial class DocOrSampleTemplateSelector : DataTemplateSelector { public DataTemplate? Document { get; set; } public DataTemplate? Sample { get; set; } diff --git a/CommunityToolkit.App.Shared/Renderers/GeneratedSampleOptionTemplateSelector.cs b/CommunityToolkit.App.Shared/Renderers/GeneratedSampleOptionTemplateSelector.cs index 7c55f1ba..c42e84d0 100644 --- a/CommunityToolkit.App.Shared/Renderers/GeneratedSampleOptionTemplateSelector.cs +++ b/CommunityToolkit.App.Shared/Renderers/GeneratedSampleOptionTemplateSelector.cs @@ -9,7 +9,7 @@ namespace CommunityToolkit.App.Shared.Renderers; /// /// Selects a sample option template for the provided . /// -internal class GeneratedSampleOptionTemplateSelector : DataTemplateSelector +internal partial class GeneratedSampleOptionTemplateSelector : DataTemplateSelector { public DataTemplate? BoolOptionTemplate { get; set; }