зеркало из https://github.com/DeGsoft/maui-linux.git
24 строки
368 B
C#
24 строки
368 B
C#
using System;
|
|
using AppKit;
|
|
using CoreAnimation;
|
|
|
|
namespace Xamarin.Forms.Platform.MacOS
|
|
{
|
|
internal class FormsNSImageView : NSView
|
|
{
|
|
bool _isOpaque;
|
|
|
|
public FormsNSImageView()
|
|
{
|
|
Layer = new CALayer();
|
|
WantsLayer = true;
|
|
}
|
|
|
|
public void SetIsOpaque(bool isOpaque)
|
|
{
|
|
_isOpaque = isOpaque;
|
|
}
|
|
|
|
public override bool IsOpaque => _isOpaque;
|
|
}
|
|
} |