Pergunta

I'm use DevExpress DXperience and I created an MDI application that contains MdiChild forms.

1) I set in the Program.cs file "DevExpress Dark Style" as the defaut skin and it worked, also for child forms, the only problem that the skin of the title bar doesn't change. I tried this code Form.LookAndFeel = "DevExpress Dark Style"; but it gives me this error:

Property or indexer 'LookAndFeel' cannot be assigned to -- it is read only.

The same problem when I choose to change the skin from skinsRibbonPageGroup.

2) When I run an MDI child form, it should show me a ScrollBar when I change its dimensions, but this doesn't happen.

enter image description here

Foi útil?

Solução 2

Solved !

The first solution is DmitryG's answer.

DevExpress.Skins.SkinManager.EnableMdiFormSkins();

For the second solution I contacted DevExpress Support Center and they told me that This behavior is caused by the fact that my ChildForm instances do not display scrollbars automatically, and to avoid this, simply to set the AutoScroll property to the true value for a ChildForm instance.

this.AutoScroll = true;

Outras dicas

1) You should use the SkinManager.EnableMdiFormSkins method to enables the title bar skinning feature for MDI child XtraForms.

Related articles:

  1. Skins
  2. LookAndFeel

2) It's difficult to determine the cause of the second issue due to the lack of information. I recommend you report the issue with a scrollbars directly to the DevExpress Support Center with a small sample project illustrating the problem.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top