24 lines
537 B
C#
24 lines
537 B
C#
using System.Windows.Forms;
|
|
|
|
namespace AntdUIDemo.Views
|
|
{
|
|
public partial class SliderDemo : UserControl
|
|
{
|
|
public SliderDemo()
|
|
{
|
|
InitializeComponent();
|
|
BindEventHandler();
|
|
}
|
|
|
|
private void BindEventHandler()
|
|
{
|
|
slider_formmat.ValueFormatChanged += Slider_formmat_ValueFormatChanged;
|
|
}
|
|
|
|
private string Slider_formmat_ValueFormatChanged(object sender, AntdUI.IntEventArgs e)
|
|
{
|
|
return e.Value + "℃";
|
|
}
|
|
}
|
|
}
|