Comments (1)
I found a way... but I'm not sure if it's the best solution. It's working with that code.
comboBox.AddHandler(FrameworkElement.LoadedEvent, new RoutedEventHandler((object sender, RoutedEventArgs e) =>
{
if(!(sender is FrameworkElement fe))
return;
var value = fe.GetValue(Themes.Generic.MultiSelectComboBox.ItemsSourceProperty);
var metadata = fe.GetBindingExpression(Themes.Generic.MultiSelectComboBox.ItemsSourceProperty)?.TargetProperty?.GetMetadata(fe);
if (metadata == null)
return;
if(metadata.CoerceValueCallback != null)
value = metadata.CoerceValueCallback.Invoke(fe, value);
metadata.PropertyChangedCallback?.Invoke(fe, new DependencyPropertyChangedEventArgs(Themes.Generic.MultiSelectComboBox.ItemsSourceProperty, value, value));
}));
from multiselect-combobox.
Related Issues (20)
- Argument null Exception HOT 2
- How to bind sdl / Multiselect-ComboBox in simple WPF - MVVM HOT 1
- Two binding mode is not working for SelectedItems HOT 2
- Component not initialized if datacontext set before HOT 1
- UpdateAutoCompleteFilterText uses ToString of the item HOT 1
- Dropdown button icon not showing up HOT 1
- Clicking outside the control with the dropdown open force takes focus back HOT 1
- You cannot enter edit mode if no item has ever been selected in that box before HOT 1
- When IsEditable and EnableFiltering are false the TextBox's caret and MultiSelectComboBox.SelectedItemsPanel.Readonly.Glyph.Template are visible HOT 1
- Restore .NET 4.7 compatibility? HOT 1
- Selecting all items results in a NullReferenceException HOT 1
- Target netcoreapp6
- Extending this to a Datagrid HOT 2
- .net6+Win10 comptiable HOT 3
- Can InputMethod be disabled? HOT 2
- Add a SelectedItem Property HOT 1
- Wrong bindings of SelectedItems HOT 1
- Ability to customize item container HOT 3
- Suggestion of Add a comparer HOT 5
- Alt+Up / Alt+Down for accessibility HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multiselect-combobox.