Shape with fixed size RRS feed

  • Question

  • I want to create a shape for a domain class, but it should be a circle. So far no problems. However, I do not want the user to be able resize the shape, it should have and keep the fixed size I choose. How can I define this in my domain model?

    Kind regards,


    Wednesday, February 23, 2011 9:20 PM


  • I would use custom code.

    In a partial class associated with your shape, override the properties MaximumSize and MinimumSize in order to fix their value to the size that you set.


    	public override Microsoft.VisualStudio.Modeling.Diagrams.SizeD MinimumSize
                get { return this.Size; }
            public override Microsoft.VisualStudio.Modeling.Diagrams.SizeD MaximumSize
                get { return this.Size; }




    Thursday, February 24, 2011 8:51 AM