Files
maui-linux/Views/SkiaFrame.cs

26 lines
671 B
C#
Raw Normal View History

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