hi
<MenuItem Header="StepOne"
Command="{Binding CurrentStepCmd}"
CommandParameter="{x:Static data:Steps.StepOne}"/>
<MenuItem Header="StepTwo"
Command="{Binding CurrentStepCmd}"
CommandParameter="{x:Static data:Steps.StepTwo}"/>
code works fine but:
Q1: i don't like my xaml to access any data from outside it's viewmodel (i don't like to include the
namespace "data" in xaml ).
Q2: is the solution of making ICommand for each enum value (Steps enum) better than using one cmd with param?
i'm using C# and wpf .Net framwork 4.7 app
any help will be appreciated,
