Disable DevExpress Wizard Finish Button with code behind
因為 UI 的流暢,所以在所有動作完成前 Finish Button 應該要被隱藏,不過 DevExpress 似乎沒提供,而找到的這篇 Disable Wizard Finish Button with code behind 提供的解法是
You can accomplish this task by creating a custom WizardButton
但我這人就是懶,所以最後被我用暴力法解了。
private void wizardControl1_SelectedPageChanged(object sender, WizardPageChangedEventArgs e)
{
if (e.Page == wpComplete)
{
wizardControl1.Controls[2].Visible = false; //Finish Button
}
}
Written by 小叮噹文青
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#C#
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#