Binding Image

2 posts, 0 answers
  1. Kirill
    Kirill avatar
    5 posts
    Member since:
    Feb 2014

    Posted 22 Nov 2014 Link to this post

    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:

    Why? Or this control don't accept binding images?
  2. Vladislav
    Vladislav avatar
    274 posts

    Posted 26 Nov 2014 Link to this post

    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.


    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.

  3. DevCraft banner
Back to Top