Esempio n. 1
0
        //public SessionsOutputMeterView(IntPtr handle) : base

        private void Initialize()
        {
            //WantsLayer = true;
            _control = new OutputMeterControl();    
            _control.OnInvalidateVisual += () => InvokeOnMainThread(() => SetNeedsDisplayInRect(Bounds));
            _control.OnInvalidateVisualInRect += (rect) => InvokeOnMainThread(() => SetNeedsDisplayInRect(GenericControlHelper.ToRect(rect)));
        }
Esempio n. 2
0
        private void Initialize()
        {
			_control = new OutputMeterControl();
			_control.FontFace = "HelveticaNeue-CondensedBold";
			_control.OnInvalidateVisual += () => InvokeOnMainThread(SetNeedsDisplay);
			_control.OnInvalidateVisualInRect += (rect) => InvokeOnMainThread(() => SetNeedsDisplayInRect(GenericControlHelper.ToRect(rect)));
            BackgroundColor = UIColor.Black;
        }
Esempio n. 3
0
        private void Initialize()
        {
            _control = new OutputMeterControl();
            _control.OnInvalidateVisual += () => Post(Invalidate);
            _control.OnInvalidateVisualInRect += (rect) => Post(() => Invalidate(GenericControlHelper.ToRect(rect)));
            _control.FontSize = 12;

            if (!IsInEditMode)
                SetLayerType(LayerType.Hardware, null); // Use GPU instead of CPU (except in IDE such as Eclipse)
        }
Esempio n. 4
0
 private void Initialize()
 {
     _control = new OutputMeterControl();
 }