Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5968767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:08:11+00:00 2026-05-22T20:08:11+00:00

How can I create buttons like this in silverlight. Do I need expression blend

  • 0

How can I create buttons like this in silverlight. Do I need expression blend for this.

Since I need to use the modified buttons at many places in my application, should I do it as a user control?

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T20:08:11+00:00Added an answer on May 22, 2026 at 8:08 pm

    You don’t need a UserControl for this, just a custom Button template as a style resource, which then you can reuse by setting the style on any Button instance.

    While it’s doable without Blend, I highly recommend you at least get the trial, it’s a really really nice IDE for design / visual development!

    Edit: As a little present here’s a starting point 🙂

    <Style x:Key="ButtonStyle1" TargetType="Button">
        <Setter Property="Foreground" Value="#FFFFFFFF"/>
        <Setter Property="Padding" Value="3"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="BorderBrush" Value="#FF000000"/>
        <Setter Property="Template">
             <Setter.Value>
                  <ControlTemplate TargetType="Button">
                        <Grid>
                              <VisualStateManager.VisualStateGroups>
                                    <VisualStateGroup x:Name="CommonStates">
                                          <VisualState x:Name="Normal"/>
                                          <VisualState x:Name="MouseOver"/>
                                          <VisualState x:Name="Pressed"/>
                                          <VisualState x:Name="Disabled">
                                               <Storyboard>
                                                    <DoubleAnimation Duration="0" To="0.4" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="DisabledVisualElement"/>
                                               </Storyboard>
                                          </VisualState>
                                    </VisualStateGroup>
                                    <VisualStateGroup x:Name="FocusStates">
                                            <VisualState x:Name="Focused">
                                                    <Storyboard>
                                                        <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="FocusVisualElement"/>
                                                    </Storyboard>
                                            </VisualState>
                                            <VisualState x:Name="Unfocused"/>
                                    </VisualStateGroup>
                              </VisualStateManager.VisualStateGroups>
                              <Border x:Name="Background" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                                      <Border.Background>
                                          <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                              <GradientStop Color="#FF707070" Offset="0"/>
                                              <GradientStop Color="#FF666666" Offset="0.49"/>
                                              <GradientStop Color="#FF5e5e5e" Offset="0.51"/>
                                              <GradientStop Color="#FF535353" Offset="1"/>
                                          </LinearGradientBrush>
                                      </Border.Background>
                              </Border>
                              <ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
                                    <ContentPresenter.Effect>
                                          <DropShadowEffect BlurRadius="3" ShadowDepth="2" Opacity="0.5"/>
                                    </ContentPresenter.Effect>
                              </ContentPresenter>
                              <Rectangle x:Name="DisabledVisualElement" Fill="#FFFFFFFF" IsHitTestVisible="false" Opacity="0"/>
                              <Rectangle x:Name="FocusVisualElement" IsHitTestVisible="false" Margin="1" Opacity="0" Stroke="#FF6DBDD1" StrokeThickness="1"/>
                        </Grid>
                  </ControlTemplate>
             </Setter.Value>
        </Setter>
    </Style>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In MainPage.xaml.cs (Silverlight Application) I can do something like this: StackPanel myStackPanel = new
I would like to create a PopoverController containing buttons, like this one: I can
this question can create a misunderstanding: I know I have to use CSS to
In Postgresql you can create additional Aggregate Functions with CREATE AGGREGATE name(...); But this
Is there anyway I can create a not in clause like I would have
I want to know if i can create a custom google maps application,on which
I'm trying to create a simple Silverlight application that involves parsing a CSV file
I want to create a layout like this: On the top a TextView, after
I'm wondering how I can create a custom pop-up like the one in the
Assume i want to create 500 wxWidget like (some panels , color buttons and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.