This is a migrated thread and some comments may be shown as answers.

Close Button

2 Answers 97 Views
TabbedForm
This is a migrated thread and some comments may be shown as answers.
n/a
Top achievements
Rank 1
Veteran
n/a asked on 12 Jan 2021, 02:47 AM
How do you enable the Close Button only for certain tabs?

2 Answers, 1 is accepted

Sort by
0
Accepted
Serg
Top achievements
Rank 1
Veteran
answered on 12 Jan 2021, 04:48 AM
public RadTabbedForm1()
{
     this.TabbedFormControl.TabAdded += TabAddBrow;
}
private void TabAddBrow(object sender, RadTabbedFormControlEventArgs e)
{
    //if(any of your conditions){
    e.Tab.Item.CloseButton.Visibility = ElementVisibility.Collapsed; //hide the close button
    //}
}
0
n/a
Top achievements
Rank 1
Veteran
answered on 12 Jan 2021, 05:32 AM

Beautiful. Thank you! I've been trying the other: TabAdding event where CloseButton was null.

 

Tags
TabbedForm
Asked by
n/a
Top achievements
Rank 1
Veteran
Answers by
Serg
Top achievements
Rank 1
Veteran
n/a
Top achievements
Rank 1
Veteran
Share this question
or