Hello Syncfusion,
Firstly, Big thank for your support and all work that you giving to community.
I want customize the TitleBarTextControl by to set it to my customized control. However, the form's MenuBar hides the TitleBarTextControl. I use the last version 18.1.0.52.
You find the image that shows the pbroblem and the following is my source code:
public partial class FormPrincipale : SfForm
{
public FormPrincipale()
{
InitializeComponent();
#region Style Fenetre
this.Style.TitleBar.BackColor = MyTitleBarColor;
this.Style.TitleBar.IconVerticalAlignment = System.Windows.Forms.VisualStyles.VerticalAlignment.Center;
this.Style.TitleBar.Height = 40;
TitrePanel = new FlowLayoutPanel();
TitrePanel.Size = new Size(190, 34);
TitrePanel.Padding = new Padding(2);
TitrePanel.Dock = DockStyle.Fill;
LNomApplication = new Label();
LVersionApplication = new Label();
LTypeApplication = new Label();
LServeur = new Label();
LDossier = new Label();
LUtilisateur = new Label();
LNomApplication.AutoSize = LVersionApplication.AutoSize =
LTypeApplication.AutoSize = LServeur.AutoSize = LDossier.AutoSize =
LUtilisateur.AutoSize = true;
LNomApplication.Dock = LVersionApplication.Dock =
LTypeApplication.Dock = LServeur.Dock = LDossier.Dock =
LUtilisateur.Dock = DockStyle.Left;
TitrePanel.Controls.Add(LNomApplication);
TitrePanel.Controls.Add(LVersionApplication);
TitrePanel.Controls.Add(LTypeApplication);
TitrePanel.Controls.Add(LServeur);
TitrePanel.Controls.Add(LDossier);
TitrePanel.Controls.Add(LUtilisateur);
//Loads the TitrePanel to the title bar.
this.TitleBarTextControl = TitrePanel;
#endregion
Best regards
Attachment:
TitleBarTextControl_956b5974.zip