public class ListingUserControl : UserControl
{
#region Properties
public bool IsEditable
{
get => (bool)GetValue(IsEditableProperty);
set => SetValue(IsEditableProperty, value);
}
public static readonly DependencyProperty IsEditableProperty =
DependencyProperty.Register(
"IsEditable",
typeof(bool),
typeof(ListingUserControl),
new PropertyMetadata(true));
#endregion
}
public class ListingUserControl : UserControl
{
#region Properties
public bool IsEditable
{
get => (bool)GetValue(IsEditableProperty);
set => SetValue(IsEditableProperty, value);
}
public static readonly DependencyProperty IsEditableProperty =
DependencyProperty.Register(
"IsEditable",
typeof(bool),
typeof(ListingUserControl),
new PropertyMetadata(true));
#endregion
}