title: Dynamically add dropshadow effect to Silverlight border?
body: <p>I would like to dynamically add a DropShadowEffect to my Silverlight border but cant figure out the C# syntax...</p>
  
  <pre><code>                &lt;Border BorderThickness="1"
                          CornerRadius="5"
                          Background="{StaticResource PanelBackground}"
                          BorderBrush="{StaticResource PanelBorderBrush}"
                          HorizontalAlignment="Left"
                          VerticalAlignment="Top"
                          Margin="0,8,0,0"
                          Width="250"&gt;
                      &lt;Border.Effect&gt;
                          &lt;DropShadowEffect /&gt;
                      &lt;/Border.Effect&gt;
                  &lt;/Border&gt;
  </code></pre>
  
  <p>I can create the border fine its the Border.Effect I am having trouble with.</p>
  
  <p>Paul.</p>