зеркало из https://github.com/DeGsoft/maui-linux.git
22 строки
650 B
C#
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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|