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

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

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

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