Get element position after transform

前端 未结 3 747
Happy的楠姐
Happy的楠姐 2020-12-15 13:04

I have a UIElement that has various transformations performed on it (scale and translate).

Is there a way to get the UIElement\'s position after transformation? I t

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-15 13:32

    EDIT:

    ok how about this ?

    myObjectTransform.GetValue(CompositeTransform.TranslateXProperty)
    

    and

    myObjectTransform.GetValue(CompositeTransform.TranslateYProperty)
    

提交回复
热议问题