locked
Grid Margin bug. RRS feed

  • Question

  •  Hey guys i'd this little problem :

     

     http://silverlight.net/forums/p/42454/127582.aspx#127582

     

     

    and it seems to be bug, what do you think ?

     

     

     

    Monday, November 10, 2008 4:10 AM

Answers

  •  the solution is here :

    http://msdn.microsoft.com/hi-in/library/cc896566(en-us,VS.95).aspx

     

    thx to tanmoy.r 

    http://silverlight.net/forums/t/42454.aspx !

    Wednesday, November 12, 2008 4:27 AM

All replies

  • I think it is the problem of your StrokeThickness set together with the Margin.

    if the differences in Margin are not greater than the StrokeThickness, it is sure that there is overlapping. Because of this, the main reason should be the float that you used, which leads to some errors in calculations

    Monday, November 10, 2008 10:34 AM
  •  i'm aware that there is overlapping (i have to deal with..... a problem with the grid i guess, it's because object in grid can't be put as precisely as i wanted, like in a canvas), but, even without overlapping (with StrokeThickness smaller than margin) i have the same problem, i don't understand why there is not the same behaviour at the right that to the left.......

    Monday, November 10, 2008 11:01 AM
  • I think some alignment should be set, dont I?

    Monday, November 10, 2008 11:19 AM
  •  You mean to set manuallly the same "visual"  margin by hand? i can't have the same margin, even if i want to put it by hand in blend,  i can't have the same margin at the right that to the left, what i've done is this kind of thing :

    <Border>

        <Border Margin="1,1,1,1">

            <Border Margin=".........>

    and it works i've exactly the same margin at the left, right, top and bottom.

    Monday, November 10, 2008 11:43 AM
  •  the solution is here :

    http://msdn.microsoft.com/hi-in/library/cc896566(en-us,VS.95).aspx

     

    thx to tanmoy.r 

    http://silverlight.net/forums/t/42454.aspx !

    Wednesday, November 12, 2008 4:27 AM