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

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

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

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