Add existing property to designer view RRS feed

  • Question

  • I would like to add the MinHeight property of my custom control to the properties window in Blend. (in the Layout section)
    I've tried to add a property MinHeight (with hiding and a Category attribute) but this won't work.

    Now i've the following workaround:


    public Double MinimalHeight
        get { return (Double)GetValue(MinHeightProperty); }
        set { SetValue(MinHeightProperty, value); }

    But in XAML results this in:

    <custom:Button MinimalHeight="50"/>

    which is quite confusing especially when MinHeight is set too.

    So does anyone know how I can add MinHeight to the properties window in Blend, without making an 'wrapperproperty'?
    Friday, December 11, 2009 2:28 PM