I have a confusion that only button element shows option for command and most of the other elements do not support this option. Is it valid only for Button? And is only Click Event handled by Command?? Because most of the samples i have seen, On clicking button command gets fired. In case i want command to be fired on other events, then what to do?
Does Command work only for Button in Silverlight?
87 Views Asked by user2091061 At
1
There are 1 best solutions below
Related Questions in MVVM
- TelephonyCallback.CallStateListener with LiveData and ViewModel
- Jetpack compose - how I can hookup LiveData property from ViewModel with TextField in activity?
- Jetpack compose ViewModels - should I have one ViewModel for different api calls?
- How to Display UserControl as SplitView Content? - Avalonia C#
- ViewModel property is empty even after initializing it
- How to bind to the DataContext ViewModel of another view?
- Problem updating the interface under MAUI to MVVM
- x:Bind a embeded page to the parent window viewmodel in WinUI 3
- RelayCommand not firing on MenuItem click inside DataGridTextColumn WPF MVVM
- WinUI3 CommunityToolkit MVVM Messenger calling on disposed objects?
- MAUI: How to update an observable property and wait for UI update completion before updating it again?
- Viewmodel as ILogEventSink in a Prism application
- How do I modify ViewModel data from button in swiftui
- Proper way to return value from custom UserControl's DependencyProperty and uses viewModel?
- .NET MAUI MVVM View Initialization doesn't work properly
Related Questions in SILVERLIGHT-4.0
- How can I pass content to a parent template from a child template in Silverstripe
- create a PDF document in Silverlight
- Silverlight 4 SDK
- How can I set a TextBox text programmatically in XAML (Silverlight)
- Silverlight 4 Application run in silverlight 5 in visual-studio-2015
- Access Local Files from IIS "silverligh"
- Binding Observable collection list to dynamically created ComboBox in Silverlight
- Silverlight - ComboBox and other fields in toolkit:DataForm are not available in the .xaml.cs
- Consume same WCF service from angular 2 and Silverlight application
- Richtextbox values showing in single line
- SilveLight 4, System Reflection.TargetInvocationException: (Async_ExceptionOccurred)
- Port Wince 7 Xaml Based application to win32 platform
- DataGrid HeaderStyle overriding Header
- Silverlight with RIA services on IIS 10.0 results in 404 error
- load dynamically dll from file path at runtime in silverlight
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?
Yes, there are some limitations like above. A command cannot be bound with the controls that doesn't implement
ICommandSourceinterface. But you can use Dependency Property to write custom commands.You can see this and this or googling for more examples.