title: How to pass two enums values in a "command parameter" in Xaml and get those values in CS file
body: <p>Hi I want to pass two enum values from Xaml file and want to get those values. I made a class having two value variables and using that type. but I dont know how to pass that class object through Xaml.</p>
  
  <p>Xaml file</p>
  
  <pre><code>&lt;dxb:BarButtonItem x:Name="PointsItem" Content="Points" RibbonStyle="Large"  Command="{Binding DrawStyleItemCommand}" &gt;
              &lt;dxb:BarButtonItem.CommandParameter&gt;
                &lt;MultiBinding Converter="{StaticResource xmlns:convertor.ModelPropertyConverter}"&gt;
                  &lt;Binding Source="{x:Static enums:ModelModes.somex}" /&gt;
                  &lt;Binding Source="{x:Static enums:StyleModes.somey}" /&gt;
                &lt;/MultiBinding&gt;
              &lt;/dxb:BarButtonItem.CommandParameter&gt;
            &lt;/dxb:BarButtonItem&gt;
  </code></pre>
  
  <p>cs file </p>
  
  <pre><code>private DelegateCommand&lt;object&gt; _drawStyleItemCommand;
          public DelegateCommand&lt;object&gt; DrawStyleItemCommand
          {
              get { return _drawStyleItemCommand ?? (_drawStyleItemCommand = new DelegateCommand&lt;object&gt;(StyleItem)); }
          }
       private void StyleItem(object parameter)
          {
              var values = (object[])parameter;
              var enum1 = (ModelModes)values[0];
              var enum2 = (DrawStyleModes)values[1];
          }
  XModel Class
  
       public class XModelProperty
          {
              public XModelModes bMode { get; set; }
              public XStyleModes dStyle { get; set; }
  
              public XModelProperty(BoneModelModes _bMode,DrawStyleModes _dStyle)
              {
                  bMode = _bMode;
                  dStyle = _dStyle;
  
              }        
          }
  </code></pre>
  
  <p>Convertor Class</p>
  
  <pre><code>namespace Infra.Converter
  {
      public class BoneModelPropertyConverter : IMultiValueConverter
      {
  
          public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
          {
              return values.Clone();
          }
  
          public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
          {
              throw new NotImplementedException();
          }
      } 
  }
  </code></pre>
  
  <p>I am getting parse exception at this line <code>&lt;MultiBinding Converter="{StaticResource xmlns:convertor.BoneModelPropertyConverter}"&gt;</code></p>