チェックボックス付きのスタックパネルがあります。マージンプロパティを持つチェックボックスの間に同じ間隔を作ることができないようです
some1は私が間違っていることを教えてもらえますか?
以下のコードは私にこれを与えます:
(出典:shrani.si)
ご覧のとおり、要素間の間隔は一定ではありません。
<StackPanel MinWidth="150" cal:Bind.Model="{Binding}" Orientation="Horizontal">
<StackPanel.Resources>
<Style TargetType="{x:Type CheckBox}">
<Setter Property="Margin" Value="0,0,20,0"/>
</Style>
</StackPanel.Resources>
<CheckBox IsChecked="{Binding IsShown}" Content="{Binding ModuleName, Converter={StaticResource localizeModuleAndFunctionConverter}}"
cal:Message.Attach="[Event Click] = [Action FilterShownModuleFunctions]" />
</StackPanel>