using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SeriesTracker.Controls
{
    public class BorderlessEntry : Entry
    {
        public BorderlessEntry()
        {
            var transparentBackgroundSetter = new Setter
            {
                Property = BackgroundColorProperty,
                Value = Colors.Transparent
            };

            var focusedTrigger = new Trigger(typeof(Entry));
            focusedTrigger.Property = IsFocusedProperty;
            focusedTrigger.Value = true;
            focusedTrigger.Setters.Add(transparentBackgroundSetter);

            Triggers.Add(focusedTrigger);
        }
    }
}
