BookPanel Class
public class BookPanel : VirtualizingPanel
- Inheritance:
- object Visual UIElement FrameworkElement Panel VirtualizingPanel object
Constructors
BookPanel()
Initializes a new instance of the BookPanel class.
public BookPanel()
Properties
IsFirstPageFront
Gets or sets a value indicating whether the first page displayed by the book panel is front facing. This is a dependency property.
public bool IsFirstPageFront { get; set; }
Property Value
- bool:
true
if the first page displayed by the book panel is front facing; otherwise,false
. The default value isfalse
.
Orientation
Gets or sets the orientation of the panel.
public Orientation Orientation { get; set; }
Property Value
- Orientation:
The orientation of the panel.
PageDepth
Gets or sets the number of pages measured and arranged on the back and front sides of the book panel. This is a dependency property.
public int PageDepth { get; set; }
Property Value
- int:
The number of pages measured and arranged on the back and front sides of the book panel. The default value is
1
.
PendingViewIndex
Gets or sets the index of the pending selected view. This is a dependency property.
public int? PendingViewIndex { get; set; }
Property Value
- int?:
The index of the pending selected view. The default value is
null
.
SelectedViewIndex
Gets or sets the index of the selected view. This is a dependency property.
public int SelectedViewIndex { get; set; }
Property Value
- int:
The index of the selected view. The default value is
0
.
Methods
ArrangeOverride(Size)
Provides the behavior for the Arrange pass of Silverlight layout. Classes can override this method to define their own Arrange pass behavior.
protected override Size ArrangeOverride(Size finalSize)
Parameter | Type | Description |
---|---|---|
finalSize | Size | The final area within the parent that this object should use to arrange itself and its children. |
Returns
- Size:
The actual size that is used after the element is arranged in layout.
MeasureOverride(Size)
Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior.
protected override Size MeasureOverride(Size availableSize)
Parameter | Type | Description |
---|---|---|
availableSize | Size | The available size that this object can give to child objects. |
Returns
- Size:
The size that this object determines it needs during layout, based on its calculations of the allocated sizes for child objects; or based on other considerations, such as a fixed container size.
OnItemsChanged(object, ItemsChangedEventArgs)
Called when the Items
collection that is associated with the ItemsControl for this Panel changes.
protected override void OnItemsChanged(object sender, ItemsChangedEventArgs args)
Parameter | Type | Description |
---|---|---|
sender | object | The object that raised the event. |
args | ItemsChangedEventArgs | Provides data for the |
Fields
IsFirstPageFrontProperty
Identifies the IsFirstPageFront dependency property. This field is read-only.
public static readonly DependencyProperty IsFirstPageFrontProperty
OrientationProperty
Identifies the Orientation dependency property. This field is read-only.
public static readonly DependencyProperty OrientationProperty
PageDepthProperty
Identifies the PageDepth dependency property. This field is read-only.
public static readonly DependencyProperty PageDepthProperty
PendingViewIndexProperty
Identifies the PendingViewIndex dependency property. This field is read-only.
public static readonly DependencyProperty PendingViewIndexProperty
SelectedViewIndexProperty
Identifies the SelectedViewIndex dependency property. This field is read-only.
public static readonly DependencyProperty SelectedViewIndexProperty