Files
29WxOrder/29WxOrderWpf/BaseWindows/BaseWindow.cs
T
2026-06-15 20:48:52 +08:00

25 lines
716 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Interop;
using System.Windows.Media.Imaging;
using System.Windows.Shell;
namespace _29WxOrderWpf.BaseWindows
{
public class BaseWindow : Window
{
public BaseWindow()
{
this.Icon = new BitmapImage(new Uri("pack://application:,,,/Resources/29wx.ico"));
this.WindowStartupLocation = WindowStartupLocation.CenterScreen;
WindowChrome.SetWindowChrome(this, new WindowChrome() { CaptionHeight = 8, ResizeBorderThickness = new Thickness(4), });
this.DataContext = this;
}
}
}