I am using Template10. I am utilizing a ListView. The ViewModel needs to know the SelectedItems. The SelectedItems should be passed as a parameter with a converter. EventTriggerBehavior EventName="SelectionChanged" is tested working. The converter is tested working. DelegateCommand> SelectionChangedCommand is NOT working. DelegateCommand of anything is NOT working (no string, no int - no nothing). DelegateCommand SelectionChangedCommand is tested working. Only DelegateCommands without parameter are working when ListView -> EventTriggerBehavior -> InvokeCommandAction Any ideas?
DelegateCommand<object> is not beeing invoked
162 Views Asked by Marcus Runge At
1
There are 1 best solutions below
Related Questions in WINRT-XAML
- How to register event for TextBox end editing
- Bind control property from the inner control
- Cropping Image with Xamlcropcontrol for UI and WriteableBitmapEx
- WinRT control to render XAML UIElement
- Variable is assigned but its value is never used (C#)
- WinRT - Listview custom selection
- How to add custom user controls before the MainPage in Windows Store App
- ScaleTransform.ScaleY UIElement without keeping space reserved
- XAML Disabling Events on Child Elements when moving Parent
- Windows RT XAML Controls - GridWrap Column autosizing to window size
- How to get the page that the user redirected from
- Binding property of usercontrol to data
- ComboBox-> adding this little triangle on the right
- Refresh binding with converter bound to other property
- How to bind a textblock visibility to another textblock text property
Related Questions in TEMPLATE10
- Cannot set combobox selected item opening a view
- Unable to set ViewModel property when bound to UWP ComboBox
- Template 10: Hamburger Menu can not auto open after changing VisualStateDisplayMode
- Create shell with different control than hamburger menu
- Margin on all content pages in Template10 XAML
- Busy indicating modal dialog doesn't cover BottomAppBar
- UWP Template 10 and Service Dendency Injection (MVVM) not WPF
- UWP Toast Notifications - XML works, AdaptiveText does not (Windows 10, Visual Studio 2017)
- best approach to automatically load next/prevous page of scraped web page
- How is Navigation from ContentDialog to a different page in UWP which uses Template10 MVVM possible?
- UWP MVVM Template10: Access single instance of external API across application
- Custom collection does not work in Template10, but does work in blank project
- Show back button even if no pages are in back stack
- Hub binding not working in Template10
- Interaction.Behaviors does not work in SplitView?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I think I found the solution.
I changed the converter, so that it is returning a
List<string>instead ofIList<object>. It Looks like that theDelegateCommand<T>in the ViewModel did not match the<T>coming from the the converter/ListView althoughListView.SelectedItemsisIList<object>. Furthermore I changed the concept, now the Delete Buttons gets the list of selected items which saves some Code, Events and doubled lists.