[]
        
(Showing Draft Content)

C1.WinUI.Input.AutoSizeContentPresenter

AutoSizeContentPresenter Class

Microsoft.UI.Xaml.Controls.ContentPresenter whose size can be determined by the size of its content and keep it if the content size is reduced.

Inheritance
AutoSizeContentPresenter
Implements
Namespace: C1.WinUI.Input
Assembly: C1.WinUI.Input.dll
Syntax
public class AutoSizeContentPresenter : ContentPresenter, IDisposable
Public Class AutoSizeContentPresenter
    Inherits ContentPresenter
    Implements IDisposable
Remarks

This control is useful for popup's whose content is a virtualizing control as the size can be changed as the user scrolls.

Constructors

Name Description
AutoSizeContentPresenter()

Initializes a new instance of the AutoSizeContentPresenter class.

Fields

Name Description
AutoSizeModeProperty

Identifies the AutoSizeMode dependency property.

Properties

Name Description
AutoSizeMode

Gets or sets how the control determine its size.

IsDisposed

Gets whether this instance is disposed.

Methods

Name Description
ArrangeOverride(Size)
Dispose()
Dispose(bool)
Finalize()

Finalizes this instance of the AutoSizeContentPresenter class.

InvalidateAutoSize()

Invalidates the cached size. After this call the size of this control will be the size of the content for all the modes.

MeasureOverride(Size)
OnApplyTemplate()