Frame completed

This commit is contained in:
2026-01-16 05:31:21 +00:00
parent 538d4bad65
commit 1b1619de06
2 changed files with 7 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Microsoft.Maui.Graphics;
using SkiaSharp;
namespace Microsoft.Maui.Platform;
@@ -8,16 +9,17 @@ namespace Microsoft.Maui.Platform;
/// <summary>
/// Frame control - a Border with shadow enabled by default.
/// Mimics the MAUI Frame control appearance.
/// Implements MAUI IFrame interface patterns.
/// </summary>
public class SkiaFrame : SkiaBorder
{
public SkiaFrame()
{
HasShadow = true;
CornerRadius = 4f;
SetPadding(10f);
CornerRadius = 4.0;
SetPadding(10.0);
BackgroundColor = SKColors.White;
Stroke = SKColors.Transparent;
StrokeThickness = 0f;
Stroke = Colors.Transparent;
StrokeThickness = 0.0;
}
}