'宣言 Public Property OutlookBar As XamOutlookBar
public XamOutlookBar OutlookBar {get; set;}
Private Sub btnOptions_Click(ByVal sender As Object, ByVal e As RoutedEventArgs) ' WindowOptions is a window with a NavigationPaneOptionsControl inside Dim wndOptions As WindowOptions = New WindowOptions() ' NavigationPaneOptionsControl will display the Groups of outlookBar wndOptions.navPaneOptions.OutlookBar = Me.outlookBar wndOptions.Owner = Me wndOptions.ShowDialog() End Sub
private void btnOptions_Click(object sender, RoutedEventArgs e) { // WindowOptions is a window with a NavigationPaneOptionsControl inside WindowOptions wndOptions = new WindowOptions(); // NavigationPaneOptionsControl will display the Groups of outlookBar wndOptions.navPaneOptions.OutlookBar = this.outlookBar; wndOptions.Owner = this; wndOptions.ShowDialog(); }