public Direction() { InitializeComponent(); BindingContext = new SampleViewModel() { Value = 80 }; directionPicker.SelectedIndexChanged += directionPicker_SelectedIndexChanged; }
public CustomAnimation() { InitializeComponent(); model = new SampleViewModel() { Value = 60, ShowText = GaugeShowText.None, ShowRanges = false }; BindingContext = model; radialGauge.Pointer.Thickness = 0.5; linearGauge.Pointer.Thickness = 0.5; }
public UsingRanges() { InitializeComponent(); BindingContext = new SampleViewModel() { Value = 25 }; }
public DisplayingValues() { InitializeComponent(); BindingContext = new SampleViewModel() { Max = 1, Value = .25, Step = .01, Format = "P0", ShowRanges = false }; }
public GettingStarted() { InitializeComponent(); BindingContext = new SampleViewModel() { Value = 25, ShowText = GaugeShowText.None }; ValueLabel.Text = ValueStepper.Value.ToString("N0"); ValueStepper.ValueChanged += ValueStepper_ValueChanged; }
public Direction() { InitializeComponent(); BindingContext = new SampleViewModel() { Value = 80 }; directionPicker.SelectedIndexChanged += directionPicker_SelectedIndexChanged; }
public AutomaticScaling() { InitializeComponent(); BindingContext = new SampleViewModel() { Max = 200, Value = 60, ShowText = GaugeShowText.All }; StartAngleStepper.ValueChanged += OnStartAngleChanged; SweepAngleStepper.ValueChanged += OnSweepAngleChanged; StartAngleLabel.Text = StartAngleStepper.Value.ToString("N0"); SweepAngleLabel.Text = SweepAngleStepper.Value.ToString("N0"); Gauge.UpdateAnimation.Duration = _stepDuration; }
public BulletGraph() { InitializeComponent(); BindingContext = new SampleViewModel() { Value = 72, ShowText = GaugeShowText.All }; BadLabel.Text = BadStepper.Value.ToString("N0"); BadStepper.ValueChanged += BadStepper_ValueChanged; GoodLabel.Text = GoodStepper.Value.ToString("N0"); GoodStepper.ValueChanged += GoodStepper_ValueChanged; TargetLabel.Text = TargetStepper.Value.ToString("N0"); TargetStepper.ValueChanged += TargetStepper_ValueChanged; }
public GettingStarted() { InitializeComponent(); BindingContext = new SampleViewModel() { Value = 25, ShowText = GaugeShowText.None }; ValueLabel.Text = ValueStepper.Value.ToString("N0"); ValueStepper.ValueChanged += ValueStepper_ValueChanged; }
public CustomAnimation() { InitializeComponent(); model = new SampleViewModel() { Value = 60, ShowText = GaugeShowText.None, ShowRanges = false }; BindingContext = model; radialGauge.Pointer.Thickness = 0.5; linearGauge.Pointer.Thickness = 0.5; }
public UsingRanges() { InitializeComponent(); Title = AppResources.UsingRangesTitle; BindingContext = new SampleViewModel() { Value = 25 }; linearGauge.Pointer.Thickness = 0.5; radialGauge.Pointer.Thickness = 0.5; }
public BulletGraph() { InitializeComponent(); BindingContext = new SampleViewModel() { Value = 72, ShowText = GaugeShowText.All }; BadLabel.Text = BadStepper.Value.ToString("N0"); BadStepper.ValueChanged += BadStepper_ValueChanged; GoodLabel.Text = GoodStepper.Value.ToString("N0"); GoodStepper.ValueChanged += GoodStepper_ValueChanged; TargetLabel.Text = TargetStepper.Value.ToString("N0"); TargetStepper.ValueChanged += TargetStepper_ValueChanged; }
public AutomaticScaling() { InitializeComponent(); BindingContext = new SampleViewModel() { Max = 200, Value = 60, ShowText = GaugeShowText.All }; StartAngleStepper.ValueChanged += OnStartAngleChanged; SweepAngleStepper.ValueChanged += OnSweepAngleChanged; StartAngleLabel.Text = StartAngleStepper.Value.ToString("N0"); SweepAngleLabel.Text = SweepAngleStepper.Value.ToString("N0"); Gauge.UpdateAnimation.Duration = _stepDuration; }
public Snapshot() { InitializeComponent(); Title = AppResources.ExportImageTitle; BindingContext = new SampleViewModel() { Value = 25, ShowText = GaugeShowText.All }; snapshotFrameBorder.IsVisible = false; var tapGestureRecognizer = new TapGestureRecognizer(); tapGestureRecognizer.Tapped += (s, e) => { snapshotFrameBorder.IsVisible = false; }; snapshotFrameBorder.GestureRecognizers.Add(tapGestureRecognizer); gauge.UpdateAnimation.Duration = _stepDuration; }
public UsingRanges() { InitializeComponent(); BindingContext = new SampleViewModel() { Value = 25 }; }
public DisplayingValues() { InitializeComponent(); BindingContext = new SampleViewModel() { Max = 1, Value = .25, Step = .01, Format = "P0", ShowRanges = false }; }