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 :)
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 :)