chang2008
asked on
Disable resize
Hello all,
I program with WPF. How can I disable resize?
myFile.xaml
<UserControl>
<Grid>
<TreeVeiw>
</TreeView>
</Grid>
</UserControl>
Thank you very much in advance. :)
I program with WPF. How can I disable resize?
myFile.xaml
<UserControl>
<Grid>
<TreeVeiw>
</TreeView>
</Grid>
</UserControl>
Thank you very much in advance. :)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I did like this & it works.
Window window = new Window();
window.ResizeMode = ResizeMode.NoResize;
Thanks
Window window = new Window();
window.ResizeMode = ResizeMode.NoResize;
Thanks
e.g.
<UserControl ..... MinHeight="100" MaxHeight="100" MinWidth="200" MaxWidth="200">