Agrotutor.Core.Components.Views.SimpleStatsSingle.SimpleStatsSingle C# (CSharp) Method

SimpleStatsSingle() public method

public SimpleStatsSingle ( ) : Xamarin.Forms
return Xamarin.Forms
        public SimpleStatsSingle()
        {
            InitializeComponent();

            this.ImageMin.SetBinding(Image.SourceProperty, new Binding(nameof(MinImageSource), source: this));
            this.ImageAverage.SetBinding(Image.SourceProperty, new Binding(nameof(AverageImageSource), source: this));
            this.ImageMax.SetBinding(Image.SourceProperty, new Binding(nameof(MaxImageSource), source: this));

            this.lblMinValue.SetBinding(Label.TextProperty, new Binding(nameof(MinValue), source: this));
            this.lblAverageValue.SetBinding(Label.TextProperty, new Binding(nameof(AverageValue), source: this));
            this.lblMaxValue.SetBinding(Label.TextProperty, new Binding(nameof(MaxValue), source: this));

            this.lblMinUnit.SetBinding(Label.TextProperty, new Binding(nameof(Unit), source: this));
            this.lblAverageUnit.SetBinding(Label.TextProperty, new Binding(nameof(Unit), source: this));
            this.lblMaxUnit.SetBinding(Label.TextProperty, new Binding(nameof(Unit), source: this));

            this.lblMin.SetBinding(Label.TextProperty, new Binding(nameof(MinText), source: this));
            this.lblAverage.SetBinding(Label.TextProperty, new Binding(nameof(AverageText), source: this));
            this.lblMax.SetBinding(Label.TextProperty, new Binding(nameof(MaxText), source: this));
        }