using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.UI.Xaml.Data;
using TodoXaml.Models;

namespace TodoXaml.Converters
{
    public class PriorityToIndexConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, string language)
            => (int)(Priority)value;

        public object ConvertBack(object value, Type targetType, object parameter, string language)
            => (Priority)(int)value;
    }
}