Silverlight 3: scrollbars not working

Silverlight and WPF share a lot… except for a few controls not jet available in SL3 😦
Based on my last post, Scrollbars not working, that solution doesn’t work SL3: DockPanel is not available 😦
So, what could we do?  Replace that StackPanel with a Grid!
Here is an example:

    <RowDefinition Height="Auto" />
    <RowDefinition />
    <RowDefinition Height="35" />

  <!-- search form -->
  <Grid Grid.Row="0"> ...</Grid>

  <!-- listbox results -->
  <ListBox Grid.Row="1">...</ListBox>

  <!-- buttons -->
  <Button Grid.Row="2">... </Button>

A simple tuning with RowDefinition‘s Height property (*, Auto, fixed, none) does the remaining part of the job. 🙂
but this is another post 😉

ps: Listbox has its own scrollbars, don’t forget it!

Technorati Tags: ,,.

Tags: ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: