~wirc-dev/wchat/devel

« back to all changes in this revision

Viewing changes to Ircsil/Controls/ShadowBorderDecorator.cs

  • Committer: Alex Regueiro
  • Date: 2010-05-06 14:12:26 UTC
  • Revision ID: alexreg@gmail.com-20100506141226-y6q5rdb1kk3cuqug
dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
 
73
73
        protected override void OnRender(DrawingContext drawingContext)
74
74
        {
 
75
            if (this.Margin == WindowsUtilities.ZeroThickness)
 
76
                return;
 
77
 
75
78
            // Draw background.
76
79
            var backgroundRect = new Rect(this.Margin.Left, this.Margin.Top, this.ActualWidth - this.Margin.Left - this.Margin.Right,
77
80
                this.ActualHeight - this.Margin.Top - this.Margin.Bottom);