This is a migrated thread and some comments may be shown as answers.

Change Mouse for button

5 Answers 829 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
Mirko
Top achievements
Rank 1
Mirko asked on 25 Jul 2013, 10:01 AM
Hi,

I like to use the button for a Hyperlink Button. Everything looks fine if I´m setting the IsBackgroundVisible Property to false. 

But it´s not possible for me to change the mouse if the user has the mouse over the button. At this moment I like to show a Hand mouse courser.

Thanks for your help.


5 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 25 Jul 2013, 03:18 PM
Hi Mirko,

 The way to change the image of the Mouse Cursor that appears over the RadButton in WPF is to use the Cursor property:

<telerik:RadButton Cursor="Hand"/>

Regards,
Petar Mladenov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Mirko
Top achievements
Rank 1
answered on 26 Jul 2013, 06:13 AM
Sorry, I´m miss to write some more informations.

I´m writing my own usercontrol and the new Button is inherits from RadButton. In the style of my new Button I´m writing the following xaml code.

<Style TargetType="MyHyperlinkButton">
  <Setter Property="Cursor" Value="Hand" />
</Style>

But if I´m over the button the cursor don´t change.

Do you have any idea?

Thanks
0
Petar Mladenov
Telerik team
answered on 26 Jul 2013, 07:56 AM
Hello Mirko,

 We cannot reproduce such issue, please check out our test project and let us know if we a re missing something.

Regards,
Petar Mladenov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Mirko
Top achievements
Rank 1
answered on 26 Jul 2013, 12:55 PM
Hi,

currently I can´t modify your example like my situation. We have 2 assemblies. 

1. My Application
2. My Controls Libary

In the second one we have created a button like your example and set the style to the generic.xaml file in the themes folder. 
We use the button from the controls in the first assembly but the style from the generic.xaml file don´t used.

Thanks
0
Pavel R. Pavlov
Telerik team
answered on 31 Jul 2013, 06:37 AM
Hello Mirko,

Can you please try to merge the dictionary that you have created. The best way to merge it is to use the following snippet in the App.xaml file:

<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="Themes\Generic.xaml"/>
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Application.Resources>
I hope this will help you.

Regards,
Pavel R. Pavlov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Buttons
Asked by
Mirko
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Mirko
Top achievements
Rank 1
Pavel R. Pavlov
Telerik team
Share this question
or