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
164 Views Asked by Marcus Runge At
1
There are 1 best solutions below
Related Questions in WINRT-XAML
- How can I get the screen reader to read controls that are not tab stops (e.g. static labels)?
- WinUI3 ListView Selected Items
- Get child element from a Window Handle in WinUI3
- How to create a ListBox item control and bind a complex type to
- how to get a UWP xaml control from a dll to host it in xamlisland
- WinUI3 CheckBox content style
- XAML and ViewModel Binding inside ControlTemplate
- Changing the opacity of RichEditBox SelectionHighlightColor is not working in uwp?
- Adding a WinUI/WinRT Xaml form to a standard C++ library
- WinUI 3 How to make DataTemplate usable in all pages?
- UWP "form" validation event
- Data binding through UserControl
- in c++ winrt NavigationView how do I select an item after control is populated dynamically
- How to add label to Checkbox in Windows::UI::XAML::Controls
- UWP C++WinRT How to disable a single item in a GridView
Related Questions in TEMPLATE10
- How is Navigation from ContentDialog to a different page in UWP which uses Template10 MVVM possible?
- Does Template 10 implement INotifyPropertyChanged?
- UWP XAML designer exception - Template10 stopped working suddenly
- Keep focus textbox
- The data I enter into a TextBox is not being assigned to the value variable in a UWP app
- How to edit Hamburger Menu items list at runtime?
- Getting a Windows.UI.Xaml.UnhandledExceptionEventArgs on x:Bind to a textbox
- Converter visible when empty
- Multiple behaviors text box style
- Hide back button from NavViewEx(Template10.Extras.16299) UWP
- How to keep UWP UI responsive?
- Custom collection does not work in Template10, but does work in blank project
- UWP MVVM Template10: Access single instance of external API across application
- Back button always returns to start page in UWP Template10 App
- Template 10 and netstandard 2.0
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 # Hahtags
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.