c# - Too much spacing between StackPanel items in Windows Store app -
I want to arrange some horizontal textboxes without any margins. I can see that my text block is as small as it should be, but for some reason many locations are added around it. I think this list has nothing to do with the book or its style, but I do not know.
I have a lower layout Is:
& lt; Listview width = "auto" selectionmode = "none" background = "# 654321" item source = "{binding}" & gt; & Lt; ListView.ItemsPanel & gt; & Lt; ItemsPanelTemplate & gt; & Lt; StackPanel Orientation = "Horizontal" /> & Lt; / ItemsPanelTemplate & gt; & Lt; /ListView.ItemsPanel> & Lt; ListView.ItemTemplate & gt; & Lt; DataTemplate & gt; & Lt; Border background = "black" & gt; & Lt; Text block text = "{binding}" margin = "0,0,0,0" /> & Lt; / Border & gt; & Lt; / DataTemplate & gt; & Lt; /ListView.ItemTemplate> & Lt; X: string & gt; & Lt; / X: string & gt; & Lt; X: string & gt; B & lt; / X: string & gt; & Lt; X: string & gt; C & lt; / X: string & gt; & Lt; X: string & gt; D & lt; / X: string & gt; & Lt; X: string & gt; E & lt; / X: string & gt; & Lt; / ListView & gt;
Another way to view - ListView is actually Designed as a control, where you can tap, select, drag, and otherwise interact with the item. I think if you want to remove all the features that make the size touchable with fat fingers - you use something like Base ItemsControl or ListBox It may be better to have these limitations if you get rid of all the margins and leave your items so small - using the ListView does not make sense and it will only make things difficult and perform Will spoil
c # प्रोग्रामिंग नमूना कोड
ReplyDeleteलेफ्ट, टॉप, राइट, बॉटम फॉर पेडिंग उदाहरण