Reputation: 141
I have a button when I click the Button. I create buttons dynamically and add button to wrap panel and show it in window but if button goes beyond the width. I want to scroll if I use wrap panel inside scroll viewer when in click the button wrap panel doesn't show.
Upvotes: 1
Views: 143
Reputation: 9827
Base your solution upon this :
<ScrollViewer VerticalScrollBarVisibility="Hidden" Width ="100" HorizontalScrollBarVisibility="Auto" Margin="76,0,113,213">
<WrapPanel>
<Button Content="Press" />
<Button Content="Press" />
<Button Content="Press" />
<Button Content="Press" />
<Button Content="Press" />
<Button Content="Press" />
</WrapPanel>
</ScrollViewer>
Upvotes: 2