c# - Button (In silverlight) does not have Click property -
i need silverlight button call specific method, button doesn't have click property. intellisense shows "clickmode" no "click"
i'm using system.windows.controls.button control
here's code xaml file
<usercontrol xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:telerik_windows_controls="clr-namespace:telerik.windows.controls;assembly=telerik.windows.controls.charting" x:class="..." mc:ignorable="d" d:designheight="300" d:designwidth="400"> <grid x:name="layoutroot" background="white"> <telerik_windows_controls:radchart name="radchart" content="radchart" margin="78,47,0,0" d:layoutoverrides="width, height"/> </grid> <button content="button" horizontalalignment="left" margin="8,8,0,0" verticalalignment="top" width="75"/> </usercontrol>
a wpf button has "onclick" event, or "command" property. may find link useful: wpf commanding overview
Comments
Post a Comment