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

Binding Image

1 Answer 59 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.
Kirill
Top achievements
Rank 1
Kirill asked on 22 Nov 2014, 07:00 PM
Hi, i try to use RadImageButton? then i bind image

<telerikPrimitives:RadImageButton PressedStateImageSource="{Binding Owner.ImageUri, Converter={StaticResource UriConverter}}" RestStateImageSource="{Binding Owner.ImageUri, Converter={StaticResource UriConverter}}" HorizontalContentAlignment="Left" />

I get next wit with white box:
https://www.dropbox.com/s/alfo2bu11b6g74a/Screenshot%202014-11-22%2022.00.10.png?dl=0

Why? Or this control don't accept binding images?

1 Answer, 1 is accepted

Sort by
0
Vladislav
Telerik team
answered on 26 Nov 2014, 09:39 AM
Hi Kirill,

From the provided snippet it seems that you omitted to set explicitly the ButtonShape property to "Image", which can cause this problem. Can you please try setting it and let us the result?
If this doesn't help, is it possible to send us your project (or just the relevant part of it) in order to further investigate it?

Please find attached a sample project demonstrating a simple binding of RestStateImageSource and PressedStateImageSource.

Regards,
Vladislav
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ImageButton
Asked by
Kirill
Top achievements
Rank 1
Answers by
Vladislav
Telerik team
Share this question
or