locked
How to lock the contorl's horizontal attribute of blend? RRS feed

  • Question

  • when i draging the control on the artboard, sometimes the HorizontalAlignment & VerticalAlignment's will be changed aotumatically, that's not the one i want actually.
    first of all, i think i can define an customized control and change some attribute that i can lock HorizontalAlignment & VerticalAlignment.
    i try to do it, but  i did not find any contorl's attribute i can changed that will solve the probelem.( i set the HorizontalAlignment attribute when i initialization the control class, and alos do it in onRender method.)
    Tuesday, February 9, 2010 1:44 PM

Answers

  • Howdy,

    I will try my best to explain this with and image.

    Please have a look here:




    This shows the little anchors that are on the outer edges of an element when selected as the child of a Grid. You can click on these little anchors to lock the alignment, so click the Top anchor will lock the element to always be Bottom Aligned and vice versa etc.

    HTH

    Cheers

    Expression MVP

    my blog : http://x-coders.com/blogs/sneaky/default.aspx

    Tuesday, February 9, 2010 8:09 PM
    Moderator

All replies

  • Howdy,

    I will try my best to explain this with and image.

    Please have a look here:




    This shows the little anchors that are on the outer edges of an element when selected as the child of a Grid. You can click on these little anchors to lock the alignment, so click the Top anchor will lock the element to always be Bottom Aligned and vice versa etc.

    HTH

    Cheers

    Expression MVP

    my blog : http://x-coders.com/blogs/sneaky/default.aspx

    Tuesday, February 9, 2010 8:09 PM
    Moderator
  • thanks for your reply and it is really helpful to me to fix that problem :)
    Wednesday, February 10, 2010 2:26 AM