Linked Questions

2 votes
0 answers
3k views

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 ...
Jeremy Holt's user avatar
49 votes
2 answers
35k views

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, ...
Leonid's user avatar
  • 491
31 votes
5 answers
12k views

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={...
fonix232's user avatar
  • 2,195
6 votes
4 answers
9k views

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 ...
kevindaub's user avatar
  • 3,373
4 votes
2 answers
6k views

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 ...
Will's user avatar
  • 3,615
5 votes
4 answers
7k views

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 ...
Steve Brouillard's user avatar
4 votes
1 answer
4k views

I want to do something similar to this post but using MultipleBindings. So something like this: <Button.CommandParameter> <MultiBinding Converter="{StaticResource ...
user1582409's user avatar
2 votes
3 answers
2k views

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: ...
Skarab's user avatar
  • 7,161
1 vote
1 answer
2k views

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> <...
cjibo's user avatar
  • 4,707
0 votes
1 answer
598 views

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 ...
A.D.'s user avatar
  • 1,138
0 votes
1 answer
376 views

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 ...
Ken's user avatar
  • 57