public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 {
     ThreeCommandParameters parameters = new ThreeCommandParameters();
     foreach (var obj in values)
     {
         if (obj is string) parameters.Text = (string)obj;
         else if (obj is bool) parameters.Bool = (bool)obj;
         else
         {
             parameters.Context = (TextBlock)obj;
         }
     }
     return parameters;
 }
Exemple #2
0
        public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            ThreeCommandParameters parameters = new ThreeCommandParameters();

            foreach (var obj in values)
            {
                if (obj is string)
                {
                    parameters.Text = (string)obj;
                }
                else if (obj is bool)
                {
                    parameters.Bool = (bool)obj;
                }
                else
                {
                    parameters.Context = (TextBlock)obj;
                }
            }
            return(parameters);
        }