Loading files
366e28f22This file is pinned to the selected release. Download the original to open it in your design tool.
namespace IDE.Controls
{
using System.Windows;
using System.Windows.Controls;
public class PinableListView : ListView
{
/// <summary>
/// Static Constructor
///
/// Getting CustomControl style from Themes/Generic.xaml does not work ???
/// </summary>
static PinableListView()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(PinableListView),
new FrameworkPropertyMetadata(typeof(PinableListView)));
}
/// <summary>
/// method is executed when control template is applied to lookless control.
/// </summary>
public override void OnApplyTemplate()
{
base.OnApplyTemplate();
}
protected override DependencyObject GetContainerForItemOverride()
{
return new PinableListViewItem();
}
protected override bool IsItemItsOwnContainerOverride(object item)
{
return item is PinableListViewItem;
}
}
}