c# - Split the width evenly between of two controls that make up a listbox item? -
I am trying to set up a list box so that each item has a text block and Cambodia, which is equal to the width Split up Listbox but i can not find magic combination of ColumnDefinition properties to do this. Here's my datatymeet for the list box item. I cleaned it because it was wrong, anyhow.
& gt; Datamapplet X: Key = "MyDetTemplate" & gt; & Lt; Grid & gt; & Lt; Grid.ColumnDefinitions & gt; & Lt; ColumnDefinition / & gt; & Lt; ColumnDefinition / & gt; & Lt; /Grid.ColumnDefinitions> & Lt; Text block grid Column = "0" text = "{binding XPath = text ()}" /> & Lt; Combobox grid Column = "1" selected index = "0" item source = "{binding source = {static resource name}, XPath = name}" & gt; & Lt; / Combobox & gt; & Lt; / Grid & gt; & Lt; / DataTemplate & gt;
I have tested a simple application with a grid on a window. By specifying just two column definitions, they take half of the free width, which is good, but when the list is done in the botem dataetplate, the behavior is different.
How do I change the dataetlet to work on it
Thanks!
is a list box left for default horizontal content alignment
Listboxes / listBoximeTime and more information about templates is here:
Comments
Post a Comment