ComboBox-Wpf 1.1.4

dotnet add package ComboBox-Wpf --version 1.1.4
                    
NuGet\Install-Package ComboBox-Wpf -Version 1.1.4
                    
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="ComboBox-Wpf" Version="1.1.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ComboBox-Wpf" Version="1.1.4" />
                    
Directory.Packages.props
<PackageReference Include="ComboBox-Wpf" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ComboBox-Wpf --version 1.1.4
                    
#r "nuget: ComboBox-Wpf, 1.1.4"
                    
#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.
#:package ComboBox-Wpf@1.1.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ComboBox-Wpf&version=1.1.4
                    
Install as a Cake Addin
#tool nuget:?package=ComboBox-Wpf&version=1.1.4
                    
Install as a Cake Tool

ComboBox-Wpf

A modern, customizable ComboBox control for WPF applications targeting .NET 8. This control provides a clean UI, custom scrollbars, flexible data binding, and easy styling, making it ideal for professional desktop applications.


Features

  • Modern UI: Customizable appearance with support for custom fonts and colors.
  • Data Binding: Supports ItemsSource, SelectedItem, SelectedIndex, and DisplayMemberPath for MVVM-friendly binding.
  • Custom Scrollbars: Integrates custom scrollbar styles for a polished look.
  • Popup Behavior: Dropdown popup closes automatically when clicking outside.
  • Keyboard & Mouse Support: Full support for keyboard navigation and mouse interaction.
  • Easy Theming: Change font, colors, and icons via XAML or code.
  • Search/Filter: Set ShowSearchBar to true via XAML or code to search or filter list.

Installation

Install via NuGet Package Manager:

Install-Package ComboBox-Wpf

Or via .NET CLI:

dotnet add package ComboBox-Wpf


Usage

  1. Add Namespace

In your XAML file:

xmlns:combobox="clr-namespace:ComboBox_Wpf"

  1. Add the Control

<combobox:ComboBoxView x:Name="cmbWithMember" SelectedItem="{Binding MySelectedItem, Mode=TwoWay}" ItemsSource="{Binding MyItems}" ShowSearchBar="true" DisplayMemberPath="ItemName" />


Example

new Item() { ItemCode = "1", ItemName = "Test Item", Price = 30, Quantity = 1, Discount = 0.05 }

Item is model or class and if you want to use list of (Item) it in the ComboBox, you need to set the DisplayMemberPath to the property you want to display. For example, if you want to display the ItemName, set DisplayMemberPath="ItemName".

var stringList = new ObservableCollection<string> { "Test 1", "Test 2", "Test 3", "Test 4" }; If you use simple collection like string, int etc. you don't need to set DisplayMemberPath.


Customization

  • Font:
    Use the FontFamily property. The included InterMedium font is available as a resource.
  • Colors:
    Set BackgroundColor and BorderBrushColor for the header and popup.
  • Scrollbars:
    Custom scrollbars are defined in CustomScrollBars.xaml. You can override these in your application resources.
  • Popup Behavior:
    The popup closes automatically when clicking outside, thanks to StaysOpen="False".

API

Property Type Description
PickerIcon ImageSource Set picker down icon as per choice.
ItemsSource IEnumerable The collection of items to display.
SelectedItem object The currently selected item.
SelectedIndex int The index of the selected item.
DisplayMemberPath string The property name to display for each item.
FontFamily FontFamily The font family for text.
FontSize double The font size for text.
BackgroundColor Brush The background color of the header and popup.
BorderBrushColor Brush The border color of the header and popup.
SelectionChanged event Raised when the selection changes.
ShowSearchBar bool Show textbox for search item from list.

Requirements

  • .NET 8
  • WPF Application

License

This project is licensed under the MIT License.


Support

Contributions, issues, and feature requests are welcome! Please open an issue or submit a pull request.


Attribution

Flaticon

Combo box icons created by rcherem - Flaticon


ComboBox-Wpf � The easy way to add a modern combobox to your WPF apps.

Product Compatible and additional computed target framework versions.
.NET net8.0-windows10.0.26100 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0-windows10.0.26100

    • No dependencies.

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.1.4 126 7/31/2025
1.1.3 448 7/24/2025
1.1.2 517 7/23/2025
1.1.1 145 6/5/2025
1.1.0 148 6/3/2025

Buf fxies.