拆分按钮样式
This commit is contained in:
1 parent
d03a1e1466
commit
167885814e
37 files changed
+1009
-219
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<local:BaseWindow xmlns:userctrols="clr-namespace:_29WxOrderWpf.UserControls" x:Class="_29WxOrderWpf.BaseWindows.BaseMsgWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:_29WxOrderWpf.BaseWindows"
|
||||
mc:Ignorable="d" Style="{StaticResource BaseNoneBorderWindowStyle}"
|
||||
Title="BaseMsgWindow" Height="450" Width="800">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="32"></RowDefinition>
|
||||
<RowDefinition Height="*"></RowDefinition>
|
||||
</Grid.RowDefinitions>
|
||||
<userctrols:WindowBoxes VerticalAlignment="Center" HorizontalAlignment="Right" Margin="4" MinBoxVisibility="Collapsed" MaxBoxVisibility="Collapsed"/>
|
||||
<Border Margin="2,0,2,2" Grid.Row="1" Background="White">
|
||||
</Border>
|
||||
</Grid>
|
||||
</local:BaseWindow>
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace _29WxOrderWpf.BaseWindows
|
||||
{
|
||||
/// <summary>
|
||||
/// BaseMsgWindow.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class BaseMsgWindow : BaseWindow
|
||||
{
|
||||
public BaseMsgWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.DataContext = this;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user