'Declaration Public Shared ReadOnly NavigationPaneOptionsControlStyleProperty As DependencyProperty
public static readonly DependencyProperty NavigationPaneOptionsControlStyleProperty
Private Sub XOBinit() Dim optionsStyle As Style = New Style(GetType(NavigationPaneOptionsControl)) optionsStyle.Setters.Add(New Setter(BackgroundProperty, New SolidColorBrush(Colors.LightGreen))) xamOutlookBar1.NavigationPaneOptionsControlStyle = optionsStyle Dim popupButtonStyle As Style = New Style(GetType(ToggleButton)) popupButtonStyle.Setters.Add(New Setter(ContentProperty, "Show popup")) Me.Resources.Add(XamOutlookBar.NavigationPaneToggleButtonStyleKey, popupButtonStyle) End Sub
public IG_XamOutlookBar_Properties() { InitializeComponent(); Style optionsStyle = new Style(typeof(NavigationPaneOptionsControl)); optionsStyle.Setters.Add(new Setter(BackgroundProperty, new SolidColorBrush(Colors.LightGreen))); xamOutlookBar1.NavigationPaneOptionsControlStyle = optionsStyle; Style popupButtonStyle = new Style(typeof(ToggleButton)); popupButtonStyle.Setters.Add(new Setter(ContentProperty, "Show popup")); this.Resources.Add(XamOutlookBar.NavigationPaneToggleButtonStyleKey, popupButtonStyle); }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2