commandparameter Questions
5
Solved
I'm trying to send a variable from the ViewModel as a parameter to a command. The command looks like this:
public class EditPersonCommand : ICommand
{
private bool _CanExecute = false;
public b...
Troposphere asked 11/9, 2012 at 13:49
3
Solved
I have a DataTemplate that represents AppBar buttons that I declare through a collection of custom AppBarCommand objects.
public AppBarCommand(RelayCommand command, string buttonstyle)
{
Comman...
Anasarca asked 13/9, 2012 at 20:6
4
I would like to pass a Xamarin.Forms.Button in it's own Command as the CommandParameter to my ViewModel. I know how to achieve this from the code behind e.g. ...
XAML (with most properties missed...
Lipp asked 18/9, 2014 at 12:1
3
Solved
how can I pass the window I am currently on as a parameter to a command?
I like to do this in XAML-markup:
<Button Command="CommandGetsCalled" CommandParameter="-this?-" />
Gratin asked 17/8, 2010 at 15:47
2
I was looking for the best way to pass entry parameters (username, password) to Xamarin MVVM viewmodel by clicking a button(in the view) with command parameters.
Sadyesaechao asked 3/10, 2017 at 20:27
3
Solved
How do I pass True to a CommandParameter?
Currently I am imperatively adding Boolean.True to the resource dictionary, but that seems like a clumsy way to do it.
Selfpronouncing asked 4/1, 2012 at 4:47
1
Solved
Using MVVM-Light Toolkit in Silverlight 5, i am trying to find a way to pass Command Parameters AND EventArgs both to ViewModel in an Event-To-Command behavior.
I did find a post suggesting Passin...
Tresa asked 9/7, 2012 at 9:48
1
Solved
Ive noticed this a couple of times when using menus with commands, they are not very dynamic, check this out. I am creating a menu from a collection of colours, I use it to colour a column in a dat...
Baccivorous asked 10/6, 2010 at 2:3
3
Solved
I've a wpf specific problem. I'm trying to delete a Row from a Datagrid, by defining a Keybinding that passes the selected Row of the Datagrid as a Commandparameter to a Command.
This is my Keybin...
Veliz asked 21/11, 2011 at 14:10
1
Solved
How do i correctly bind a dynamical created list of menu items. I have tried several thing but none seem to work. I get the proper list of names, however my ViewSwitchCommand does not seem to fire ...
Bohun asked 5/6, 2011 at 23:50
1
Solved
I am trying to use Command and CommandParameter binding with Buttons in a WPF application. I have this exact same code working just fine in Silverlight so I am wondering what I have done wrong!
I ...
Motorist asked 22/6, 2010 at 10:48
1
© 2022 - 2024 — McMap. All rights reserved.