Offset of an object
-
I would like to set OffsetX to zero. double contextoffset = someobject.RenderTransform.Value.OffsetX; but you will get error if you tried to do something like this. someobject.RenderTransform.Value.OffsetX = someValue Because Value is not a variable! It looks like it is Matrix. so I tried someobject.RenderTransform.Value.Translate(0, 0); But it didn't work out? Any idea? Best regards agha.khan@hotmail.com :laugh:
-
I would like to set OffsetX to zero. double contextoffset = someobject.RenderTransform.Value.OffsetX; but you will get error if you tried to do something like this. someobject.RenderTransform.Value.OffsetX = someValue Because Value is not a variable! It looks like it is Matrix. so I tried someobject.RenderTransform.Value.Translate(0, 0); But it didn't work out? Any idea? Best regards agha.khan@hotmail.com :laugh:
You could maybe set someobject.RenderTransform to a TranslateTransform object instance and use the TranslateTransform object's X and Y properties to offset the element...
Mark Salsbery Microsoft MVP - Visual C++ :java: