In my custom behavior I have created the following dependency property:
public double FontSize
{
get { return (double)GetValue(FontSizeProperty); }
set { SetValue(FontSizeProperty, value); }
}
public static readonly DependencyProperty FontSizeProperty = DependencyProperty.Register(
"FontSize",
typeof (double),
typeof (CustomBehavior),
new PropertyMetadata(11, null));
- How to bind value, 'couse In Blend binding button is disabled.
- How to show dropdown list of standart font sizes like for Textblock in Text category