Task-Based Help / Customizing the C1Dialog Control / Customizing the Foreground and Background Colors
Customizing the Foreground and Background Colors

This topic illustrates setting the foreground and background colors of the Content Area in both the Design View and in the Source View.

In Design View

Complete the following steps:

  1. Add the C1Dialog control to an ASP.NET project.
  2. Select the C1Dialog control.
  3. Locate the Foreground Color C1Dialogand Background C1DialogColor buttons in the Visual Studio Task toolbar.
  4. Click the Foreground Color button to choose your text color.
  5. Click the Background Color button to choose your background color.
  6. Enter text in the C1Dialog control.
  7. Press F5 or start debugging to run your project. Your C1Dialog window should resemble the following image:

    C1Dialog

In Source View

Complete the following steps:

  1. Insert the following .html markup between the <cc1:C1Dialog> tags:

    To write code in Source View

    style="color: #99CCFF; background-color: #003366"
    <Content>
    Enter your text here
    </Content>
    
     
    
  2. Run your program to see the formatted C1Dialog and text.