Skip to content

Commit 4e7e574

Browse files
authored
Updated to WinAppSdk 1.6, fixed AoT annotations (#457)
* 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
1 parent 4b6c77a commit 4e7e574

File tree

63 files changed

+83
-70
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+83
-70
lines changed

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"omnisharp.defaultLaunchSolution": "CommunityToolkit.AllComponents.sln",
32
"omnisharp.disableMSBuildDiagnosticWarning": true,
43
"omnisharp.enableRoslynAnalyzers": true,
54
"omnisharp.useGlobalMono": "never",
@@ -8,5 +7,6 @@
87
"csharp.suppressDotnetRestoreNotification": true,
98
"csharp.semanticHighlighting.enabled": true,
109
"omnisharp.enableMsBuildLoadProjectsOnDemand": true,
11-
"dotnet.completion.showCompletionItemsFromUnimportedNamespaces": true
10+
"dotnet.completion.showCompletionItemsFromUnimportedNamespaces": true,
11+
"dotnet.defaultSolution": "CommunityToolkit.AllComponents.sln"
1212
}

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
2727
<NoWarn>$(NoWarn);Uno0001</NoWarn>
2828
<!-- TODO: Turn off sample pages needing samples for now, for initial commit -->
29-
<NoWarn>$(NoWarn);TKSMPL0014</NoWarn>
29+
<NoWarn>$(NoWarn);TKSMPL0014;</NoWarn>
3030
</PropertyGroup>
3131

3232
<Import Project="Windows.Toolkit.Common.props" />

components/Animations/src/Xaml/AnimationScope.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace CommunityToolkit.WinUI.Animations;
88
/// A container of <see cref="ITimeline"/> elements that can be used to conceptually group animations
99
/// together and to assign shared properties to be applied to all the contained items automatically.
1010
/// </summary>
11-
public sealed class AnimationScope : DependencyObjectCollection, ITimeline
11+
public sealed partial class AnimationScope : DependencyObjectCollection, ITimeline
1212
{
1313
/// <summary>
1414
/// Gets or sets the optional initial delay for the animation.

components/Animations/src/Xaml/AnimationSet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace CommunityToolkit.WinUI.Animations;
1717
/// A collection of animations that can be grouped together. This type represents a composite animation
1818
/// (such as <see cref="Storyboard"/>) that can be executed on a given element.
1919
/// </summary>
20-
public sealed class AnimationSet : DependencyObjectCollection
20+
public sealed partial class AnimationSet : DependencyObjectCollection
2121
{
2222
/// <summary>
2323
/// A conditional weak table storing <see cref="CancellationTokenSource"/> instances associated with animations

components/Animations/src/Xaml/ImplicitAnimationSet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace CommunityToolkit.WinUI.Animations;
3636
/// one <see cref="ImplicitAnimationSet"/> to another, and doing so will add unnecessary runtime overhead over time. If you want to apply the same animations
3737
/// to multiple elements, simply create another <see cref="ImplicitAnimationSet"/> instance and another set of animations with the same properties within it.
3838
/// </remarks>
39-
public sealed class ImplicitAnimationSet : DependencyObjectCollection
39+
public sealed partial class ImplicitAnimationSet : DependencyObjectCollection
4040
{
4141
/// <summary>
4242
/// Raised whenever any configuration change occurrs within the current <see cref="ImplicitAnimationSet"/> instance.

components/Collections/src/AdvancedCollectionView/VectorChangedEventArgs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace CommunityToolkit.WinUI.Collections;
77
/// <summary>
88
/// Vector changed EventArgs
99
/// </summary>
10-
internal class VectorChangedEventArgs : IVectorChangedEventArgs
10+
internal partial class VectorChangedEventArgs : IVectorChangedEventArgs
1111
{
1212
/// <summary>
1313
/// Initializes a new instance of the <see cref="VectorChangedEventArgs"/> class.

components/ColorPicker/src/Converters/AccentColorConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace CommunityToolkit.WinUI.Controls;
1111
/// <summary>
1212
/// Creates an accent color for a base color value.
1313
/// </summary>
14-
public class AccentColorConverter : IValueConverter
14+
public partial class AccentColorConverter : IValueConverter
1515
{
1616
/// <summary>
1717
/// The amount to change the Value channel for each accent color step.

components/ColorPicker/src/Converters/ColorToHexConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace CommunityToolkit.WinUI.Controls;
1010
/// <summary>
1111
/// Converts a color to a hex string and vice versa.
1212
/// </summary>
13-
public class ColorToHexConverter : IValueConverter
13+
public partial class ColorToHexConverter : IValueConverter
1414
{
1515
/// <inheritdoc/>
1616
public object Convert(

components/ColorPicker/src/Converters/ContrastBrushConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace CommunityToolkit.WinUI.Controls;
1515
/// <summary>
1616
/// Gets a color, either black or white, depending on the brightness of the supplied color.
1717
/// </summary>
18-
public class ContrastBrushConverter : IValueConverter
18+
public partial class ContrastBrushConverter : IValueConverter
1919
{
2020
/// <summary>
2121
/// Gets or sets the alpha channel threshold below which a default color is used instead of black/white.

components/Converters/src/BoolNegationConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace CommunityToolkit.WinUI.Converters;
77
/// <summary>
88
/// Value converter that applies NOT operator to a <see cref="bool"/> value.
99
/// </summary>
10-
public class BoolNegationConverter : IValueConverter
10+
public partial class BoolNegationConverter : IValueConverter
1111
{
1212
/// <summary>
1313
/// Convert a boolean value to its negation.

components/Converters/src/BoolToVisibilityConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace CommunityToolkit.WinUI.Converters;
77
/// <summary>
88
/// This class converts a boolean value into a Visibility enumeration.
99
/// </summary>
10-
public class BoolToVisibilityConverter : BoolToObjectConverter
10+
public partial class BoolToVisibilityConverter : BoolToObjectConverter
1111
{
1212
/// <summary>
1313
/// Initializes a new instance of the <see cref="BoolToVisibilityConverter"/> class.

components/Converters/src/CollectionVisibilityConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace CommunityToolkit.WinUI.Converters;
77
/// <summary>
88
/// This class converts a collection size to visibility.
99
/// </summary>
10-
public class CollectionVisibilityConverter : EmptyCollectionToObjectConverter
10+
public partial class CollectionVisibilityConverter : EmptyCollectionToObjectConverter
1111
{
1212
/// <summary>
1313
/// Initializes a new instance of the <see cref="CollectionVisibilityConverter"/> class.

components/Converters/src/ColorToDisplayNameConverter.cs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace CommunityToolkit.WinUI.Converters;
99
/// <summary>
1010
/// Gets the approximated display name for the color.
1111
/// </summary>
12-
public class ColorToDisplayNameConverter : IValueConverter
12+
public partial class ColorToDisplayNameConverter : IValueConverter
1313
{
1414
/// <inheritdoc/>
1515
public object Convert(
@@ -33,12 +33,14 @@ public object Convert(
3333
// Invalid color value provided
3434
return DependencyProperty.UnsetValue;
3535
}
36-
37-
#if !WINAPPSDK && !HAS_UNO
38-
return Windows.UI.ColorHelper.ToDisplayName(color);
39-
#else
40-
// ToDisplayName not yet supported on WASDK. See https://github.com/microsoft/microsoft-ui-xaml/issues/8287
36+
#if HAS_UNO
37+
// ColorHelper.ToDisplayName not yet supported on Uno Platform.
38+
// Track https://github.com/unoplatform/uno/issues/18004
4139
return "Not supported";
40+
#elif WINUI2
41+
return Windows.UI.ColorHelper.ToDisplayName(color);
42+
#elif WINUI3
43+
return Microsoft.UI.ColorHelper.ToDisplayName(color);
4244
#endif
4345
}
4446

components/Converters/src/DoubleToVisibilityConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace CommunityToolkit.WinUI.Converters;
77
/// <summary>
88
/// This class converts a double value into a Visibility enumeration.
99
/// </summary>
10-
public class DoubleToVisibilityConverter : DoubleToObjectConverter
10+
public partial class DoubleToVisibilityConverter : DoubleToObjectConverter
1111
{
1212
/// <summary>
1313
/// Initializes a new instance of the <see cref="DoubleToVisibilityConverter"/> class.

components/Converters/src/EmptyCollectionToObjectConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace CommunityToolkit.WinUI.Converters;
1010
/// This class converts a collection size into an other object.
1111
/// Can be used to convert to bind a visibility, a color or an image to the size of the collection.
1212
/// </summary>
13-
public class EmptyCollectionToObjectConverter : EmptyObjectToObjectConverter
13+
public partial class EmptyCollectionToObjectConverter : EmptyObjectToObjectConverter
1414
{
1515
/// <summary>
1616
/// Checks collection for emptiness.

components/Converters/src/EmptyStringToObjectConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace CommunityToolkit.WinUI.Converters;
88
/// This class converts a string value into a an object (if the value is null or empty returns the false value).
99
/// Can be used to bind a visibility, a color or an image to the value of a string.
1010
/// </summary>
11-
public class EmptyStringToObjectConverter : EmptyObjectToObjectConverter
11+
public partial class EmptyStringToObjectConverter : EmptyObjectToObjectConverter
1212
{
1313
/// <summary>
1414
/// Checks string for emptiness.

components/Converters/src/FileSizeToFriendlyStringConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace CommunityToolkit.WinUI.Converters;
77
/// <summary>
88
/// Converts a file size in bytes to a more human-readable friendly format using <see cref="CommunityToolkit.Common.Converters.ToFileSizeString(long)"/>
99
/// </summary>
10-
public class FileSizeToFriendlyStringConverter : IValueConverter
10+
public partial class FileSizeToFriendlyStringConverter : IValueConverter
1111
{
1212
/// <inheritdoc/>
1313
public object Convert(object value, Type targetType, object parameter, string language)

components/Converters/src/IFormattableToStringConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace CommunityToolkit.WinUI.Converters;
88
/// Value converter that converts an <see cref="IFormattable"/> to a formatted <see cref="string"/>.
99
/// The string format needs to be passed as the converter parameter.
1010
/// </summary>
11-
public class IFormattableToStringConverter : IValueConverter
11+
public partial class IFormattableToStringConverter : IValueConverter
1212
{
1313
// TODO: Provide property to set a IFormatProvider for the 2nd parameter to ToString
1414

components/Converters/src/ResourceNameToResourceStringConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace CommunityToolkit.WinUI.Converters;
1515
/// <summary>
1616
/// Value converter that look up for the source string in the App Resources strings and returns its value, if found.
1717
/// </summary>
18-
public sealed class ResourceNameToResourceStringConverter : IValueConverter
18+
public sealed partial class ResourceNameToResourceStringConverter : IValueConverter
1919
{
2020
#if WINAPPSDK && !HAS_UNO
2121
private readonly ResourceManager _resourceManager = new ResourceManager();

components/Converters/src/StringFormatConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace CommunityToolkit.WinUI.Converters;
99
/// <summary>
1010
/// This class provides a binding converter to display formatted strings
1111
/// </summary>
12-
public class StringFormatConverter : IValueConverter
12+
public partial class StringFormatConverter : IValueConverter
1313
{
1414
/// <summary>
1515
/// Return the formatted string version of the source object.

components/Converters/src/StringVisibilityConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace CommunityToolkit.WinUI.Converters;
77
/// <summary>
88
/// This class converts a string value into a Visibility value (if the value is null or empty returns a collapsed value).
99
/// </summary>
10-
public class StringVisibilityConverter : EmptyStringToObjectConverter
10+
public partial class StringVisibilityConverter : EmptyStringToObjectConverter
1111
{
1212
/// <summary>
1313
/// Initializes a new instance of the <see cref="StringVisibilityConverter"/> class.

components/Converters/src/TaskResultConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace CommunityToolkit.WinUI.Converters;
1717
#if NET8_0_OR_GREATER
1818
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("This method uses reflection to try to access the Task<T>.Result property of the input Task instance.")]
1919
#endif
20-
public sealed class TaskResultConverter : IValueConverter
20+
public sealed partial class TaskResultConverter : IValueConverter
2121
{
2222
/// <inheritdoc/>
2323
public object Convert(object value, Type targetType, object parameter, string language)

components/Converters/src/VisibilityToBoolConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace CommunityToolkit.WinUI.Converters;
77
/// <summary>
88
/// This class converts a Visibility enumeration to a boolean value.
99
/// </summary>
10-
public class VisibilityToBoolConverter : IValueConverter
10+
public partial class VisibilityToBoolConverter : IValueConverter
1111
{
1212
/// <summary>
1313
/// Convert a <see cref="Visibility"/> value to boolean.

components/Extensions/src/Markup/Abstract/TextIconExtension.cs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
#if WINAPPSDK
66
using Microsoft.UI.Text;
7-
#endif
7+
#else
88
using Windows.UI.Text;
9+
#endif
910

1011
namespace CommunityToolkit.WinUI;
1112

@@ -33,12 +34,20 @@ protected static FontFamily SymbolThemeFontFamily
3334
/// <summary>
3435
/// Gets or sets the thickness of the icon glyph.
3536
/// </summary>
36-
public FontWeight FontWeight { get; set; } = FontWeights.Normal;
37+
#if WINUI3
38+
public Windows.UI.Text.FontWeight FontWeight { get; set; } = Microsoft.UI.Text.FontWeights.Normal;
39+
#elif WINUI2
40+
public Windows.UI.Text.FontWeight FontWeight { get; set; } = Windows.UI.Text.FontWeights.Normal;
41+
#endif
3742

3843
/// <summary>
3944
/// Gets or sets the font style for the icon glyph.
4045
/// </summary>
41-
public FontStyle FontStyle { get; set; } = FontStyle.Normal;
46+
#if WINUI3
47+
public Windows.UI.Text.FontStyle FontStyle { get; set; } = Windows.UI.Text.FontStyle.Normal;
48+
#elif WINUI2
49+
public Windows.UI.Text.FontStyle FontStyle { get; set; } = Windows.UI.Text.FontStyle.Normal;
50+
#endif
4251

4352
/// <summary>
4453
/// Gets or sets the foreground <see cref="Brush"/> for the icon.

components/Extensions/src/Markup/BitmapIconExtension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace CommunityToolkit.WinUI;
88
/// Custom <see cref="MarkupExtension"/> which can provide <see cref="BitmapIcon"/> values.
99
/// </summary>
1010
[MarkupExtensionReturnType(ReturnType = typeof(BitmapIcon))]
11-
public sealed class BitmapIconExtension : MarkupExtension
11+
public sealed partial class BitmapIconExtension : MarkupExtension
1212
{
1313
/// <summary>
1414
/// Gets or sets the <see cref="Uri"/> representing the image to display.

components/Extensions/src/Markup/BitmapIconSourceExtension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace CommunityToolkit.WinUI;
88
/// Custom <see cref="MarkupExtension"/> which can provide <see cref="BitmapIconSource"/> values.
99
/// </summary>
1010
[MarkupExtensionReturnType(ReturnType = typeof(BitmapIconSource))]
11-
public sealed class BitmapIconSourceExtension : MarkupExtension
11+
public sealed partial class BitmapIconSourceExtension : MarkupExtension
1212
{
1313
/// <summary>
1414
/// Gets or sets the <see cref="Uri"/> representing the image to display.

components/Extensions/src/Markup/EnumValuesExtension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace CommunityToolkit.WinUI;
1111
#if NET8_0_OR_GREATER
1212
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("It might not be possible to create an array of a user-defined enum type at runtime.")]
1313
#endif
14-
public sealed class EnumValuesExtension : MarkupExtension
14+
public sealed partial class EnumValuesExtension : MarkupExtension
1515
{
1616
/// <summary>
1717
/// Gets or sets the <see cref="global::System.Type"/> of the target <see langword="enum"/>

components/Extensions/src/Markup/FontIconExtension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace CommunityToolkit.WinUI;
88
/// Custom <see cref="MarkupExtension"/> which can provide <see cref="FontIcon"/> values.
99
/// </summary>
1010
[MarkupExtensionReturnType(ReturnType = typeof(FontIcon))]
11-
public class FontIconExtension : TextIconExtension
11+
public partial class FontIconExtension : TextIconExtension
1212
{
1313
/// <summary>
1414
/// Gets or sets the <see cref="string"/> value representing the icon to display.

components/Extensions/src/Markup/FontIconSourceExtension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace CommunityToolkit.WinUI;
88
/// Custom <see cref="MarkupExtension"/> which can provide <see cref="FontIconSource"/> values.
99
/// </summary>
1010
[MarkupExtensionReturnType(ReturnType = typeof(FontIconSource))]
11-
public class FontIconSourceExtension : TextIconExtension
11+
public partial class FontIconSourceExtension : TextIconExtension
1212
{
1313
/// <summary>
1414
/// Gets or sets the <see cref="string"/> value representing the icon to display.

components/Extensions/src/Markup/NullableBoolExtension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace CommunityToolkit.WinUI;
99
/// See https://wpdev.uservoice.com/forums/110705-universal-windows-platform/suggestions/17767198-nullable-dependency-properties.
1010
/// </summary>
1111
[MarkupExtensionReturnType(ReturnType = typeof(bool?))]
12-
public class NullableBoolExtension : MarkupExtension
12+
public partial class NullableBoolExtension : MarkupExtension
1313
{
1414
/// <summary>
1515
/// Gets or sets a value indicating whether the value of the Boolean is true. Ignored if <see cref="IsNull"/> is true.

components/Extensions/src/Markup/OnDeviceExtension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace CommunityToolkit.WinUI;
2020
/// xmlns:ui="using:CommunityToolkit.WinUI.UI" />
2121
/// </code>
2222
/// </example>
23-
public class OnDeviceExtension : MarkupExtension
23+
public partial class OnDeviceExtension : MarkupExtension
2424
{
2525
/// <summary>
2626
/// Gets the current device family.

components/Extensions/src/Markup/SymbolIconExtension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace CommunityToolkit.WinUI;
88
/// Custom <see cref="MarkupExtension"/> which can provide symbol-based <see cref="FontIcon"/> values.
99
/// </summary>
1010
[MarkupExtensionReturnType(ReturnType = typeof(FontIcon))]
11-
public class SymbolIconExtension : TextIconExtension
11+
public partial class SymbolIconExtension : TextIconExtension
1212
{
1313
/// <summary>
1414
/// Gets or sets the <see cref="Symbol"/> value representing the icon to display.

components/Extensions/src/Markup/SymbolIconSourceExtension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace CommunityToolkit.WinUI;
88
/// Custom <see cref="MarkupExtension"/> which can provide symbol-baased <see cref="FontIconSource"/> values.
99
/// </summary>
1010
[MarkupExtensionReturnType(ReturnType = typeof(FontIconSource))]
11-
public class SymbolIconSourceExtension : TextIconExtension
11+
public partial class SymbolIconSourceExtension : TextIconExtension
1212
{
1313
/// <summary>
1414
/// Gets or sets the <see cref="Symbol"/> value representing the icon to display.

components/Extensions/src/Shadows/AttachedShadowBase.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@
99
using Microsoft.UI;
1010
using Microsoft.UI.Composition;
1111
using Microsoft.UI.Xaml.Hosting;
12+
using Colors = Microsoft.UI.Colors;
1213
#else
1314
using Windows.Foundation.Metadata;
1415
using Windows.UI.Composition;
1516
using Windows.UI.Xaml.Hosting;
17+
using Colors = Windows.UI.Colors;
1618
#endif
1719

1820
namespace CommunityToolkit.WinUI;

components/ImageCropper/src/ImageCropperThumb.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace CommunityToolkit.WinUI.Controls;
77
/// <summary>
88
/// The <see cref="ImageCropperThumb"/> control is used for <see cref="ImageCropper"/>.
99
/// </summary>
10-
public class ImageCropperThumb : Control
10+
public partial class ImageCropperThumb : Control
1111
{
1212
private readonly TranslateTransform _layoutTransform = new();
1313
internal const string NormalState = "Normal";

components/Media/src/Brushes/BackdropBlurBrush.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace CommunityToolkit.WinUI.Media;
1717
/// <summary>
1818
/// The <see cref="BackdropBlurBrush"/> is a <see cref="Brush"/> that blurs whatever is behind it in the application.
1919
/// </summary>
20-
public class BackdropBlurBrush : XamlCompositionEffectBrushBase
20+
public partial class BackdropBlurBrush : XamlCompositionEffectBrushBase
2121
{
2222
/// <summary>
2323
/// The <see cref="EffectSetter{T}"/> instance currently in use

components/Media/src/Brushes/BackdropGammaTransferBrush.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace CommunityToolkit.WinUI.Media;
1515
/// <summary>
1616
/// 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.
1717
/// </summary>
18-
public class BackdropGammaTransferBrush : XamlCompositionBrushBase
18+
public partial class BackdropGammaTransferBrush : XamlCompositionBrushBase
1919
{
2020
/// <summary>
2121
/// Gets or sets the amount of scale to apply to the alpha chennel.

components/Media/src/Brushes/BackdropInvertBrush.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace CommunityToolkit.WinUI.Media;
1111
/// <summary>
1212
/// The <see cref="BackdropInvertBrush"/> is a <see cref="Brush"/> which inverts whatever is behind it in the application.
1313
/// </summary>
14-
public class BackdropInvertBrush : XamlCompositionEffectBrushBase
14+
public partial class BackdropInvertBrush : XamlCompositionEffectBrushBase
1515
{
1616
/// <inheritdoc/>
1717
protected override PipelineBuilder OnPipelineRequested()

0 commit comments

Comments
 (0)