I have some code below that is placing a textblock on the right center of my map. When clicked it expands to give the user choices of layers to turn on and off....The code is working fine...Although... I am loking to do a couple things to it and am having a hard time figuing them out.With the code as is when the user sees the map they see this wide textblock on the screen. I am trying to figure out how to show the textblock really narrow, THEN when clicked expand width and height....1. I can set the width in the first stack panel but that effects the width of the entire grid. Having the stackpanel sest to width of 30 I thought I might be able to set teh width of the storyboard as well....again nothing doing2. I then tried to change the width of the Grid relating to the textblock but nothign doing.Ideally what I would like is a little arrow looking image on the edge of the screen...when clicked expand width and height....Any help or thoughts woudl be greatly appreciated....Thanks <Storyboard x:Name="HideSpatialQuery1" >
<DoubleAnimation Duration="0:0:0.5" BeginTime="0:0:0" Storyboard.TargetName="SpatialQueryScaleTransform1" Storyboard.TargetProperty="ScaleX" To="0" />
<DoubleAnimation Duration="0:0:0.5" BeginTime="0:0:0" Storyboard.TargetName="SpatialQueryScaleTransform1" Storyboard.TargetProperty="ScaleY" To="0" />
<DoubleAnimation Duration="0:0:0.5" BeginTime="0:0:0.5" Storyboard.TargetName="SpatialQueryGrid1" Storyboard.TargetProperty="Height" To="0" />
</Storyboard>
<Storyboard x:Name="ShowSpatialQuery1" >
<DoubleAnimation Duration="0:0:0.5" BeginTime="0:0:0" Storyboard.TargetName="SpatialQueryGrid1" Storyboard.TargetProperty="Height" To="400" />
<DoubleAnimation Duration="0:0:0.5" BeginTime="0:0:0" Storyboard.TargetName="SpatialQueryGrid1" Storyboard.TargetProperty="Width" To="200" />
<DoubleAnimation Duration="0:0:0.5" BeginTime="0:0:0.5" Storyboard.TargetName="SpatialQueryScaleTransform1" Storyboard.TargetProperty="ScaleX" To="1" />
<DoubleAnimation Duration="0:0:0.5" BeginTime="0:0:0.5" Storyboard.TargetName="SpatialQueryScaleTransform1" Storyboard.TargetProperty="ScaleY" To="1" />
</Storyboard>
<Grid>
<Border x:Name="SpatialQueryBorder1" Width="30" Background="{StaticResource PanelGradient}" HorizontalAlignment="Right" VerticalAlignment="Center" BorderBrush="#66FFFFFF" BorderThickness="1" CornerRadius="0,0,5,5" Effect="{StaticResource dropShadow}" Height="Auto" >
<StackPanel Orientation="Vertical" VerticalAlignment="Center" >
<Grid x:Name="SpatialQueryHeaderGrid1" Cursor="Hand" Width="30" MouseLeftButtonUp="SpatialQueryHeaderGrid1_MouseLeftButtonUp" ToolTipService.ToolTip="Toggle Spatial Query Tab" >
<Rectangle Fill="#00FFFFFF" />
<TextBlock HorizontalAlignment="Left" Margin="5,3,5,3" Foreground="White" Text="{Binding Text, Mode=OneWay, ElementName=SpatialQueryTitle1}" VerticalAlignment="Center" FontSize="11" FontWeight="Bold" >
<TextBlock.Effect>
<BlurEffect />
</TextBlock.Effect>
</TextBlock>
<TextBlock x:Name="SpatialQueryTitle1" HorizontalAlignment="Left" Width="30" Margin="0,0,0,0" Foreground="Black" Text="Layers" VerticalAlignment="Center" Effect="{StaticResource miniDropShadow}" />
</Grid>
<Grid x:Name="SpatialQueryGrid1" Height="0" VerticalAlignment="Center" HorizontalAlignment="Right" RenderTransformOrigin="0.5,0.5" >
<Grid.RenderTransform>
<ScaleTransform x:Name="SpatialQueryScaleTransform1" ScaleX="0" ScaleY="0" />
</Grid.RenderTransform>
<Grid>
<Border Background="#996495ED" BorderThickness="1" CornerRadius="5"
HorizontalAlignment="right" VerticalAlignment="bottom"
Margin="10,10,10,10" Padding="5" BorderBrush="red" >
<!-- SOME LISTBOX CODE HERE -->
</Border>
</Grid>
</Grid>
</StackPanel>
</Border>
</Grid>