Fit a window into XAML content
Posted: 23 Apr 2020, 08:39
Hi,
I want to create a popup window populated with a XAML, and I want that window to fit the size of the XAML content.
How can I know the correct size for the window.
# In WPF I think I can use the property SizeToContent to let the window automatically adjust its size.
https://docs.microsoft.com/en-us/dotnet ... mework-4.8
thanks.
I want to create a popup window populated with a XAML, and I want that window to fit the size of the XAML content.
How can I know the correct size for the window.
# In WPF I think I can use the property SizeToContent to let the window automatically adjust its size.
https://docs.microsoft.com/en-us/dotnet ... mework-4.8
thanks.