pymWPF
August 3rd, 2009, 04:02 AM
Hello,
I have an problem that I can not solve for quite some time.
For simplicity, I have a sample code to demonstrate the idea...
<Grid>
<ListBox>
<ListBoxItem>
<Expander Header="OuteItem">
<ListBox>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
</ListBox>
</Expander>
</ListBoxItem>
<ListBoxItem>
<Expander Header="OuteItem">
<ListBox>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
</ListBox>
</Expander>
</ListBoxItem>
<ListBoxItem>
<Expander Header="OuteItem">
<ListBox>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
</ListBox>
</Expander>
</ListBoxItem>
<ListBoxItem>
<Expander Header="OuteItem">
<ListBox>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
</ListBox>
</Expander>
</ListBoxItem>
</ListBox>
</Grid>
The OuterItem listbox is scrollable and is just fine.
Anyone has any idea how to make InnerItem ListBox scrollable???
Thank you so much!
I have an problem that I can not solve for quite some time.
For simplicity, I have a sample code to demonstrate the idea...
<Grid>
<ListBox>
<ListBoxItem>
<Expander Header="OuteItem">
<ListBox>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
</ListBox>
</Expander>
</ListBoxItem>
<ListBoxItem>
<Expander Header="OuteItem">
<ListBox>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
</ListBox>
</Expander>
</ListBoxItem>
<ListBoxItem>
<Expander Header="OuteItem">
<ListBox>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
</ListBox>
</Expander>
</ListBoxItem>
<ListBoxItem>
<Expander Header="OuteItem">
<ListBox>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
<TextBlock>InnerItem</TextBlock>
</ListBox>
</Expander>
</ListBoxItem>
</ListBox>
</Grid>
The OuterItem listbox is scrollable and is just fine.
Anyone has any idea how to make InnerItem ListBox scrollable???
Thank you so much!