Set the size of frame image
问题 Question 1: I have a DataTemplate as below. And in my layout I need to put Image tipFrame below TextBlock tipText . tipText's text will change according to pulled server text, hence tipFrame's width should change accordingly to cover tipText. But the issue is that tipText's parent control, the RelativePanel's width is big, e.g. 1800. And due to tipText's Margin setting Margin="35,7,100,0" , so tipText's width is 1800 - 35 = 1765 , which does not match its content size. E.g. the content maybe