p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Visual Basic 2008 Essentials (http://p2p.wrox.com/forumdisplay.php?f=358)
-   -   Beginning VB 2008 (http://p2p.wrox.com/showthread.php?t=70560)

mhccStudent September 12th, 2008 11:08 AM

Beginning VB 2008
 
I hve Wrox's book, Beginning Visual Basic 2008 and have just started the XAML section which shows how to create a WPF application. In part of the setup procedures, it states to place a border control and an image (jpg according to the instruction) inside of the border tag.

The part I can't get through is that the book advises to set a BitmapEffect property (of the border tag) to a certain value, but when I select the border tag in the XAML editor, BitmapEffect doesn't show up in the Properties panel.

Any ideas what I'm doing wrong?

Thanks in advance
Chris


pug2694328 September 22nd, 2009 06:06 PM

Solved (sort of)
 
The way I solved it was by hand-typing the bitmapeffect property in the raw XAML code:

<Border HorizontalAlignment="Left" Margin="0,60,0,0" Name="Border1" VerticalAlignment="Top" Width="380" Height="200">
<Border.BitmapEffect>
<DropShadowBitmapEffect Opacity="0.5" ShadowDepth="8" Softness="1">
</DropShadowBitmapEffect>
</Border.BitmapEffect>
<Border.RenderTransform>
<SkewTransform CenterX="0" CenterY="0" AngleX="0" AngleY="-3">

</SkewTransform>
</Border.RenderTransform>
<Image Height="185" Name="Image1" Stretch="Fill" Width="300" Source="/CreditCard;component/CreditCard.jpg" />
</Border>


All times are GMT -4. The time now is 06:32 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.