Answer the question
In order to leave comments, you need to log in
How to create a custom control?
I made a custom UserControl , added my fields:
public string OffText { set; get; }
public string OnText { set; get; }
public bool State { set; get; }
public FakeToggleSwitch()
{
InitializeComponent();
if (State)
{
CheckEdit.Text = OnText;
}
else
{
CheckEdit.Text = OffText;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question