LayoutControl Event

1 Answer 41 Views
LayoutControl
Luke
Top achievements
Rank 1
Luke asked on 27 Dec 2022, 01:46 PM

I am developing HMI Tool using Layoutcontrol.

I added Control(Button) to LayoutControl using LayoutControlToolBoxView.

What should I do if I want to receive the button's Event?

1 Answer, 1 is accepted

Sort by
0
Stenly
Telerik team
answered on 30 Dec 2022, 01:10 PM

Hello Luke,

To achieve this functionality, you can subscribe to the ButtonBase.Click event of RadLayoutControl. This event will occur when a button inside the RadLayoutControl is clicked.

The following code snippets show this suggestion's implementation:

<telerik:RadLayoutControl x:Name="layout" ButtonBase.Click="layout_Click"/>
private void layout_Click(object sender, RoutedEventArgs e)
{
    //Execute logic here
}

In addition, the following article contains additional information regarding the ButtonBase.Click event:

ButtonBase.Click Event (System.Windows.Controls.Primitives) | Microsoft Learn

With this being said, I hope the provided information will be of help to you.

Regards,
Stenly
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
LayoutControl
Asked by
Luke
Top achievements
Rank 1
Answers by
Stenly
Telerik team
Share this question
or