Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated to WinAppSdk 1.6, fixed AoT annotations #457

Merged
merged 23 commits into from
Aug 24, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
5a8ffc6
Fixing CSWinRT1028 warnings, adding partials for AoT.
Arlodotexe Jul 31, 2024
c51880f
Suppress internally generated error CsWinRT1028, add notes
Arlodotexe Jul 31, 2024
60fea69
Updated tooling pointer
Arlodotexe Aug 2, 2024
8032a25
Bump tooling to latest wasdk/1.6
Arlodotexe Aug 8, 2024
0098b7b
Fixing FontWeight and FontStyle namespaces
Arlodotexe Aug 9, 2024
15f810e
Update tooling
Arlodotexe Aug 9, 2024
1e0d1d1
Update tooling
Arlodotexe Aug 9, 2024
3ae2b70
Merge branch 'main' into wasdk/1.6
Arlodotexe Aug 13, 2024
520dcbb
Fixed bad property declaration
Arlodotexe Aug 13, 2024
85cd43f
Update Microsoft.WindowsAppSDK to 1.6.240807006-preview1, remove CsWi…
Arlodotexe Aug 14, 2024
5a15328
Update WindowsSdkPackageVersion for Wasdk 1.6 preview1
Arlodotexe Aug 14, 2024
9b70212
Update transient WebView2 reference to 1.0.2730-prerelease
Arlodotexe Aug 14, 2024
e02207a
Fixed CsWinRT1028, marked partial for AoT
Arlodotexe Aug 14, 2024
82f1dd1
Fixed CsWinRT1028, marked partial for AoT
Arlodotexe Aug 14, 2024
01ea684
Revert WindowsSdkPackageVersion to 10.0.22621.37-preview for WindowsA…
Arlodotexe Aug 15, 2024
c9a7dbf
Update tooling with latest CsWinRT1028 fixes
Arlodotexe Aug 16, 2024
d7da6dd
Update tooling pointer
Arlodotexe Aug 16, 2024
25e42cd
Update tooling pointer
Arlodotexe Aug 16, 2024
2305c61
Remove clean task to resolve https://github.com/CommunityToolkit/Wind…
Arlodotexe Aug 19, 2024
b1343db
Merge branch 'main' into wasdk/1.6
Arlodotexe Aug 22, 2024
dbe7157
Implement ColorHelper.ToDisplayName on WinUI 3
Arlodotexe Aug 22, 2024
5f3fb6d
Handle missing ColorHelper.ToDisplayName implementation on Uno. See h…
Arlodotexe Aug 22, 2024
0c232fb
Bump tooling to latest main
Arlodotexe Aug 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,17 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);Uno0001</NoWarn>
<!-- TODO: Turn off sample pages needing samples for now, for initial commit -->
<NoWarn>$(NoWarn);TKSMPL0014</NoWarn>
<NoWarn>$(NoWarn);TKSMPL0014;</NoWarn>

<!--
Suppress 'error CsWinRT1028: Class implements WinRT interfaces but isn't marked partial. ' for generated XamlMetaDataProvider.g.cs.
Fix is expected to arrive in prerelease1 of Microsoft.WindowsAppSdk 1.6.
Internal tracking: https://microsoft.visualstudio.com/OS/_workitems/edit/52541822/

Notice: This suppression affects CsWinRT1028 for all generated and non-generated code.
Disable to check non-generated code for CsWinRT1028.
-->
<NoWarn>$(NoWarn);CsWinRT1028;</NoWarn>
</PropertyGroup>

<Import Project="Windows.Toolkit.Common.props" />
Expand Down
2 changes: 1 addition & 1 deletion components/Animations/src/Xaml/AnimationScope.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace CommunityToolkit.WinUI.Animations;
/// A container of <see cref="ITimeline"/> elements that can be used to conceptually group animations
/// together and to assign shared properties to be applied to all the contained items automatically.
/// </summary>
public sealed class AnimationScope : DependencyObjectCollection, ITimeline
public sealed partial class AnimationScope : DependencyObjectCollection, ITimeline
{
/// <summary>
/// Gets or sets the optional initial delay for the animation.
Expand Down
2 changes: 1 addition & 1 deletion components/Animations/src/Xaml/AnimationSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace CommunityToolkit.WinUI.Animations;
/// A collection of animations that can be grouped together. This type represents a composite animation
/// (such as <see cref="Storyboard"/>) that can be executed on a given element.
/// </summary>
public sealed class AnimationSet : DependencyObjectCollection
public sealed partial class AnimationSet : DependencyObjectCollection
{
/// <summary>
/// A conditional weak table storing <see cref="CancellationTokenSource"/> instances associated with animations
Expand Down
2 changes: 1 addition & 1 deletion components/Animations/src/Xaml/ImplicitAnimationSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace CommunityToolkit.WinUI.Animations;
/// one <see cref="ImplicitAnimationSet"/> to another, and doing so will add unnecessary runtime overhead over time. If you want to apply the same animations
/// to multiple elements, simply create another <see cref="ImplicitAnimationSet"/> instance and another set of animations with the same properties within it.
/// </remarks>
public sealed class ImplicitAnimationSet : DependencyObjectCollection
public sealed partial class ImplicitAnimationSet : DependencyObjectCollection
{
/// <summary>
/// Raised whenever any configuration change occurrs within the current <see cref="ImplicitAnimationSet"/> instance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CommunityToolkit.WinUI.Collections;
/// <summary>
/// Vector changed EventArgs
/// </summary>
internal class VectorChangedEventArgs : IVectorChangedEventArgs
internal partial class VectorChangedEventArgs : IVectorChangedEventArgs
{
/// <summary>
/// Initializes a new instance of the <see cref="VectorChangedEventArgs"/> class.
Expand Down
2 changes: 1 addition & 1 deletion components/Converters/src/BoolNegationConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CommunityToolkit.WinUI.Converters;
/// <summary>
/// Value converter that applies NOT operator to a <see cref="bool"/> value.
/// </summary>
public class BoolNegationConverter : IValueConverter
public partial class BoolNegationConverter : IValueConverter
{
/// <summary>
/// Convert a boolean value to its negation.
Expand Down
2 changes: 1 addition & 1 deletion components/Converters/src/BoolToVisibilityConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CommunityToolkit.WinUI.Converters;
/// <summary>
/// This class converts a boolean value into a Visibility enumeration.
/// </summary>
public class BoolToVisibilityConverter : BoolToObjectConverter
public partial class BoolToVisibilityConverter : BoolToObjectConverter
{
/// <summary>
/// Initializes a new instance of the <see cref="BoolToVisibilityConverter"/> class.
Expand Down
2 changes: 1 addition & 1 deletion components/Converters/src/CollectionVisibilityConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CommunityToolkit.WinUI.Converters;
/// <summary>
/// This class converts a collection size to visibility.
/// </summary>
public class CollectionVisibilityConverter : EmptyCollectionToObjectConverter
public partial class CollectionVisibilityConverter : EmptyCollectionToObjectConverter
{
/// <summary>
/// Initializes a new instance of the <see cref="CollectionVisibilityConverter"/> class.
Expand Down
2 changes: 1 addition & 1 deletion components/Converters/src/ColorToDisplayNameConverter.cs
Arlodotexe marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace CommunityToolkit.WinUI.Converters;
/// <summary>
/// Gets the approximated display name for the color.
/// </summary>
public class ColorToDisplayNameConverter : IValueConverter
public partial class ColorToDisplayNameConverter : IValueConverter
{
/// <inheritdoc/>
public object Convert(
Expand Down
2 changes: 1 addition & 1 deletion components/Converters/src/DoubleToVisibilityConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CommunityToolkit.WinUI.Converters;
/// <summary>
/// This class converts a double value into a Visibility enumeration.
/// </summary>
public class DoubleToVisibilityConverter : DoubleToObjectConverter
public partial class DoubleToVisibilityConverter : DoubleToObjectConverter
{
/// <summary>
/// Initializes a new instance of the <see cref="DoubleToVisibilityConverter"/> class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace CommunityToolkit.WinUI.Converters;
/// This class converts a collection size into an other object.
/// Can be used to convert to bind a visibility, a color or an image to the size of the collection.
/// </summary>
public class EmptyCollectionToObjectConverter : EmptyObjectToObjectConverter
public partial class EmptyCollectionToObjectConverter : EmptyObjectToObjectConverter
{
/// <summary>
/// Checks collection for emptiness.
Expand Down
2 changes: 1 addition & 1 deletion components/Converters/src/EmptyStringToObjectConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace CommunityToolkit.WinUI.Converters;
/// This class converts a string value into a an object (if the value is null or empty returns the false value).
/// Can be used to bind a visibility, a color or an image to the value of a string.
/// </summary>
public class EmptyStringToObjectConverter : EmptyObjectToObjectConverter
public partial class EmptyStringToObjectConverter : EmptyObjectToObjectConverter
{
/// <summary>
/// Checks string for emptiness.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CommunityToolkit.WinUI.Converters;
/// <summary>
/// Converts a file size in bytes to a more human-readable friendly format using <see cref="CommunityToolkit.Common.Converters.ToFileSizeString(long)"/>
/// </summary>
public class FileSizeToFriendlyStringConverter : IValueConverter
public partial class FileSizeToFriendlyStringConverter : IValueConverter
{
/// <inheritdoc/>
public object Convert(object value, Type targetType, object parameter, string language)
Expand Down
2 changes: 1 addition & 1 deletion components/Converters/src/IFormattableToStringConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace CommunityToolkit.WinUI.Converters;
/// Value converter that converts an <see cref="IFormattable"/> to a formatted <see cref="string"/>.
/// The string format needs to be passed as the converter parameter.
/// </summary>
public class IFormattableToStringConverter : IValueConverter
public partial class IFormattableToStringConverter : IValueConverter
{
// TODO: Provide property to set a IFormatProvider for the 2nd parameter to ToString

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace CommunityToolkit.WinUI.Converters;
/// <summary>
/// Value converter that look up for the source string in the App Resources strings and returns its value, if found.
/// </summary>
public sealed class ResourceNameToResourceStringConverter : IValueConverter
public sealed partial class ResourceNameToResourceStringConverter : IValueConverter
{
#if WINAPPSDK && !HAS_UNO
private readonly ResourceManager _resourceManager = new ResourceManager();
Expand Down
2 changes: 1 addition & 1 deletion components/Converters/src/StringFormatConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace CommunityToolkit.WinUI.Converters;
/// <summary>
/// This class provides a binding converter to display formatted strings
/// </summary>
public class StringFormatConverter : IValueConverter
public partial class StringFormatConverter : IValueConverter
{
/// <summary>
/// Return the formatted string version of the source object.
Expand Down
2 changes: 1 addition & 1 deletion components/Converters/src/StringVisibilityConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CommunityToolkit.WinUI.Converters;
/// <summary>
/// This class converts a string value into a Visibility value (if the value is null or empty returns a collapsed value).
/// </summary>
public class StringVisibilityConverter : EmptyStringToObjectConverter
public partial class StringVisibilityConverter : EmptyStringToObjectConverter
{
/// <summary>
/// Initializes a new instance of the <see cref="StringVisibilityConverter"/> class.
Expand Down
2 changes: 1 addition & 1 deletion components/Converters/src/TaskResultConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace CommunityToolkit.WinUI.Converters;
#if NET8_0_OR_GREATER
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to try to access the Task<T>.Result property of the input Task instance.")]
#endif
public sealed class TaskResultConverter : IValueConverter
public sealed partial class TaskResultConverter : IValueConverter
{
/// <inheritdoc/>
public object Convert(object value, Type targetType, object parameter, string language)
Expand Down
2 changes: 1 addition & 1 deletion components/Converters/src/VisibilityToBoolConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CommunityToolkit.WinUI.Converters;
/// <summary>
/// This class converts a Visibility enumeration to a boolean value.
/// </summary>
public class VisibilityToBoolConverter : IValueConverter
public partial class VisibilityToBoolConverter : IValueConverter
{
/// <summary>
/// Convert a <see cref="Visibility"/> value to boolean.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

#if WINAPPSDK
using Microsoft.UI.Text;
#endif
#else
using Windows.UI.Text;
#endif

namespace CommunityToolkit.WinUI;

Expand Down Expand Up @@ -33,12 +34,12 @@ protected static FontFamily SymbolThemeFontFamily
/// <summary>
/// Gets or sets the thickness of the icon glyph.
/// </summary>
public FontWeight FontWeight { get; set; } = FontWeights.Normal;
public Windows.UI.Text.FontWeight FontWeight { get; set; } = Windows.UI.Text.FontWeights.Normal;
Arlodotexe marked this conversation as resolved.
Show resolved Hide resolved

/// <summary>
/// Gets or sets the font style for the icon glyph.
/// </summary>
public FontStyle FontStyle { get; set; } = FontStyle.Normal;
public Windows.UI.Text.FontStyle FontStyle { get; set; } = Windows.UI.Text.FontStyle.Normal;

/// <summary>
/// Gets or sets the foreground <see cref="Brush"/> for the icon.
Expand Down
2 changes: 1 addition & 1 deletion components/Extensions/src/Markup/BitmapIconExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace CommunityToolkit.WinUI;
/// Custom <see cref="MarkupExtension"/> which can provide <see cref="BitmapIcon"/> values.
/// </summary>
[MarkupExtensionReturnType(ReturnType = typeof(BitmapIcon))]
public sealed class BitmapIconExtension : MarkupExtension
public sealed partial class BitmapIconExtension : MarkupExtension
{
/// <summary>
/// Gets or sets the <see cref="Uri"/> representing the image to display.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace CommunityToolkit.WinUI;
/// Custom <see cref="MarkupExtension"/> which can provide <see cref="BitmapIconSource"/> values.
/// </summary>
[MarkupExtensionReturnType(ReturnType = typeof(BitmapIconSource))]
public sealed class BitmapIconSourceExtension : MarkupExtension
public sealed partial class BitmapIconSourceExtension : MarkupExtension
{
/// <summary>
/// Gets or sets the <see cref="Uri"/> representing the image to display.
Expand Down
2 changes: 1 addition & 1 deletion components/Extensions/src/Markup/EnumValuesExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace CommunityToolkit.WinUI;
#if NET8_0_OR_GREATER
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("It might not be possible to create an array of a user-defined enum type at runtime.")]
#endif
public sealed class EnumValuesExtension : MarkupExtension
public sealed partial class EnumValuesExtension : MarkupExtension
{
/// <summary>
/// Gets or sets the <see cref="global::System.Type"/> of the target <see langword="enum"/>
Expand Down
2 changes: 1 addition & 1 deletion components/Extensions/src/Markup/FontIconExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace CommunityToolkit.WinUI;
/// Custom <see cref="MarkupExtension"/> which can provide <see cref="FontIcon"/> values.
/// </summary>
[MarkupExtensionReturnType(ReturnType = typeof(FontIcon))]
public class FontIconExtension : TextIconExtension
public partial class FontIconExtension : TextIconExtension
{
/// <summary>
/// Gets or sets the <see cref="string"/> value representing the icon to display.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace CommunityToolkit.WinUI;
/// Custom <see cref="MarkupExtension"/> which can provide <see cref="FontIconSource"/> values.
/// </summary>
[MarkupExtensionReturnType(ReturnType = typeof(FontIconSource))]
public class FontIconSourceExtension : TextIconExtension
public partial class FontIconSourceExtension : TextIconExtension
{
/// <summary>
/// Gets or sets the <see cref="string"/> value representing the icon to display.
Expand Down
2 changes: 1 addition & 1 deletion components/Extensions/src/Markup/NullableBoolExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace CommunityToolkit.WinUI;
/// See https://wpdev.uservoice.com/forums/110705-universal-windows-platform/suggestions/17767198-nullable-dependency-properties.
/// </summary>
[MarkupExtensionReturnType(ReturnType = typeof(bool?))]
public class NullableBoolExtension : MarkupExtension
public partial class NullableBoolExtension : MarkupExtension
{
/// <summary>
/// Gets or sets a value indicating whether the value of the Boolean is true. Ignored if <see cref="IsNull"/> is true.
Expand Down
2 changes: 1 addition & 1 deletion components/Extensions/src/Markup/OnDeviceExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace CommunityToolkit.WinUI;
/// xmlns:ui="using:CommunityToolkit.WinUI.UI" />
/// </code>
/// </example>
public class OnDeviceExtension : MarkupExtension
public partial class OnDeviceExtension : MarkupExtension
{
/// <summary>
/// Gets the current device family.
Expand Down
2 changes: 1 addition & 1 deletion components/Extensions/src/Markup/SymbolIconExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace CommunityToolkit.WinUI;
/// Custom <see cref="MarkupExtension"/> which can provide symbol-based <see cref="FontIcon"/> values.
/// </summary>
[MarkupExtensionReturnType(ReturnType = typeof(FontIcon))]
public class SymbolIconExtension : TextIconExtension
public partial class SymbolIconExtension : TextIconExtension
{
/// <summary>
/// Gets or sets the <see cref="Symbol"/> value representing the icon to display.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace CommunityToolkit.WinUI;
/// Custom <see cref="MarkupExtension"/> which can provide symbol-baased <see cref="FontIconSource"/> values.
/// </summary>
[MarkupExtensionReturnType(ReturnType = typeof(FontIconSource))]
public class SymbolIconSourceExtension : TextIconExtension
public partial class SymbolIconSourceExtension : TextIconExtension
{
/// <summary>
/// Gets or sets the <see cref="Symbol"/> value representing the icon to display.
Expand Down
2 changes: 2 additions & 0 deletions components/Extensions/src/Shadows/AttachedShadowBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
using Microsoft.UI;
using Microsoft.UI.Composition;
using Microsoft.UI.Xaml.Hosting;
using Colors = Microsoft.UI.Colors;
#else
using Windows.Foundation.Metadata;
using Windows.UI.Composition;
using Windows.UI.Xaml.Hosting;
using Colors = Windows.UI.Colors;
#endif

namespace CommunityToolkit.WinUI;
Expand Down
2 changes: 1 addition & 1 deletion components/ImageCropper/src/ImageCropperThumb.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CommunityToolkit.WinUI.Controls;
/// <summary>
/// The <see cref="ImageCropperThumb"/> control is used for <see cref="ImageCropper"/>.
/// </summary>
public class ImageCropperThumb : Control
public partial class ImageCropperThumb : Control
{
private readonly TranslateTransform _layoutTransform = new();
internal const string NormalState = "Normal";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace CommunityToolkit.WinUI.Controls;
/// <summary>
/// Arranges child elements into a staggered grid pattern where items are added to the column that has used least amount of space.
/// </summary>
public class StaggeredLayout : VirtualizingLayout
public partial class StaggeredLayout : VirtualizingLayout
{
/// <summary>
/// Initializes a new instance of the <see cref="StaggeredLayout"/> class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CommunityToolkit.WinUI.Controls;
/// <summary>
/// An collection of <see cref="Case"/> to help with XAML interop.
/// </summary>
public class CaseCollection : DependencyObjectCollection
public partial class CaseCollection : DependencyObjectCollection
{
/// <summary>
/// Initializes a new instance of the <see cref="CaseCollection"/> class.
Expand Down
2 changes: 1 addition & 1 deletion components/Primitives/src/WrapLayout/WrapLayout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace CommunityToolkit.WinUI.Controls;
/// When <see cref="Orientation"/> is set to Orientation.Horizontal, element are arranged in rows until the available width is reached and then to a new row.
/// When <see cref="Orientation"/> is set to Orientation.Vertical, element are arranged in columns until the available height is reached.
/// </summary>
public class WrapLayout : VirtualizingLayout
public partial class WrapLayout : VirtualizingLayout
{
/// <summary>
/// Gets or sets a uniform Horizontal distance (in pixels) between items when <see cref="Orientation"/> is set to Horizontal,
Expand Down
2 changes: 1 addition & 1 deletion components/RadialGauge/src/RadialGaugeAutomationPeer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace CommunityToolkit.WinUI.Controls;
/// <summary>
/// Exposes <see cref="RadialGauge"/> to Microsoft UI Automation.
/// </summary>
public class RadialGaugeAutomationPeer :
public partial class RadialGaugeAutomationPeer :
RangeBaseAutomationPeer,
IRangeValueProvider
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// See the LICENSE file in the project root for more information.

namespace CommunityToolkit.WinUI.Controls;
internal class CornerRadiusConverter : IValueConverter
internal partial class CornerRadiusConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, string language)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CommunityToolkit.WinUI.Controls;
/// <summary>
/// AutomationPeer for SettingsCard
/// </summary>
public class SettingsCardAutomationPeer : FrameworkElementAutomationPeer
public partial class SettingsCardAutomationPeer : FrameworkElementAutomationPeer
{
/// <summary>
/// Initializes a new instance of the <see cref="SettingsCard"/> class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace CommunityToolkit.WinUI.Controls;
/// <summary>
/// AutomationPeer for SettingsExpander
/// </summary>
public class SettingsExpanderAutomationPeer : FrameworkElementAutomationPeer
public partial class SettingsExpanderAutomationPeer : FrameworkElementAutomationPeer
{
/// <summary>
/// Initializes a new instance of the <see cref="SettingsExpander"/> class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CommunityToolkit.WinUI.Controls;
/// <summary>
/// <see cref="StyleSelector"/> used by <see cref="SettingsExpander"/> to choose the proper <see cref="SettingsCard"/> container style (clickable or not).
/// </summary>
public class SettingsExpanderItemStyleSelector : StyleSelector
public partial class SettingsExpanderItemStyleSelector : StyleSelector
{
/// <summary>
/// Gets or sets the default <see cref="Style"/>.
Expand Down
2 changes: 1 addition & 1 deletion components/Sizers/src/SizerAutomationPeer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CommunityToolkit.WinUI.Controls.Automation.Peers;
/// <summary>
/// Defines a framework element automation peer for the <see cref="SizerBase"/> controls.
/// </summary>
public class SizerAutomationPeer : FrameworkElementAutomationPeer
public partial class SizerAutomationPeer : FrameworkElementAutomationPeer
{
/// <summary>
/// Initializes a new instance of the <see cref="SizerAutomationPeer"/> class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CommunityToolkit.WinUI.Controls;
/// <summary>
/// <see cref="DataTemplateSelector"/> used by <see cref="TabbedCommandBar"/> for determining the style of normal vs. contextual <see cref="TabbedCommandBarItem"/>s.
/// </summary>
public class TabbedCommandBarItemTemplateSelector : DataTemplateSelector
public partial class TabbedCommandBarItemTemplateSelector : DataTemplateSelector
{
/// <summary>
/// Gets or sets the <see cref="Style"/> of a normal <see cref="TabbedCommandBarItem"/>.
Expand Down
Loading