Extended Library for WPF and Silverlight | ComponentOne
Book / C1Book Task-Based Help / Clearing Items in a Book
In This Topic
    Clearing Items in a Book
    In This Topic

    You may choose to allow users to clear all items from the C1Book control at run time, or you may need to clear the items collection when binding and then rebinding the control to another data source.

    For example, to clear the book's content add the following code to your project:

    Visual Basic
    Copy Code
    Me.C1Book1.Items.Clear()
    

    C#
    Copy Code
    this.c1Book1.Items.Clear();
    

     

    What You've Accomplished

    The control's content will be cleared. If you run the application, you will observe that the book is blank.