20 lines
637 B
C#
20 lines
637 B
C#
|
|
using System.Windows;
|
|||
|
|
|
|||
|
|
namespace ChatController.Utilities
|
|||
|
|
{
|
|||
|
|
public class ListItemHelper : DependencyObject
|
|||
|
|
{
|
|||
|
|
public static readonly DependencyProperty IsCheckedProperty = DependencyProperty.RegisterAttached("IsChecked", typeof(bool?), typeof(ListItemHelper), new PropertyMetadata(false, null));
|
|||
|
|
|
|||
|
|
public static void SetIsChecked(DependencyObject element, bool? IsChecked)
|
|||
|
|
{
|
|||
|
|
element.SetValue(IsCheckedProperty, IsChecked);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public static bool? GetIsChecked(DependencyObject element)
|
|||
|
|
{
|
|||
|
|
return (bool?)element.GetValue(IsCheckedProperty);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|