예제 #1
0
        protected override void OnRender(System.Windows.Media.DrawingContext drawingContext)
        {
            A10CDevice _A10Cdevice = Visual as A10CDevice;

            if (_A10Cdevice != null)
            {
                drawingContext.DrawRectangle(_bezel, null, _bezelRectangle);
            }
        }
예제 #2
0
        protected override void OnRefresh()
        {
            A10CDevice _A10Cdevice = Visual as A10CDevice;

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

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