[]
C1Book is an ItemsControl that contains elements which are shown as pages of a book. End-users can turn the pages as they would in a real book by using the mouse to drag the pages or double-clicking the corner page.
[TemplateVisualState(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(C1BookItem))]
public class C1Book : ItemsControl, IAnimatable, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild, IContainItemStorage, ISupportInitialize
Name | Description |
---|---|
C1Book() | Initializes a new instance of a C1Book. |
Name | Description |
---|---|
ApplyPageTemplateProperty | Identifies the ApplyPageTemplate attached property. |
CurrentPageProperty | Identifies the CurrentPage dependency property. |
CurrentZoneProperty | Identifies the CurrentZone dependency property. |
DropToleranceProperty | Identifies the DropTolerance dependency property. |
FoldSizeProperty | Identifies the FoldSize dependency property. |
IsFirstPageOnTheRightProperty | Identifies the IsFirstPageOnTheRight dependency property. |
ItemContainerStyleProperty | Identifies the ItemContainerStyle dependency property. |
LeftPageTemplateProperty | Identifies the LeftPageTemplate dependency property. |
OrientationProperty | Identifies the Orientation dependency property. |
PageFoldActionProperty | Identifies the PageFoldAction dependency property. |
PageModeProperty | Identifies the PageMode dependency property. |
RightPageTemplateProperty | Identifies the RightPageTemplate dependency property. |
ShowInnerShadowsProperty | Identifies the ShowInnerShadows dependency property. |
ShowOuterShadowsProperty | Identifies the ShowOuterShadows dependency property. |
ShowPageFoldProperty | Identifies the ShowPageFold dependency property. |
TurnIntervalProperty | Identifies the TurnInterval dependency property. |
Name | Description |
---|---|
CurrentPage | Gets or sets the current page that is displayed |
CurrentZone | Gets the zone of the book under the mouse. |
DropTolerance | Gets or sets the position where pages begin to turn when dropped. If the value is 0.0, the default, pages only turns if dropped over the opposite page. Positive values are understood of a proportion of the page width that still trigger a page turn. If value is 0.1, dropping a left page 10 percent to the left of the center of the book still turns the page. |
FoldSize | Gets or sets the size of the fold (in pixels) |
IsFirstPageOnTheRight | Gets or sets whether the first page of the book is displayed in the right side of the book. |
ItemContainerStyle | Gets or sets the style applied to all item containers. |
LeftPageTemplate | Gets or sets the template of the page shown in the left side of the book. |
Orientation | Gets or sets the orientation of the pages. |
PageFoldAction | Gets or sets the action that will raise the turn animation. |
PageMode | Gets or sets the mode of page. |
RightPageTemplate | Gets or sets the template of the page shown in the right side of the book. |
ShowInnerShadows | Gets or sets whether the inner shadows are shown. |
ShowOuterShadows | Gets or sets whether the outer shadows are shown. |
ShowPageFold | Gets or sets whether the fold is displayed |
TurnInterval | Gets or sets the amount (in milliseconds) of time of the turn animation. |
Name | Description |
---|---|
BeginInit() | |
ChangeVisualStateCommon(bool) | Updates the current visual state of the Common visual state group to match the object's properties. |
ClearContainerForItemOverride(DependencyObject, object) | |
EndInit() | |
GetApplyPageTemplate(DependencyObject) | Gets the value of the ApplyPageTemplate attached property for the specified element. |
GetContainerForItemOverride() | |
IsItemItsOwnContainerOverride(object) | |
OnApplyTemplate() | Builds the visual tree for the C1Book control when a new template is applied. |
OnCreateAutomationPeer() | Gets an AutomationPeer object used for testing the control. |
OnItemsChanged(NotifyCollectionChangedEventArgs) | |
OnKeyDown(KeyEventArgs) | |
OnMouseEnter(MouseEventArgs) | |
OnMouseLeave(MouseEventArgs) | |
OnMouseMove(MouseEventArgs) | |
OnPropertyChanged(DependencyPropertyChangedEventArgs) | Invoked whenever the effective value of any dependency property has been updated. |
PrepareContainerForItemOverride(DependencyObject, object) | |
SetApplyPageTemplate(DependencyObject, ApplyPageTemplate) | Sets the value of the ApplyPageTemplate attached property for the specified element. |
TurnPage(bool) | Turns to the next or previous page with a page folding animation. |
getItems() | Instead of Items property to get items in case of single page mode. |
Name | Description |
---|---|
CurrentPageChanged | Event raised when the CurrentPage property has changed. |
CurrentZoneChanged | Event raised when the CurrentZone property has changed. |
DragPageFinished | Occurs when the page stops being dragged. |
DragPageStarted | Occurs when the page starts to be dragged. |
IsMouseOverChanged | Event raised when the IsMouseOver property has changed. |