Questions tagged [eventtocommand]

61 questions
0
votes
1 answer

how to Return an object or more than one value from a converter

hey guys as the title state, im trying to return both logitude and lattiude from my mapclicked event to my view model. here my attempt, but it didnt work. public object Convert(object value, Type targetType, object parameter, CultureInfo…
0
votes
1 answer

doesn't work inside ListView ItemTemplate

I'm using an Entry view inside of a ListView's ItemTemplate, and I want to bind a Command to the Completed event of the Entry view (ala MVVM). The top of the XAML with the DataTemplate definition looks like so:
0
votes
1 answer

EventToCommandBehavior does NOT call the Command

I'm in the process of trying to implement "Commanding" in my Xamarin Forms app, in order to follow MVVM architecture pattern. For Buttons, it works just fine because you can just define Command in the XAML. But for a Picker, for example, you have to…
0
votes
1 answer

MVVM Light, Mahapps metro and EventToCommand via EventTrigger from System.Windows.Interactivity

I'm going nuts on this one: I have an application using both Mahapps.Metro as well as MVVMLight. Basically most things are ok UNTIL you try to use Interaction.Triggers. I typically end up with errors like Cannot add instance of type 'EventToCommand'…
Vegetico
  • 93
  • 8
0
votes
2 answers

Xamarin EventToCommand switch toggled

Hello i am trying to use EventToCommand i used prism library but i encountered little problem as described below. MyTestSwitch_1 works fine executing ToggledCommand as it should but when i try to click on MyTestSwitch_ListView which were generated…
0
votes
1 answer

ControlTemplate in Xamarin.Forms is breaking command in listView in Content Page

Xamarin.Forms I'm working with ControlTemplates as described in this article. Creating the controlTemplate went without a hitch, as did applying it and even binding to it. The problem is that while most of the binding still works in my ContentPage,…
Jesse Liberty
  • 1,314
  • 1
  • 11
  • 26
0
votes
2 answers

EventToCommand with MouseDown and MouseEnter

I want to replace single images on a initialized canvas with new images, pixelpainter / mapeditor style. Currently I manage to replace images on MouseEnter but this isn't my goal. I only want to change the image when the user has his mousebutton…
Eiron
  • 433
  • 1
  • 7
  • 15
0
votes
1 answer

WPF Event to Command add to control from Codebehind

I'm using event to command explaind here: http://nerobrain.blogspot.nl/2012/01/wpf-events-to-command.html I now try to add controls from codebehind, since I dynamically have to add them depending on data from db. How perform the same thing as below…
Peter
  • 153
  • 1
  • 8
0
votes
1 answer

Should MouseRightButtonDown work with EventToCommand?

Is the RightMouseDownEvent expected to work with EventToCommand? I can bind a Command with PreviewMouseRightUp and PreviewMouseRightDown, but MouseRightButtonDown does nothing. Am I using the wrong event name -- is it that simple? In the xaml -- i…
Billy Pilgrim
  • 1,842
  • 3
  • 22
  • 32
0
votes
1 answer

Force TextBox to lost focuse when EventToCommand fired

I need to perform login. I'm binding Login to my ViewModel. I can't bind password from passwordBox so I pass it through EventToCommand parametrer
user3055279
  • 21
  • 1
  • 2
0
votes
1 answer

How do I use EventToCommand to handle routed event from a child control of a WPF panel?

I have a control that inherits from Panel. This control creates button controls based on a collection bound to the custom control. How to I handle the button.click event from the children? Here is my XAML. The command does not get executed. …
0
votes
4 answers

EventToCommand in ItemControl in Windows Phone 8

I cannot understand why I cant call eventToCommand in my datatemplate inside ItemControl. According to this post I should implement it in the dataTemplate, but the command is never invoked. This is the eventToCommand im trying to insert in my…
Zeezer
  • 1,503
  • 2
  • 18
  • 33
0
votes
1 answer

MVVM EventToCommand

Hi Friends, I am developing MVVM WPF application, I need to execute the event for TelerikRadTab Control SelectionChanged event, I am aware using MVVM light it is simple using EventToCommand behavior, but as I am using MVVM…
Harry
  • 338
  • 1
  • 6
  • 19
0
votes
2 answers

mvvmlight eventtocommand modifiers

I'm looking for a solution of adding modifiers to EventToCommand usign mvvm light. What I want to achieve is binding a command to let's say mouseEnter but only if the ctrl is pressed. Below I have just a mouseenter command.
Bartek
  • 149
  • 3
  • 13
-1
votes
1 answer

How to turn Event into Command in Xamarin Forms MVVM

Tools: I am using Xamarin forms & MVVM I am following video: https://www.youtube.com/watch?v=7mpe_1okwxk&list=PLwOF5UVsZWUiHY1CkRVjYJ6dm0iCvAlfw&index=12 NuGet: I have installed NuGet >…
user9207271