Comments (4)
Hi @ExLuzZziVo
Thank you for posting this
I think for now you should be able to overcome this by using a custom SelectedItemTemplate
Here is the original:
Happy coding and a happy new year
Tim
from timswpfcontrols.
I have found a solution. In GetSelectedItemsText method of MultiSelectionComboBox.cs I have used this code and it works:
IEnumerable<object> values;
if (ReadLocalValue(DisplayMemberPathProperty) != DependencyProperty.UnsetValue && !string.IsNullOrEmpty(DisplayMemberPath))
{
values = ((IEnumerable<object>)SelectedItems)?.Select(o => BindingHelper.Eval(o, DisplayMemberPath ?? string.Empty));
}
else
{
values = (IEnumerable<object>)SelectedItems;
}
if (values != null && ReadLocalValue(ItemStringFormatProperty) != DependencyProperty.UnsetValue &&
!string.IsNullOrEmpty(ItemStringFormat))
{
values = values.Select(o => string.Format(ItemStringFormat, o));
}
Happy holidays!
from timswpfcontrols.
@ExLuzZziVo thank you for providing your solution. I think I found an even better way, but it will not be implemented here. It will be available in MahApps soon (no due date right now).
Happy new year and happy coding
Tim
from timswpfcontrols.
@timunie Thank you. I will close the issue
from timswpfcontrols.
Related Issues (4)
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 timswpfcontrols.