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

ImageButton is always disabled, why?

1 Answer 27 Views
ImageButton
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andrea Grandi
Top achievements
Rank 1
Andrea Grandi asked on 14 Dec 2012, 04:24 PM
Hi,

I'm trying to used an ImageButton in an example application and I wrote this code:

<!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <telerikPrimitives:RadImageButton
                x:Name="PlayButton"
                ButtonShape="Ellipse"
                IsEnabled="True"
                BorderThickness="2"
                ButtonBehavior="ToggleButton"
                ButtonType="Custom"
                RestStateImageSource="play.png"
                PressedStateImageSource="pause.png"
                HorizontalAlignment="Center"
             />
        </Grid>

The problem is that the button appears DISABLED even if the IsEnabled property is set to true. There is also another strange behaviour: if, from the propery window, I try to check the "IsEnabled" checkbox, the checkbox is not checked, as if the property wasn't valid. You can also give a look to the attached screenshot.

What's wrong with my code? Thanks!

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 15 Dec 2012, 11:59 AM
Hello Andrea,

Please refer to the Support ticket you have opened regarding the same case.

Greetings,
Deyan
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
ImageButton
Asked by
Andrea Grandi
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or