Skip to content

Commit

Permalink
Updated to WinAppSdk 1.6, fixed AoT annotations (#457)
Browse files Browse the repository at this point in the history
* Fixing CSWinRT1028 warnings, adding partials for AoT.

* Suppress internally generated error CsWinRT1028, add notes

* Updated tooling pointer

* Bump tooling to latest wasdk/1.6

* Fixing FontWeight and FontStyle namespaces

* Update tooling

* Update tooling

* Fixed bad property declaration

* Update Microsoft.WindowsAppSDK to 1.6.240807006-preview1, remove CsWinRT1028 suppression.

* Update WindowsSdkPackageVersion for Wasdk 1.6 preview1

* Update transient WebView2 reference to 1.0.2730-prerelease

* Fixed CsWinRT1028, marked partial for AoT

* Fixed CsWinRT1028, marked partial for AoT

* Revert WindowsSdkPackageVersion to 10.0.22621.37-preview for WindowsAppSDK 1.6 Preview1

* Update tooling with latest CsWinRT1028 fixes

* Update tooling pointer

* Update tooling pointer

* Remove clean task to resolve #457 (comment)

* Implement ColorHelper.ToDisplayName on WinUI 3

* Handle missing ColorHelper.ToDisplayName implementation on Uno. See unoplatform/uno#18004.

* Bump tooling to latest main
  • Loading branch information
Arlodotexe authored Aug 24, 2024
1 parent 4b6c77a commit 4e7e574
Show file tree
Hide file tree
Showing 63 changed files with 83 additions and 70 deletions.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"omnisharp.defaultLaunchSolution": "CommunityToolkit.AllComponents.sln",
"omnisharp.disableMSBuildDiagnosticWarning": true,
"omnisharp.enableRoslynAnalyzers": true,
"omnisharp.useGlobalMono": "never",
Expand All @@ -8,5 +7,6 @@
"csharp.suppressDotnetRestoreNotification": true,
"csharp.semanticHighlighting.enabled": true,
"omnisharp.enableMsBuildLoadProjectsOnDemand": true,
"dotnet.completion.showCompletionItemsFromUnimportedNamespaces": true
"dotnet.completion.showCompletionItemsFromUnimportedNamespaces": true,
"dotnet.defaultSolution": "CommunityToolkit.AllComponents.sln"
}
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<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>
</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
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace CommunityToolkit.WinUI.Controls;
/// <summary>
/// Creates an accent color for a base color value.
/// </summary>
public class AccentColorConverter : IValueConverter
public partial class AccentColorConverter : IValueConverter
{
/// <summary>
/// The amount to change the Value channel for each accent color step.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace CommunityToolkit.WinUI.Controls;
/// <summary>
/// Converts a color to a hex string and vice versa.
/// </summary>
public class ColorToHexConverter : IValueConverter
public partial class ColorToHexConverter : IValueConverter
{
/// <inheritdoc/>
public object Convert(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace CommunityToolkit.WinUI.Controls;
/// <summary>
/// Gets a color, either black or white, depending on the brightness of the supplied color.
/// </summary>
public class ContrastBrushConverter : IValueConverter
public partial class ContrastBrushConverter : IValueConverter
{
/// <summary>
/// Gets or sets the alpha channel threshold below which a default color is used instead of black/white.
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
14 changes: 8 additions & 6 deletions components/Converters/src/ColorToDisplayNameConverter.cs
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 All @@ -33,12 +33,14 @@ public object Convert(
// Invalid color value provided
return DependencyProperty.UnsetValue;
}

#if !WINAPPSDK && !HAS_UNO
return Windows.UI.ColorHelper.ToDisplayName(color);
#else
// ToDisplayName not yet supported on WASDK. See https://github.com/microsoft/microsoft-ui-xaml/issues/8287
#if HAS_UNO
// ColorHelper.ToDisplayName not yet supported on Uno Platform.
// Track https://github.com/unoplatform/uno/issues/18004
return "Not supported";
#elif WINUI2
return Windows.UI.ColorHelper.ToDisplayName(color);
#elif WINUI3
return Microsoft.UI.ColorHelper.ToDisplayName(color);
#endif
}

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
15 changes: 12 additions & 3 deletions components/Extensions/src/Markup/Abstract/TextIconExtension.cs
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,20 @@ protected static FontFamily SymbolThemeFontFamily
/// <summary>
/// Gets or sets the thickness of the icon glyph.
/// </summary>
public FontWeight FontWeight { get; set; } = FontWeights.Normal;
#if WINUI3
public Windows.UI.Text.FontWeight FontWeight { get; set; } = Microsoft.UI.Text.FontWeights.Normal;
#elif WINUI2
public Windows.UI.Text.FontWeight FontWeight { get; set; } = Windows.UI.Text.FontWeights.Normal;
#endif

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

/// <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
2 changes: 1 addition & 1 deletion components/Media/src/Brushes/BackdropBlurBrush.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace CommunityToolkit.WinUI.Media;
/// <summary>
/// The <see cref="BackdropBlurBrush"/> is a <see cref="Brush"/> that blurs whatever is behind it in the application.
/// </summary>
public class BackdropBlurBrush : XamlCompositionEffectBrushBase
public partial class BackdropBlurBrush : XamlCompositionEffectBrushBase
{
/// <summary>
/// The <see cref="EffectSetter{T}"/> instance currently in use
Expand Down
2 changes: 1 addition & 1 deletion components/Media/src/Brushes/BackdropGammaTransferBrush.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace CommunityToolkit.WinUI.Media;
/// <summary>
/// A brush which alters the colors of whatever is behind it in the application by applying a per-channel gamma transfer function. See https://microsoft.github.io/Win2D/html/T_Microsoft_Graphics_Canvas_Effects_GammaTransferEffect.htm.
/// </summary>
public class BackdropGammaTransferBrush : XamlCompositionBrushBase
public partial class BackdropGammaTransferBrush : XamlCompositionBrushBase
{
/// <summary>
/// Gets or sets the amount of scale to apply to the alpha chennel.
Expand Down
2 changes: 1 addition & 1 deletion components/Media/src/Brushes/BackdropInvertBrush.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace CommunityToolkit.WinUI.Media;
/// <summary>
/// The <see cref="BackdropInvertBrush"/> is a <see cref="Brush"/> which inverts whatever is behind it in the application.
/// </summary>
public class BackdropInvertBrush : XamlCompositionEffectBrushBase
public partial class BackdropInvertBrush : XamlCompositionEffectBrushBase
{
/// <inheritdoc/>
protected override PipelineBuilder OnPipelineRequested()
Expand Down
Loading

0 comments on commit 4e7e574

Please sign in to comment.