views:

25

answers:

1

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
why not a single line in xaml? ResizeMode="CanResizeWithGrip"
lukas
@lukas - sure, that works too! :)
Brian Driscoll
Accepted the answer, with +1 for Lukas' suggestion. Thanks!
David Veeneman