Namsiz.WPF.Window 1.0.2

dotnet add package Namsiz.WPF.Window --version 1.0.2                
NuGet\Install-Package Namsiz.WPF.Window -Version 1.0.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Namsiz.WPF.Window" Version="1.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Namsiz.WPF.Window --version 1.0.2                
#r "nuget: Namsiz.WPF.Window, 1.0.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Namsiz.WPF.Window as a Cake Addin
#addin nuget:?package=Namsiz.WPF.Window&version=1.0.2

// Install Namsiz.WPF.Window as a Cake Tool
#tool nuget:?package=Namsiz.WPF.Window&version=1.0.2                

Namsiz.WPF.Window

用附加属性自定义窗口标题栏。

先添加资源 <ResourceDictionary Source="pack://application:,,,/Namsiz.WPF.Window;component/Control/WindowChrome.xaml"/>

static class WindowFieldAssist

  • DependencyProperty TitlePanelHeightProperty

    标题栏高度,类型:double,默认值:SystemParameters.WindowNonClientFrameThickness.Top

  • DependencyProperty IconStyleProperty

    窗口图标样式,类型:Style , 默认样式:NamsizWindowIcon

  • DependencyProperty TitleStyleProperty

    窗口标题样式,类型:Style,默认样式:NamsizWindowTitle

  • DependencyProperty MinimizeButtonStyleProperty

    最小化按钮样式,类型:Style,默认样式:NamsizWindowMinimizeButton

  • DependencyProperty RestoreButtonStyleProperty

    还原按钮样式,类型:Style,默认样式:NamsizWindowRestoreButton

  • DependencyProperty MaximizeButtonStyleProperty

    最大化按钮样式,类型:Style,默认样式:NamsizWindowMaximizeButton

  • DependencyProperty CloseButtonStyleProperty

    关闭按钮样式,类型:Style,默认样式:NamsizWindowCloseButton

  • DependencyProperty FunctionBarContentProperty;

    标题栏中间区域,是个 ContentPresenter,可以添加自定义的额外功能,类型:object,默认值:null

Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 157 9/25/2023

WPF窗口样式