Ejemplo n.º 1
0
        public static void MapSeriesCount(ChartHandler handler, IChartView chart)
        {
            ViewHandler.CheckParameters(handler, chart);

            for (int i = 0; i < chart.SeriesCount; i++)
            {
                Random            rnd    = new Random(i);
                Native.LineSeries series = new Native.LineSeries();
                series.Data = new DataAdapter(new List <DataObject>()
                {
                    new DataObject(1, rnd.NextDouble()),
                    new DataObject(2, rnd.NextDouble()),
                    new DataObject(3, rnd.NextDouble()),
                    new DataObject(4, rnd.NextDouble()),
                    new DataObject(5, rnd.NextDouble()),
                });
                handler?.TypedNativeView?.AddSeries(series);
            }
        }
Ejemplo n.º 2
0
        public static void MapTextColor(LabelHandler handler, ILabel label)
        {
            ViewHandler.CheckParameters(handler, label);

            handler.TypedNativeView?.UpdateTextColor(label, DefaultTextColor);
        }
Ejemplo n.º 3
0
        public static void MapThumbColor(SliderHandler handler, ISlider slider)
        {
            ViewHandler.CheckParameters(handler, slider);

            handler.TypedNativeView?.UpdateThumbColor(slider, DefaultThumbColor);
        }
Ejemplo n.º 4
0
 public static void MapText(ButtonHandler handler, IButton button)
 {
     ViewHandler.CheckParameters(handler, button);
     handler.TypedNativeView?.UpdateText(button);
 }
Ejemplo n.º 5
0
        public static void MapValue(SliderHandler handler, ISlider slider)
        {
            ViewHandler.CheckParameters(handler, slider);

            handler.TypedNativeView?.UpdateValue(slider);
        }
Ejemplo n.º 6
0
        public static void MapMaximumTrackColor(SliderHandler handler, ISlider slider)
        {
            ViewHandler.CheckParameters(handler, slider);

            handler.TypedNativeView?.UpdateMaximumTrackColor(slider, DefaultMaxTrackColor);
        }
Ejemplo n.º 7
0
        public static void MapSeriesCount(ChartHandler handler, IChartView chart)
        {
            ViewHandler.CheckParameters(handler, chart);

            // TODO RR
        }
Ejemplo n.º 8
0
        public static void MapTextColor(ButtonHandler handler, IButton button)
        {
            ViewHandler.CheckParameters(handler, button);

            handler.TypedNativeView?.UpdateTextColor(button, ButtonTextColorDefaultNormal, ButtonTextColorDefaultHighlighted, ButtonTextColorDefaultDisabled);
        }
Ejemplo n.º 9
0
        public static void MapMinimumTrackColor(SliderHandler handler, ISlider slider)
        {
            ViewHandler.CheckParameters(handler, slider);

            handler.TypedNativeView?.UpdateMinimumTrackColor(slider, DefaultProgressBackgroundTintList, DefaultProgressBackgroundTintMode);
        }
Ejemplo n.º 10
0
 public static void MapThumbColor(SwitchHandler handler, ISwitch view)
 {
     ViewHandler.CheckParameters(handler, view);
     handler.TypedNativeView?.UpdateThumbColor(view, DefaultThumbColor);
 }
Ejemplo n.º 11
0
 public static void MapIsToggled(SwitchHandler handler, ISwitch view)
 {
     ViewHandler.CheckParameters(handler, view);
     handler.TypedNativeView?.UpdateIsToggled(view);
 }