Skip to content

Commit 2404be9

Browse files
Make field initialization static
Co-authored-by: Sergio Pedri <sergio0694@live.com>
1 parent 01c9fa3 commit 2404be9

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Microsoft.Toolkit.Uwp.UI/Shadows/AttachedShadowBase.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,7 @@ public abstract class AttachedShadowBase : DependencyObject, IAttachedShadow
2222
/// <summary>
2323
/// Gets a value indicating whether or not Composition's VisualSurface is supported.
2424
/// </summary>
25-
protected static readonly bool SupportsCompositionVisualSurface;
26-
27-
static AttachedShadowBase()
28-
{
29-
SupportsCompositionVisualSurface = ApiInformation.IsTypePresent(typeof(CompositionVisualSurface).FullName); // Note: This is 1903 (18362) min
30-
}
25+
protected static readonly bool SupportsCompositionVisualSurface = ApiInformation.IsTypePresent(typeof(CompositionVisualSurface).FullName);
3126

3227
/// <summary>
3328
/// The <see cref="DependencyProperty"/> for <see cref="BlurRadius"/>.

0 commit comments

Comments
 (0)