Hi friends,
I am working on an XML driven UI. My application parses an XML and create UI as per the parsed information.
Now in that UI, we can have various controls like TextBlock, TextBox, ComboBox, DatePicker, DockPanel, TabControl,
ListView etc and in any combination. Please see below XAML. Whatever control we want to add in the UI, is added into the
ParentStackPanel (you can say that it's parent of all the controls).
<UserControl>
<StackPanel Name="ParentStackPanel">
...
</StackPanel>
</UserControl>
The size of
ParentStackPanel will keep on increasing with more and more controls in it. UI comes with a scrollbar so that user can scroll the UI to go up and down.
The Problem:
While scrolling if the mouse cursor comes at some ListView, scrolling stops here. Please see below XAML. You can see that the UI have one ListView inside it. Scrolling works smoothly but it suddenly stops when mouse cursor reaches over that ListView.
<UserControl>
<StackPanel Name="ParentStackPanel">
<TextBlock />
<TextBox />
<ComboBox />
<TabControl />
<ListView /> Scrolling stops here
<DatePicker />
<TextBlock />
<TextBox />
</StackPanel>
</UserControl>
Please let me know, why it happens and how can I resolve this problem.
Thanks in advance.
Aseem Sharma