<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition/>
<RowDefinition Height="40"/>
</Grid.RowDefinitions>
<c:SearchTextBox Grid.ColumnSpan="2" .../>
<ScrollViewer VerticalScrollBarVisibility="Auto" Grid.Row="1">
<ListBox
ItemsSource="{Binding Categories}"
IsSynchronizedWithCurrentItem="True"
... />
</ScrollViewer>
<!-- Here is what I'm talking about:-->
<ListBox ItemsSource="{Binding Products}"
IsSynchronizedWithCurrentItem="True" Grid.Column="1" Grid.Row="1">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
क्या मैं चाहता हूँ कि अधिकार स्तम्भ में आइटम बाहर रखा जाना चाहिए खिड़की चौड़ाई को भरने के लिए, और फिर एक नई लाइन बनाने है एक लंबी क्षैतिज रेखा में आइटम बाहर देता है , वही है जो रैपपैनल के लिए बनाया गया है।
समस्या यह है कि WrapPanel केवल एक पंक्ति में वस्तुओं को बताता है जो नीचे क्षैतिज स्क्रॉल बार दिखा रहा है जबकि सभी आइटम विंडो के आकार से अधिक दाईं तरफ 'छुपा' हैं।WrapPanel (स्क्रॉल बार प्रदर्शित) लपेटकर लाइनों के बजाय
मैं इसे कैसे रोक सकता हूं?
यदि आप स्क्रॉलव्यूअर को हटाते हैं तो क्या होता है? आइटम क्षैतिज स्क्रॉलिंग के साथ अभी भी दाएं विस्तारित हैं? – dcarneiro
@ डैनियल आपको मुझे गलत मिला। स्क्रॉलव्यूयर पहली सूची बॉक्स को लपेटता है जिसमें 2 सूची बॉक्स एक मास्टर-विस्तार परिदृश्य का प्रतिनिधित्व करते हैं। समस्या दूसरी सूची बॉक्स के साथ है जो WrapPanel को इसके आइटमपैनेल टेम्पलेट के रूप में उपयोग करती है। – Shimmy