I have a stackpanel with check box
Can someone tell me what I do Am I
The code given below gives me this:
As you can see, the distance between the elements is not constant!
& lt; StackPainl Minawide = "150" Cal: Bind.Model = "{Binding}" Orientation = "Horizontal" & gt; & Lt; StackPanel.Resources & gt; & Lt; Style TargetType = "{x: type checkbox}" & gt; & Lt; Setter property = "margin" value = "0,0,20,0" /> & Lt; / Style & gt; & Lt; /StackPanel.Resources> & Lt; Check box IsChecked = "{Binding IsShown}" content = "{Binding ModuleName, Converter = {stataticResource localizeModuleAndFunctionConverter}}" CAL: Message. Attach = "[click event] = [action filter modules function]" /> & Lt; / StackPanel & gt;
I'm guessing your problem is your minimum value = "150" Looks like you've got a total of 5 stackpellings, you have every 4 stack panels that hold their own checkboxes. So I agree that you've got a 5 stack panel with your 4 stack panel.
If this is true ... then the problem is that each of your check boxes are in the 150 width stack panel (minimum) but your third stack panel is larger than 150 because the text is so long that the whole text (And your margin of 20), it should be bigger.
MinWidth = "150" and I think you will get a margin of 20 between the text of each checkbox. (If you want to differentiate between the actual box of the checkbox, you should keep your small pillar, but make it big enough to be the shortest text box).
Comments
Post a Comment