Skip to content

Commit

Permalink
Merge pull request #246 from nishy2000/master
Browse files Browse the repository at this point in the history
Bind RibbonGroupBox.DataContext on QuickAccessToolBar
  • Loading branch information
batzen committed Jan 19, 2016
2 parents 063e81e + 91baab1 commit 627517e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Fluent/Controls/RibbonGroupBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,8 @@ public FrameworkElement CreateQuickAccessItem()
{
var groupBox = new RibbonGroupBox();

RibbonControl.BindQuickAccessItem(this, groupBox);

groupBox.DropDownOpened += this.OnQuickAccessOpened;
groupBox.DropDownClosed += this.OnQuickAccessClosed;

Expand All @@ -1020,6 +1022,12 @@ public FrameworkElement CreateQuickAccessItem()
RibbonControl.Bind(this, groupBox, "DialogLauncherButtonKeyTipKeys", DialogLauncherButtonKeyTipKeysProperty, BindingMode.OneWay);
groupBox.LauncherClick += this.LauncherClick;

var toolTip = this.ToolTip as ToolTip;
if ((toolTip == null || toolTip.ToolTip == null) && this.Header != null)
{
RibbonControl.Bind(this, groupBox, "Header", ToolTipProperty, BindingMode.OneWay);
}

if (this.Icon != null)
{
var iconVisual = this.Icon as Visual;
Expand Down

0 comments on commit 627517e

Please sign in to comment.