Skip Navigation LinksHome / Search


Results Per Page

Found 1 result for CaretBrush.
Date between: <not defined> and <not defined>
Search in: News , Articles , Tips , Shows , Showcase , Books

Order by Publish Date   Ascending Title   Rating  

  • 1 comments  /  posted by  Nikolay Raychev  on  Mar 25, 2009 (more than a year ago)
    It's very easy to style the caret in Silverlight 3. Look at that huge TextBox with a caret in the rainbow colors:

    You just need to set the CaretBrush property:

    <TextBox FontSize="50" Width="100" Height="80">  
            <ScaleTransform ScaleX="6" ScaleY="1"/>  
            <LinearGradientBrush x:Name="backgroundLinearGradientBrush"
                    StartPoint="0,0" EndPoint="0,1">
                    <GradientStop Color="Red" Offset="0" />
                    <GradientStop Color="Orange" Offset="0.167" />
                    <GradientStop Color="Yellow" Offset="0.333" />
                    <GradientStop Color="Green" Offset="0.5"/>
                    <GradientStop Color="Blue" Offset="0.667" />
                    <GradientStop Color="Indigo" Offset="0.833" />
                    <GradientStop Color="Violet" Offset="1" />

    You can use any Silverlight supported Brush.

Help us make SilverlightShow even better and win a free t-shirt. Whether you'd like to suggest a change in the structure, content organization, section layout or any other aspect of SilverlightShow appearance - we'd love to hear from you! Need a material (article, tutorial, or other) on a specific topic? Let us know and SilverlightShow content authors will work to have that prepared for you. (hide this)