我可以在代码中单独设置边距,但是如何在XAML中设置边距,例如我该怎么做:
伪代码:
<StackPanel Margin.Top="{Binding TopMargin}">
c# wpf xaml margins
c# ×1
margins ×1
wpf ×1
xaml ×1