Linked Questions
11 questions linked to/from Passing an enum value as command parameter from XAML
2 votes
0 answers
3k views
Binding an enum to MVVM Light RelayCommand<T> CommandParameter [duplicate]
I'm trying to bind the command parameter in XAML for a RelayCommand<MessageTokens> as below, where MessageTokens is an enum public ICommand OpenInvoiceWindowCommand { get ...
49 votes
2 answers
35k views
Using enum in ConverterParameter
I am building an application that can be used by many users. Each user is classified to one of the next Authentication levels: public enum AuthenticationEnum { User, Technitian, ...
31 votes
5 answers
12k views
x:Static in UWP XAML
An app I'm working on requires a ConverterParameter to be an enum. For this, the regular way to do would be: {Binding whatever, Converter={StaticResource converterName}, ConverterParameter={...
6 votes
4 answers
9k views
Passing Enum Value as a Command Parameter
Part of this question has been answered on how to bind to an enum as a command parameter, but I need to go one step further. I have a data template that links to a menu and each menu option initiates ...
4 votes
2 answers
6k views
WPF Multiple Enum Flags to Converter Parameter?
I have a control which I need visible if an enum value is (A | B | C). I know how to bind the visibility of a control to a SINGLE enum (A) using a converter. How do I go about doing the same for ...
5 votes
4 answers
7k views
Silverlight 3/Prism - Passing an enum value as a Command Parameter
I'm trying to use Prism and the MVVM pattern to develop an application. In my UI, I have a previous and next button defined. For use in a calling web services, I've defined an enum that will tell ...
4 votes
1 answer
4k views
Passing an enum value as command parameter when using MultiBinding
I want to do something similar to this post but using MultipleBindings. So something like this: <Button.CommandParameter> <MultiBinding Converter="{StaticResource ...
2 votes
3 answers
2k views
How to have an enum value in CommandParam in XAML
I have the following enum that represent a state of UI (I use it to enable and disable UI elements): enum Mode { EDIT, RUN, REVIEW } I would like to pass Mode.EDIT to command in CommandParam: ...
1 vote
1 answer
2k views
WPF Binding Enum to Command Parameters
I am trying to bind a Enum to CommandParameters of a button. This cannot be static due to the fact that the button occurs in a ItemsControl. Here is the Datatemplate: <DataTemplate> <...
0 votes
1 answer
598 views
how to pass an enum value to a multi-parameters RelayCommand (WPF / MVVM)?
Working on a WPF / MVVM project. Still a noob at XAML. I do not manage to pass an enum parameter to a RelayCommand public enum MyEnum {Val1, Val2, Val3}; xaml part: <Button Command="{Binding ...
0 votes
1 answer
376 views
How to create and use a custom DataGridRow Trigger
I'm using Prism 6 to create my application, and I have a need to color the background of DataGridRows based on the date. I started creating a Blend SDK Trigger to accept two parameters: MinDate and ...