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

RadbuttonElemnt Touch

1 Answer 61 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Nitzan
Top achievements
Rank 1
Nitzan asked on 23 Oct 2014, 05:28 PM
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()
        Me.EnableGesture(GestureType.All)
    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)
        MyBase.CreateChildItems(parent)
        m_layout = New CustomPanelLayout()
        parent.Children.Add(m_layout)
        button = New RadButtonElement()
        button.AutoSize = False
        button.Size = New Size(100, 100)
        button.Location = New Point(100, 100)
        button.Text = "RadButtonElement"
        Me.m_layout.Children.Add(button)
        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

PS 
moje i na bulgarski :)

1 Answer, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 24 Oct 2014, 09:50 AM
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.

Regards,
Desislava
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
Buttons, RadioButton, CheckBox, etc
Asked by
Nitzan
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or