1 using System;
2 using System.Windows;
3
4 namespace FileExplorer
5 {
6 public nothrow ControlCreateParams& EmptyViewControlCreateParams(ControlCreateParams& controlCreateParams)
7 {
8 return controlCreateParams.SetWindowClassName("FileExplorer.EmptyView").SetWindowClassBackgroundColor(SystemColor.COLOR_WINDOW).
9 SetBackgroundColor(System.Windows.Color.White());
10 }
11
12 public class EmptyView : Control
13 {
14 public EmptyView(ControlCreateParams& createParams) : base(createParams)
15 {
16 }
17 protected override void OnPaint(PaintEventArgs& args)
18 {
19 args.graphics.Clear(BackgroundColor());
20 base->OnPaint(args);
21 }
22 }
23 }