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;
namespace ButtonEx
{
public class ArrowsButton : Button
{
static ArrowsButton()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(ArrowsButton), new FrameworkPropertyMetadata(typeof(ArrowsButton)));
}
public bool CkState
{
get { return (bool)GetValue(ButtonTypeProperty); }
set { SetValue(ButtonTypeProperty, value); }
}
public static readonly DependencyProperty ButtonTypeProperty =
DependencyProperty.Register("CkState", typeof(bool), typeof(ArrowsButton), new PropertyMetadata(false));
public ImageSource IconNorm
{
get { return (ImageSource)GetValue(IconNormProperty); }
set { SetValue(IconNormProperty, value); }
}
public static readonly DependencyProperty IconNormProperty =
DependencyProperty.Register("IconNorm", typeof(ImageSource), typeof(ArrowsButton), new PropertyMetadata(null));
public ImageSource IconSelect
{
get { return (ImageSource)GetValue(IconSelectProperty); }
set { SetValue(IconSelectProperty, value); }
}
public static readonly DependencyProperty IconSelectProperty =
DependencyProperty.Register("IconSelect", typeof(ImageSource), typeof(ArrowsButton), new PropertyMetadata(null));
}
}