1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
public string Title
{
get { return (string)GetValue(TextProperty); }
set { SetValue(TextProperty, value); }
}
// Using a DependencyProperty as the backing store for Title. This enables animation, styling, binding, etc...
public static readonly DependencyProperty TextProperty =
DependencyProperty.Register("Title", typeof(string), typeof(CustomListBoxItem));
public string CustomToolTip
{
get { return (string)GetValue(CustomToolTipProperty);}
set { SetValue(CustomToolTipProperty, value); }
}
// Using a DependencyProperty as the backing store for Title. This enables animation, styling, binding, etc...
public static readonly DependencyProperty CustomToolTipProperty =
DependencyProperty.Register("CustomToolTip", typeof(string), typeof(Control)); |