using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using VIZ.Framework.Core;

namespace VIZ.Framework.Common
{
    /// <summary>
    /// GPIO引脚测试控件
    /// </summary>
    public class GPIOPinTestControl : Control
    {
        static GPIOPinTestControl()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(GPIOPinTestControl), new FrameworkPropertyMetadata(typeof(GPIOPinTestControl)));
        }

        #region GPIOModel -- GPIO模型

        /// <summary>
        /// GPIO模型
        /// </summary>
        public GPIOModel GPIOModel
        {
            get { return (GPIOModel)GetValue(GPIOModelProperty); }
            set { SetValue(GPIOModelProperty, value); }
        }

        /// <summary>
        /// Using a DependencyProperty as the backing store for GPIOModel.  This enables animation, styling, binding, etc...
        /// </summary>
        public static readonly DependencyProperty GPIOModelProperty =
            DependencyProperty.Register("GPIOModel", typeof(GPIOModel), typeof(GPIOPinTestControl), new PropertyMetadata(null));

        #endregion
    }
}
