|
1 | | -<!-- default badges list --> |
2 | | - |
3 | | -[](https://supportcenter.devexpress.com/ticket/details/E2775) |
4 | | -[](https://docs.devexpress.com/GeneralInformation/403183) |
5 | | -[](#does-this-example-address-your-development-requirementsobjectives) |
6 | | -<!-- default badges end --> |
7 | | - |
8 | | -# WinForms Tab Control - Create a custom style |
9 | | - |
10 | | -This example demonstrates how to create a custom style to paint the WinForms Tab Control as needed: |
11 | | - |
12 | | -```csharp |
13 | | -public Form1() { |
14 | | - InitializeComponent(); |
15 | | - PaintStyleCollection.DefaultPaintStyles.Add(new MyRegistrator()); |
16 | | - xtraTabControl1.PaintStyleName = "MyStyle"; |
17 | | -} |
18 | | -``` |
19 | | - |
20 | | - |
21 | | -## Files to Review |
22 | | - |
23 | | -* [MyRegistrator.cs](./CS/WindowsApplication1/Custom%20style/MyRegistrator.cs) (VB: [MyRegistrator.vb](./VB/WindowsApplication1/Custom%20style/MyRegistrator.vb)) |
24 | | -* [MySkinTabPainter.cs](./CS/WindowsApplication1/Custom%20style/MySkinTabPainter.cs) (VB: [MySkinTabPainter.vb](./VB/WindowsApplication1/Custom%20style/MySkinTabPainter.vb)) |
25 | | -* [Form1.cs](./CS/WindowsApplication1/Form1.cs) (VB: [Form1.vb](./VB/WindowsApplication1/Form1.vb)) |
26 | | -<!-- feedback --> |
27 | | -## Does this example address your development requirements/objectives? |
28 | | - |
29 | | -[<img src="https://www.devexpress.com/support/examples/i/yes-button.svg"/>](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=winforms-tab-control-custom-style&~~~was_helpful=yes) [<img src="https://www.devexpress.com/support/examples/i/no-button.svg"/>](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=winforms-tab-control-custom-style&~~~was_helpful=no) |
30 | | - |
31 | | -(you will be redirected to DevExpress.com to submit your response) |
32 | | -<!-- feedback end --> |
| 1 | +<!-- default badges list --> |
| 2 | + |
| 3 | +[](https://supportcenter.devexpress.com/ticket/details/E2775) |
| 4 | +[](https://docs.devexpress.com/GeneralInformation/403183) |
| 5 | +[](#does-this-example-address-your-development-requirementsobjectives) |
| 6 | +<!-- default badges end --> |
| 7 | + |
| 8 | +# WinForms Tab Control - Create a custom style |
| 9 | + |
| 10 | +This example demonstrates how to create a custom style to paint the WinForms Tab Control as needed: |
| 11 | + |
| 12 | +```csharp |
| 13 | +public Form1() { |
| 14 | + InitializeComponent(); |
| 15 | + PaintStyleCollection.DefaultPaintStyles.Add(new MyRegistrator()); |
| 16 | + xtraTabControl1.PaintStyleName = "MyStyle"; |
| 17 | +} |
| 18 | +``` |
| 19 | + |
| 20 | + |
| 21 | +## Files to Review |
| 22 | + |
| 23 | +* [MyRegistrator.cs](./CS/WindowsApplication1/Custom%20style/MyRegistrator.cs) (VB: [MyRegistrator.vb](./VB/WindowsApplication1/Custom%20style/MyRegistrator.vb)) |
| 24 | +* [MySkinTabPainter.cs](./CS/WindowsApplication1/Custom%20style/MySkinTabPainter.cs) (VB: [MySkinTabPainter.vb](./VB/WindowsApplication1/Custom%20style/MySkinTabPainter.vb)) |
| 25 | +* [Form1.cs](./CS/WindowsApplication1/Form1.cs) (VB: [Form1.vb](./VB/WindowsApplication1/Form1.vb)) |
| 26 | +<!-- feedback --> |
| 27 | +## Does this example address your development requirements/objectives? |
| 28 | + |
| 29 | +[<img src="https://www.devexpress.com/support/examples/i/yes-button.svg"/>](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=winforms-tab-control-custom-style&~~~was_helpful=yes) [<img src="https://www.devexpress.com/support/examples/i/no-button.svg"/>](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=winforms-tab-control-custom-style&~~~was_helpful=no) |
| 30 | + |
| 31 | +(you will be redirected to DevExpress.com to submit your response) |
| 32 | +<!-- feedback end --> |
0 commit comments