Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Mon Feb 02, 2009 11:47 am Post subject: HOWTO: Use ShellAppBar in WPF applications |
|
|
From the 'Shell MegaPack.Net WPF' toolbox tab, double-click on the 'ShellAppBar' component to place it on your WPF form; then use the following code in the Window.Loaded event:
[C#]
Code: | private void Window_Loaded(object sender, RoutedEventArgs e)
{
shellAppBar1.HostWindow = this;
} |
[VB.Net]
Code: | Private Sub Window1_Loaded(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles MyBase.Loaded
ShellAppBar1.HostWindow = Me
End Sub |
Your form will be converted into an appbar with full autohide and drag-dock functionality. |
|