In This Article

ZoomContentControlItemsControl Class

Represents a ItemsControl for use with the ZoomContentControl.

public class ZoomContentControlItemsControl : ItemsControl
Inheritance:
object Visual UIElement FrameworkElement Control ItemsControl object

Constructors

ZoomContentControlItemsControl()

Initializes an instance of the class.

public ZoomContentControlItemsControl()

Properties

ZoomLevel

Gets or sets a percentage value indicating the current animated zoom level of the content.

public double ZoomLevel { get; set; }

Property Value

double:

A percentage value indicating the current animated zoom level of the content.

Methods

ClearContainerForItemOverride(DependencyObject, object)

protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameter Type Description
element DependencyObject

The System.Windows.DependencyObject that is the wrapper element.

item object

The item that is being wrapped.

GetContainerForItemOverride()

Creates or identifies the element used to display the specified item.

protected override DependencyObject GetContainerForItemOverride()

Returns

DependencyObject:

The element that is used to display the given item.

IsItemItsOwnContainerOverride(object)

Determines if the specified item is (or is eligible to be) its own container.

protected override bool IsItemItsOwnContainerOverride(object item)
Parameter Type Description
item object

The item to check.

Returns

bool:

true if the item is (or is eligible to be) its own container; otherwise, false.

PrepareContainerForItemOverride(DependencyObject, object)

Prepares the specified element to display the specified item.

protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameter Type Description
element DependencyObject

The System.Windows.DependencyObject that is the wrapper element.

item object

The item that is being wrapped.

Fields

ZoomLevelProperty

Identifies the ZoomLevel dependency property. This field is read-only.

public static readonly DependencyProperty ZoomLevelProperty