예제 #1
0
파일: Window.cs 프로젝트: yonglehou/Photon
 /// <summary>
 /// When overriden in a class, renders the window in the specified <see cref="Photon.DrawingContext"/>
 /// </summary>
 /// <param name="drawingContext">The <see cref="Photon.DrawingContext"/> in which to render the window</param>
 protected override void OnRender(DrawingContext drawingContext)
 {
     if (this.Background != null)
     {
         drawingContext.DrawRectangle(new Rectangle(0, 0, this.Hwnd.Width, this.Hwnd.Height), Thickness.Empty, this.Background, null);
     }
     if (this.Child != null)
     {
         this.Child.Render(this.DrawingContext);
     }
 }