RadbuttonElemnt Touch

2 posts, 1 answers
  1. Nitzan
    Nitzan  avatar
    3 posts
    Member since:
    Aug 2011

    Posted 23 Oct 2014 Link to this post

    Hello to everyone
    i am using the following teleriks demo for touch events
    and wan to make the radbuttonelemt to be a picture
    my picture is big and i need to dinamicly zoom it .
    so this is  the code 

    Imports Telerik.WinControls
    Imports Telerik.WinControls.UI

    Public Class CustomPanel
        Inherits RadControl
        Public Class CustomPanelLayout
            Inherits Telerik.WinControls.Layouts.LayoutPanel
        End Class

        Public Sub New()
        End Sub

        Private m_layout As CustomPanelLayout
        Private button As RadButtonElement
        Private WithEvents CustomShape1 As Telerik.WinControls.RadImageShape

        Protected Overrides Sub CreateChildItems(ByVal parent As RadElement)
            m_layout = New CustomPanelLayout()
            button = New RadButtonElement()
            button.AutoSize = False
            button.Size = New Size(100, 100)
            button.Location = New Point(100, 100)
            button.Text = "RadButtonElement"
            button.DoubleClickEnabled = True


    So i try to make the button element from picture
    and i cant find a way to do this. there is no background picture
    propery for zooming picture 

    please help

    moje i na bulgarski :)
  2. Answer
    Dess avatar
    1561 posts

    Posted 24 Oct 2014 Link to this post

    Hello Nitzan,

    Thank you for writing.

    I have prepared a sample project demonstrating how to achieve the desired behavior. Instead of the RadButtonElement, you can use LightVisualElement and specify its ImageLayout property. You can find attached a sample video (drag and drop over the browser to play) demonstrating the implemented functionality.

    Off topic, note that the official language for communication with the community is English.

    I hope this information helps. Should you have further questions, I would be glad to help.


    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