//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))); }
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; }
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) }
private void Initialize() { _control = new OutputMeterControl(); }