In WPF, how do I display a grabber (the mall dotted triangle in the lower right corner) in a StatusBar control? Thanks.
+1
A:
The code below will work with or without a StatusBar control.
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
this.Loaded += new RoutedEventHandler(MainWindow_Loaded);
}
void MainWindow_Loaded(object sender, RoutedEventArgs e)
{
this.ResizeMode = ResizeMode.CanResizeWithGrip;
}
}
Brian Driscoll
2010-08-04 20:18:38
why not a single line in xaml? ResizeMode="CanResizeWithGrip"
lukas
2010-08-04 20:42:15
@lukas - sure, that works too! :)
Brian Driscoll
2010-08-04 20:51:08
Accepted the answer, with +1 for Lukas' suggestion. Thanks!
David Veeneman
2010-08-04 23:37:59