mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-04 09:06:04 +02:00
* Reset branch for WPF changes * Convert BMP to PNG; fix link-out-of-scope err * Add snippets for WPF... 6794 files!!!! * Add missing snippets * update file updated between migration * Fix paths to include * update breadcrumb and toc * fix index links * fix index links * fix index links * fix markdown
1.1 KiB
1.1 KiB
title, description, ms.date, dev_langs, helpviewer_keywords, ms.assetid
| title | description | ms.date | dev_langs | helpviewer_keywords | ms.assetid | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| How to: Automatically Size a Window to Fit Its Content | Learn how to set the property that specifies how a window resizes to fit its content in Windows Presentation Foundation (WPF). | 03/30/2017 |
|
|
333ca72a-c2f3-4414-9303-3fdabaaa1b32 |
How to: Automatically Size a Window to Fit Its Content
This example shows how to set the xref:System.Windows.Window.SizeToContent%2A property to specify how a window resizes to fit its content.
Example
[!code-csharpHOWTOWindowManagementSnippets#SetWindowSizeToContentPropertyCODE] [!code-vbHOWTOWindowManagementSnippets#SetWindowSizeToContentPropertyCODE]