Silverlight Activity Control - Width and Height Overflow?
I am struggling with controlling Silverlights' activity. I have placed the grid inside the activity control and whether it shows "Loading ..." or not, the grid no longer stretches, only the minimum values are applied. After removing the activity control everything works fine, yeah - but I need to use ctrl. Did I do something wrong? Best wishes RWH
Code:
<Grid x:Name="LayoutRoot" Style="{StaticResource DetailPageLayoutRoot}">
<activity:Activity IsActive="{Binding IsBusy}">
<Grid ShowGridLines="True" MinWidth="200" MinHeight="200" Background="Bisque" >
<Grid.ColumnDefinitions>
<ColumnDefinition MinWidth="50" Width="0.2*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition MinWidth="50" Width="0.8*"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" Margin="1" Background="Beige">
...
</StackPanel>
<controls:GridSplitter Grid.Column="1" VerticalAlignment="Stretch" HorizontalAlignment="Center" Margin="1" Width="4" MinWidth="4" MaxWidth="4"/>
<StackPanel Grid.Column="2" Margin="1" Background="AliceBlue">
...
</StackPanel>
</Grid>
</activity:Activity>
</Grid>
+2
rwh
source
to share
2 answers
Update:
This control is now (November 2009) included in the Silverlight toolbox. It was renamed BusyIndicator. Get it here .
Original answer:
The latest version of the control fixes this problem. Download it here: http://www.davidpoll.com/2009/09/14/update-2-displaying-background-activity-in-a-silverlight-ria-application/
+1
source to share