CustomizedTitleBar 1.0.10
dotnet add package CustomizedTitleBar --version 1.0.10
NuGet\Install-Package CustomizedTitleBar -Version 1.0.10
<PackageReference Include="CustomizedTitleBar" Version="1.0.10" />
paket add CustomizedTitleBar --version 1.0.10
#r "nuget: CustomizedTitleBar, 1.0.10"
// Install CustomizedTitleBar as a Cake Addin #addin nuget:?package=CustomizedTitleBar&version=1.0.10 // Install CustomizedTitleBar as a Cake Tool #tool nuget:?package=CustomizedTitleBar&version=1.0.10
Getting tired of finding a solution to customize your title bar? No idea about how to set he background color of the titlebar? well you gotta try this UserControl!
well first you gotta import this nuget into your project, and then you gotta give your window a name, which will be used in later process , like this piece of code:
<Window x:Class="MainWindow"
x:Name="ThisWindow"
...
>
and then set this UserControl at the top of your Main Grid, you can also edit its several features by setting just like this:
<customizedTitleBar:CustomizedTitileBar_UserControl Margin="0,0,0,-1"
HostWindow="{Binding ElementName = ThisWindow}"
Background="#FF24292E"
Foreground="White"
BorderThickness="1"
BorderBrush="Black"
/>
DO remember using "Binding" to bind the name of your window, "ThisWindow" in this case, to the "HostWindow" property by useing the "ElementName" feature.
You are good to go!
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0-windows7.0 is compatible. net7.0-windows was computed. net8.0-windows was computed. |
-
net6.0-windows7.0
- System.Drawing.Common (>= 8.0.0-rc.2.23479.14)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.