DataFilter.PlatformShared 1.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package DataFilter.PlatformShared --version 1.1.0
                    
NuGet\Install-Package DataFilter.PlatformShared -Version 1.1.0
                    
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="DataFilter.PlatformShared" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DataFilter.PlatformShared" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="DataFilter.PlatformShared" />
                    
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 DataFilter.PlatformShared --version 1.1.0
                    
#r "nuget: DataFilter.PlatformShared, 1.1.0"
                    
#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 DataFilter.PlatformShared@1.1.0
                    
#: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=DataFilter.PlatformShared&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=DataFilter.PlatformShared&version=1.1.0
                    
Install as a Cake Tool

DataFilter.PlatformShared

Shared view-model logic for DataFilter UI specializations (WinForms, MAUI, WinUI 3, Uno/UWP XAML).

Localization

All popup UI stacks should source their user-facing strings (buttons, section headers, operator names, etc.) from DataFilter.Localization.LocalizationManager so language switching works at runtime.

Per-grid culture override

IFilterableDataGridViewModel exposes:

  • CultureInfo? CultureOverride: optional UI override culture used by integrations when showing popups.

FilterableDataGridViewModel provides constructors:

  • new FilterableDataGridViewModel(CultureInfo? cultureOverride)
  • new FilterableDataGridViewModel<T>(CultureInfo? cultureOverride)

Filter pipeline integration

IFilterableDataGridViewModel (implemented by FilterableDataGridViewModel and WPF’s CollectionViewFilterAdapter) includes:

  • Task ApplyFilterPipelineAsync(FilterPipeline pipeline) — compiles the pipeline, calls FilterContext.ReplaceDescriptors, resets page to 1, and refreshes data. Use this after loading a preset from JSON or editing the pipeline in your UI.
  • FilterPipeline CreatePipelineFromCurrentSnapshot() — builds a mutable FilterPipeline from the current filters via FilterPipelineInterop.FromLegacySnapshot(ExtractSnapshot()), suitable for displaying or serializing the active state.

Excel-style column filters continue to use ApplyColumnFilter / ClearColumnFilter (AddOrUpdateDescriptor under the hood). Mixing both approaches is possible but you should treat one path as the source of truth for a given screen, or sync explicitly.

FilterableDataGridViewModel and column popup sync

  • IFilterableDataGridViewModel.FilterDescriptorsChanged: Raised when the pipeline is applied/restored, when a column is cleared, and—on the local data path—when LocalDataSource reference changes after RefreshDataAsync (so column headers can refetch distinct values and LoadStateAsync into the popup).
  • RefreshDataAsync: Reconciles ExcelFilterDescriptor.State.SelectedValues against distincts from the current source, then applies filters. Assign a new LocalDataSource then call RefreshDataAsync so reconciliation and the event above run in order.
  • ColumnFilterViewModel: Applies ExcelFilterSelectionReconciler in InitializeAsync with dropSelectionsNotInDistinct: false to preserve selections not in the current narrow distinct list. LoadStateAsync restores list selection or, for custom filters, UpdateSelectionFromCustomFilter (including all stacked AdditionalCustomCriteria) so the popup matches ExcelFilterDescriptor. For persistence, the Excel-like state can also express OR-combined search intent (OrSearchPatterns, OrSelectedValues) to avoid materializing In(list) when reapplying presets on evolving data.
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos 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.

NuGet packages (11)

Showing the top 5 NuGet packages that depend on DataFilter.PlatformShared:

Package Downloads
DataFilter.Wpf

Package Description

DataFilter.Blazor.PopupHost

Package Description

DataFilter.WinUI3

Package Description

DataFilter.Maui

Package Description

DataFilter.WinForms

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.4 216 6/9/2026
1.1.3 194 6/8/2026
1.1.2 187 6/8/2026
1.1.1 179 6/5/2026
1.1.0 209 6/4/2026