normalize white space in SparkMenuItem.cs

This commit is contained in:
John Colvin committed 2020-02-04 13:11:06 -06:00
1 parent a6edbbe7b5
commit e06daa349c
1 file changed
+8 -25
@@ -1,43 +1,26 @@
using bts.api;
using bts.spark;
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.Media;
namespace mbts.ui.controls {
public class SparkMenuItem : Button {
static SparkMenuItem() {
static SparkMenuItem() =>
DefaultStyleKeyProperty.OverrideMetadata(typeof(SparkMenuItem), new FrameworkPropertyMetadata(typeof(SparkMenuItem)));
}
public ImageSource Icon
{
public static readonly DependencyProperty IconProperty =
DependencyProperty.Register("Icon", typeof(ImageSource), typeof(SparkMenuItem), new PropertyMetadata(default(ImageSource)));
public ImageSource Icon {
get { return (ImageSource)GetValue(IconProperty); }
set { SetValue(IconProperty, value); }
}
// Using a DependencyProperty as the backing store for Icon. This enables animation, styling, binding, etc...
public static readonly DependencyProperty IconProperty =
DependencyProperty.Register("Icon", typeof(ImageSource), typeof(SparkMenuItem), new PropertyMetadata(default(ImageSource)));
public static readonly DependencyProperty CollapsedProperty =
DependencyProperty.Register("Collapsed", typeof(bool), typeof(SparkMenuItem), new PropertyMetadata(default(bool)));
public bool Collapsed
{
public bool Collapsed {
get { return (bool)GetValue(CollapsedProperty); }
set { SetValue(CollapsedProperty, value); }
}
// Using a DependencyProperty as the backing store for Collapsed. This enables animation, styling, binding, etc...
public static readonly DependencyProperty CollapsedProperty =
DependencyProperty.Register("Collapsed", typeof(bool), typeof(SparkMenuItem), new PropertyMetadata(default(bool)));
}
}