Tuesday, October 13, 2015

WPF: How to stretch in width a WPF user control to its window?


Just Remove the width from UserControl it will automatically adjust the width.  

<UserControl x:Class="etc"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="300" >

No comments:

Post a Comment