maui-linux/Xamarin.Forms.Material.Tizen/MaterialProgressBarRenderer.cs

22 строки
650 B
C#
Исходник Обычный вид История

using Xamarin.Forms;
using Xamarin.Forms.Platform.Tizen;
using Xamarin.Forms.Material.Tizen;
using Tizen.NET.MaterialComponents;
using TForms = Xamarin.Forms.Platform.Tizen.Forms;
[assembly: ExportRenderer(typeof(ProgressBar), typeof(MaterialProgressBarRenderer), new[] { typeof(VisualMarker.MaterialVisual) })]
namespace Xamarin.Forms.Material.Tizen
{
public class MaterialProgressBarRenderer : ProgressBarRenderer
{
protected override void OnElementChanged(ElementChangedEventArgs<ProgressBar> e)
{
if (Control == null)
{
SetNativeControl(new MProgressIndicator(TForms.NativeParent));
}
base.OnElementChanged(e);
}
}
}