Setter.Target give me an error with “RelativePanel.AlignHorizontalCenterWithPanel”

后端 未结 2 1830
我寻月下人不归
我寻月下人不归 2021-01-24 22:33

I am develop an UWP app, and I am using Template10. I have an TextBlock, that in VisualStateNarrow I want it RelativePanel.AlignVerticalCenterWit

2条回答
  •  粉色の甜心
    2021-01-24 22:59

    For attached properties you have to add brackets to in setters as follows:

    Element.(Grid.Row)
    Element.(ToolTipService.ToolTip)
    

    So your code will look like this:

    
    

提交回复
热议问题