Exemplo n.º 1
0
        protected override void OnRender(System.Windows.Media.DrawingContext drawingContext)
        {
            M2000CDevice _M2000CDevice = Visual as M2000CDevice;

            if (_M2000CDevice != null)
            {
                drawingContext.DrawRectangle(_bezel, null, _bezelRectangle);
            }
        }
Exemplo n.º 2
0
        protected override void OnRefresh()
        {
            M2000CDevice _M2000Cdevice = Visual as M2000CDevice;

            if (_M2000Cdevice != null)
            {
                _bezelRectangle = new Rect(0, 0, _M2000Cdevice.Width, _M2000Cdevice.Height);

                _bezel = CreateImageBrush(_M2000Cdevice.BezelImage);
            }
            else
            {
                _bezel = null;
            }
        }