[]
ContentPresenter whose size can be determined by the size of its content and keep it if the content size is reduced.
public class AutoSizeContentPresenter : ContentPresenter, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IDisposable
This control is useful for popup's whose content is a virtualizing control as the size can be changed as the user scrolls.
| Name | Description |
|---|---|
| AutoSizeContentPresenter() | Initializes a new instance of the AutoSizeContentPresenter class. |
| Name | Description |
|---|---|
| AutoSizeModeProperty | Identifies the AutoSizeMode dependency property. |
| Name | Description |
|---|---|
| AutoSizeMode | Gets or sets how the control determine its size. |
| IsDisposed | Gets whether this instance is disposed. |
| Name | Description |
|---|---|
| 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() |