mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
2.3 KiB
69 lines
2.3 KiB
using System; |
|
using System.Collections.Generic; |
|
using System.Linq; |
|
using System.Text; |
|
using System.Threading.Tasks; |
|
using System.Windows; |
|
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 EleCho.WpfSuite |
|
{ |
|
/// <inheritdoc/> |
|
public class ListBox : System.Windows.Controls.ListBox |
|
{ |
|
static ListBox() |
|
{ |
|
DefaultStyleKeyProperty.OverrideMetadata(typeof(ListBox), new FrameworkPropertyMetadata(typeof(ListBox))); |
|
} |
|
|
|
/// <summary> |
|
/// The CornerRadius property allows users to control the roundness of the corners independently by |
|
/// setting a radius value for each corner. Radius values that are too large are scaled so that they |
|
/// smoothly blend from corner to corner. |
|
/// </summary> |
|
public CornerRadius CornerRadius { |
|
get { return (CornerRadius)GetValue(CornerRadiusProperty); } |
|
set { SetValue(CornerRadiusProperty, value); } |
|
} |
|
|
|
/// <summary> |
|
/// Background when disabled |
|
/// </summary> |
|
public Brush DisabledBackground { |
|
get { return (Brush)GetValue(DisabledBackgroundProperty); } |
|
set { SetValue(DisabledBackgroundProperty, value); } |
|
} |
|
|
|
/// <summary> |
|
/// BorderBrush when pressed by mouse |
|
/// </summary> |
|
public Brush DisabledBorderBrush { |
|
get { return (Brush)GetValue(DisabledBorderBrushProperty); } |
|
set { SetValue(DisabledBorderBrushProperty, value); } |
|
} |
|
|
|
/// <summary> |
|
/// DependencyProperty of <see cref="CornerRadius"/> property |
|
/// </summary> |
|
public static readonly DependencyProperty CornerRadiusProperty = |
|
System.Windows.Controls.Border.CornerRadiusProperty.AddOwner(typeof(ListBox)); |
|
|
|
/// <summary> |
|
/// The DependencyProperty of <see cref="DisabledBackground"/> property |
|
/// </summary> |
|
public static readonly DependencyProperty DisabledBackgroundProperty = |
|
DependencyProperty.Register(nameof(DisabledBackground), typeof(Brush), typeof(ListBox), new FrameworkPropertyMetadata(null)); |
|
|
|
/// <summary> |
|
/// The DependencyProperty of <see cref="DisabledBorderBrush"/> property |
|
/// </summary> |
|
public static readonly DependencyProperty DisabledBorderBrushProperty = |
|
DependencyProperty.Register(nameof(DisabledBorderBrush), typeof(Brush), typeof(ListBox), new FrameworkPropertyMetadata(null)); |
|
} |
|
}
|
|
|