Sharker Khaleed Mahmud Silverlight Tips & Tricks

January 28, 2010

Tricks and Tips 24 : Image text in Silverlight

Filed under: Silverlight — Tags: , , , — shamrat231 @ 4:55 AM

MainPage.xaml

<UserControl xmlns:my=”clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data”  x:Class=”Tips.MainPage”
    xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation
    xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml
    xmlns:d=”http://schemas.microsoft.com/expression/blend/2008
    xmlns:mc=”http://schemas.openxmlformats.org/markup-compatibility/2006
    mc:Ignorable=”d”
    xmlns:local=”clr-namespace:Tips”
    d:DesignHeight=”300″ d:DesignWidth=”400″>
    <Grid x:Name=”LayoutRoot”>
        <Image Source=”Images/8312_Sony_VIAO_Notebooks.jpg” />
        <TextBlock Text=”TIPS” FontSize=”96″ FontWeight=”Bold” VerticalAlignment=”Center” HorizontalAlignment=”Center”>
            <TextBlock.Foreground>
                <ImageBrush ImageSource=”Images/8312_Sony_VIAO_Notebooks.jpg” Stretch=”UniformToFill” />
            </TextBlock.Foreground>
            <TextBlock.Effect>
                <DropShadowEffect ShadowDepth=”10″ />
            </TextBlock.Effect>
        </TextBlock>
    </Grid>
</UserControl>

Sharker Khaleed Mahmud
Software Developer

No Comments Yet »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.