Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

ControlzEx

> 编程语言
Open source

Shared Controlz for WPF and ... more

1.1K stars0 likes0 views
WebsiteGitHub

About

Shared Controlz for WPF and ... more

Let's get started

  • A history of changes is maintained in the Changelog.
  • The roadmap is done by milestones.
  • Releases and Release Notes
  • Development requirements
    • .NET SDK 10.0.100 or later
    • An IDE that supports the required .NET SDK

TextBoxInputMaskBehavior

The TextBoxInputMaskBehavior can be used to show a mask inside a TextBox.

Note: It's only a mask and does not validate your text.

xml

    
        
    

    
        
    

The original TextBoxInputMaskBehavior was taken from from Blindmeis's Blog.

  • https://blindmeis.wordpress.com/2015/01/20/wpf-textbox-input-behavior/
  • https://blindmeis.wordpress.com/2010/06/01/wpf-masked-textbox-behavior/

KeyboardNavigationEx

The KeyboardNavigationEx is a helper class for a common focusing problem. The focus of an UI element itself isn't the problem. But if we use the common focusing methods, the control gets the focus, but it doesn't get the focus visual style.

The original KeyboardNavigation class handles the visual style only if the control gets the focus from a keyboard device or if the SystemParameters.KeyboardCues is true.

With KeyboardNavigationEx you can fix this in two simple ways.

In code behind:

csharp
public partial class MainWindow : Window
{
    public MainWindow()
    {
        InitializeComponent();
        this.Loaded += (s, e) => { KeyboardNavigationEx.Focus(this.TheElementWhichShouldGetTheFocus); };
    }
}

or in XAML:

xaml
Hey, I get the focus visual style on mouse click!

AutoMove ToolTip

An auto moving ToolTip. More Info.

xaml

    
        
            
                
                    
                        
                        
                    
                
            
        
    

GlowWindowBehavior

The GlowWindowBehavior adds a Glow around your window.
Starting with Windows 11 the behavior can be used to control the color of the native window border and automatically does so, when Windows 11 is detected.
This can be turned off by setting PreferDWMBorder to false.

WindowChromeBehavior

ControlzEx provides a custom chrome for WPF windows and some other deeper fixes for it.

What it does provide:

  • Draw anywhere inside the window (including the titlebar)
  • Supports every WindowStyle (None, SingleBorderWindow, ThreeDBorderWindow and ToolWindow)
  • Supports jitter free window resizes
  • Allows you to ignore the taskbar when the window is maximized
  • Provides an IsNCActive property
  • Mitigates a bug in Windows that causes newly shown windows to briefly be shown with a pure white background
  • Starting with Windows 11:
    • Allows you to control rounded corners (through CornerPreference)
    • Supports snap menu on window buttons (through attached properties like NonClientControlProperties.HitTestResult and NonClientControlProperties.ClickStrategy)

Most of the fixes and improvements are from MahApps.Metro and Fluent.Ribbon.

Concrete implementation of techniques described here:

Blog entry from Microsoft on custom Window chrome

It's a fork of the original Microsoft WPF Shell Integration Library. Current Microsoft's implementation can be found:

  • https://github.com/dotnet/wpf
  • http://referencesource.microsoft.com

PopupEx

Custom Popup that can be used in validation error templates or something else like in MaterialDesignInXamlToolkit or MahApps.Metro.

PopupEx provides some additional nice features:

  • repositioning if host-window size or location changed
  • repositioning if host-window gets maximized and vice versa
  • it's only topmost if the host-window is activated

TabControlEx

Custom TabControl that keeps the TabItem content in the VisualTree while unselecting them, so no re-create nightmare is done, after selecting the TabItem again. The visibility behavior can be set by ChildContentVisibility dependency property.

Usage:

xaml

    
        
    
    
        
    

PackIconBase

A base class to help drive a common method for creating icon packs in WPF.

To create a new icon pack follow these steps:

Define a key (typically an enum):

csharp
public enum PackIconKind
{
    Happy,
    Sad
}

Subclass PackIconBase, adding

  • Default style key
  • A factory providing Path data for each key
…

Provide a default style (typically in your Generic.xaml, e.g:

xaml

Your users should now have a simple way to use your icon pack in their applications:

xaml

Theming

ControlzEx provides a ThemeManager which helps you to provide Theming to your App.
For more information see this section.

Licence

The MIT License (MIT)

Copyright (c) since 2015 Jan Karger, Bastian Schmidt, James Willock

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#controlcontrolzexfluentribbonhacktoberfest

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言