Skip to content

Commit

Permalink
Fixes #294 by removing OverridesDefaultStyle on some styles
Browse files Browse the repository at this point in the history
  • Loading branch information
batzen committed Apr 11, 2016
1 parent d6bdd25 commit 6e924fc
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 9 deletions.
5 changes: 5 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog for Fluent.Ribbon

## 4.0.2

- ### Bug fixes
- [#294](../../issues/294) - Issues with default style and OverridesDefaultStyle

## 4.0.1

- ### Bug fixes
Expand Down
5 changes: 4 additions & 1 deletion Fluent.Ribbon/Controls/Ribbon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2224,7 +2224,10 @@ private void LoadState(Stream stream)
}

// Since application is not fully loaded we have to delay the refresh
this.ribbon.RunInDispatcherAsync(this.ribbon.QuickAccessToolBar.Refresh, DispatcherPriority.Background);
if (this.ribbon.QuickAccessToolBar != null)
{
this.ribbon.RunInDispatcherAsync(this.ribbon.QuickAccessToolBar.Refresh, DispatcherPriority.Background);
}

// Sync QAT menu items
foreach (var menuItem in this.ribbon.QuickAccessItems)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,6 @@

<Style x:Key="BackstageStyle"
TargetType="{x:Type Fluent:BackstageTabControl}">
<Setter Property="OverridesDefaultStyle"
Value="True" />
<Setter Property="Foreground"
Value="{DynamicResource DefaultFontBrush}" />
<Setter Property="Template"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
<Style x:Key="StartScreenTabControlStyle"
TargetType="{x:Type Fluent:StartScreenTabControl}"
BasedOn="{StaticResource {x:Type Fluent:BackstageTabControl}}">
<Setter Property="OverridesDefaultStyle"
Value="True" />
<Setter Property="Template"
Value="{DynamicResource StartScreenTabControlTemplate}" />
<Setter Property="Background"
Expand Down
4 changes: 2 additions & 2 deletions Shared/GlobalAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

[assembly: AssemblyVersion("4.0.1.0")]
[assembly: AssemblyFileVersion("4.0.1.0")]
[assembly: AssemblyVersion("4.0.2.0")]
[assembly: AssemblyFileVersion("4.0.2.0")]
[assembly: AssemblyInformationalVersion("SRC")]

[assembly: ComVisible(false)]
Expand Down
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
only:
- develop

version: 4.0.1-dev{build}
version: 4.0.2-dev{build}
configuration: Release

init:
Expand Down Expand Up @@ -49,7 +49,7 @@
only:
- master

version: 4.0.1.{build}
version: 4.0.2.{build}
configuration: Release

# Install scripts. (runs after repo cloning)
Expand Down

0 comments on commit 6e924fc

Please sign in to comment.