Set button background transparent

6 posts, 1 answers
  1. chinbnhike
    chinbnhike avatar
    11 posts
    Member since:
    Nov 2008

    Posted 23 Feb 2010 Link to this post

    Hi,

    i have image background and a button.
    I  want to set button background = "transparent"

    <Telerik:RadButton Margin="77,56,0,0" HorizontalAlignment="Left" Width="94" Height="90" VerticalAlignment="Top"Background="Transparent">

    But when i move "MouseEnter" it havn't transparent.
    How to set transparent when mouse enter?

    Thanks!!!

     

     

     

  2. Dimitrina
    Admin
    Dimitrina avatar
    423 posts
    Member since:
    Sep 2012

    Posted 24 Feb 2010 Link to this post

    Hello chinbnhike,

    In order to remove the MouseOver and the Selected visual state, you have to make a custom style of RadButton. For more information you can follow the link below:

    http://www.telerik.com/help/silverlight/radcontrols-for-silverlight-expression-blend-support.html 

    If you have further  questions please do not hesitate to ask us.
    I hope this will help you.


    Kind regards,
    Dimitrina
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.

  3. Download a free trial of UI for WPF
  4. Alexey Oyun
    Alexey Oyun avatar
    74 posts
    Member since:
    Mar 2010

    Posted 13 Jul 2010 Link to this post

    Hi, I am having hard time figuring out where is MouseOver Brush of RadDropDown
    All I get is Normal, Disabled, and Active brushes as seen in screenshot.

    Please provide with an example of Custom Background for RadDropDown when drop down is open.

    Thanks, Alexey

  5. chinbnhike
    chinbnhike avatar
    11 posts
    Member since:
    Nov 2008

    Posted 13 Jul 2010 Link to this post

    Show me how to attach files samplecode, currently only allows image files

  6. Answer
    Dimitrina
    Admin
    Dimitrina avatar
    423 posts
    Member since:
    Sep 2012

    Posted 16 Jul 2010 Link to this post

    Hello chinbnhike,

    When you edit the control template of the RadDropDownButton you will see the control ButtonChrome. This control holds all visual states for the RadDropDownButton control. Please find the following attached files:

              In the raddropdownbutton-style.zip file you will find a custom style for RadDropDownButton control.
              In the blend.png file you will find which brushes have to be changed for the checked state.

    If you have further questions please do not hesitate to ask us.
    I hope this will help you.


    Regards,
    Dimitrina
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

  7. ADM-IT Denis Pujdak
    ADM-IT Denis Pujdak avatar
    34 posts
    Member since:
    Sep 2011

    Posted 15 Aug 2013 Link to this post


    <UserControl x:Class="MyProject.SilverlightControl1"
        xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
        mc:Ignorable="d"
        d:DesignHeight="300" d:DesignWidth="400">
         
        <Grid x:Name="LayoutRoot" Background="Green">
            <Image Width="18" Height="18" DataContext="{Binding PrintMovementCommand}" Source="{Binding IconSource}" VerticalAlignment="Center" HorizontalAlignment="Center" ToolTipService.ToolTip="{Binding Title}" Cursor="Hand">
                <i:Interaction.Triggers>
                    <i:EventTrigger EventName="MouseLeftButtonUp">
                        <i:InvokeCommandAction Command="{Binding Command}"/>
                    </i:EventTrigger>
                </i:Interaction.Triggers>
            </Image>
        </Grid>
         
    </UserControl>

Back to Top
Download a free trial of UI for WPF