Extended Library for WPF and Silverlight | ComponentOne
Reflector (Silverlight Only) / Task-Based Help / Adding Simple Text Content to the Reflector
In This Topic
    Adding Simple Text Content to the Reflector
    In This Topic

    You can add simple text to the C1Reflector control by setting the Content property to a string. Once the text is added, you will see the text and its reflection and the C1Reflector control.

    At Design Time in Blend

    To add simple text to the control, complete the following steps:

    1. Select the C1Reflector control once to select it.
    2. Under the Properties panel, set the Content property to "Hello World!".

    In XAML

    To add simple text to the control, add Content ="Hello World" to the <c1ext:C1Reflector> tag so that the markup resembles the following:

    XAML
    Copy Code
    <c1ext:C1Reflector Content="Hello World!">
    

     

    In Code

    To add simple text to the control, complete the following steps:

    1. Add x:Name=C1Reflector1 to the <c1ext:C1Reflector> tag. This will give the control a unique identifier that you can use to call it in code.
    2. Switch to Code view and add the following beneath the InitializeComponent() method:

    Visual Basic
    Copy Code
    C1Reflector1.Content = "Hello World!"
    
       
    C#
    Copy Code
    C1Reflector1.Content = "Hello World!";
    
         
    1. Run the program.

     This Topic Illustrates the Following:

    The result of this topic will resemble the following image: