Extended Library for WPF and Silverlight | ComponentOne
In This Topic
    Setting the Distance Between Items
    In This Topic

    The ItemDistance property sets the distance between the unselected C1CoverFlow items (for more information, see the Item Distance topic). In this topic, you will set the ItemDistance property to 1 so that the distance between items will be equal to the item size. 

    Note: The ItemDistance property doesn’t change the distance between the selected item and the items beside it. For more information, see the Selected Item Distance topic.

    In Blend

    Complete the following steps:

    1. Select the C1CoverFlow control.
    2. In the Properties panel, set the ItemDistance property to “1”.

    In XAML

    Add ItemDistance=”1” to the <c1ext:C1CoverFlow> tag so that the markup resembles the following:

    XAML
    Copy Code
    <c1ext:C1CoverFlow Margin="0,0,87,233" ItemDistance=”1”>
    

     In Code

    Complete the following steps:

    1. In XAML view, add “x:Name=”C1CoverFlow” to the <c1ext:C1CoverFlow> tag so that the control will have a unique identifier for you to call in code.
    2. Add the following code beneath the InitializeComponent method:

    Visual Basic
    Copy Code
    C1CoverFlow1.ItemDistance = 1
    

    C#
    Copy Code
    C1CoverFlow1.ItemDistance = 1;
    

     

    1. Run the program.

     This Topic Illustrates the Following:

    The following image demonstrates a C1CoverFlow control with its ItemDistance property set to 1.