public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
 {
     TwoCommandParameters parameters = new TwoCommandParameters()
     {
         Context = values[0] as TextBlock,
         Text = values[1] as String,
         Bool = (bool) values[2],
         Bool2 = (bool) values[3],
         Target = (string)values[4]
     };
     
     return parameters;
 }
예제 #2
0
        public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
        {
            TwoCommandParameters parameters = new TwoCommandParameters()
            {
                Context = values[0] as TextBlock,
                Text    = values[1] as String,
                Bool    = (bool)values[2],
                Bool2   = (bool)values[3],
                Target  = (string)values[4]
            };

            return(parameters);
        }