Skip to content

Commit

Permalink
Fixes #568 by adding GalleryPanelContainerHeight to InRibbonGallery
Browse files Browse the repository at this point in the history
  • Loading branch information
batzen committed Jun 26, 2018
1 parent 95bcb53 commit 8920b32
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
- [#554](../../issues/554) - No Keytips on templated ribbon items.
- [#563](../../issues/563) - Add customizable keys for activating the key tips. (thanks @pschimmel)
You can now set your own keys for showing key tips. Have a look at `Ribbon.KeyTipKeys`.
- [#568](../../issues/568) - Allow setting the height of GalleryPanel inside InRibbonGallery
You can now control the height of the `GalleryPanel` inside `InRibbonGallery` by setting `GalleryPanelContainerHeight`.

## 6.1.0

Expand Down
18 changes: 18 additions & 0 deletions Fluent.Ribbon/Controls/InRibbonGallery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,24 @@ public double DropDownWidth

#endregion

#region GalleryPanelContainerHeight

/// <summary>
/// <see cref="DependencyProperty"/> for <see cref="GalleryPanelContainerHeight"/>.
/// </summary>
public static readonly DependencyProperty GalleryPanelContainerHeightProperty = DependencyProperty.Register(nameof(GalleryPanelContainerHeight), typeof(double), typeof(InRibbonGallery), new PropertyMetadata(60D));

/// <summary>
/// Gets or sets the height of the container which hosts the <see cref="GalleryPanel"/>.
/// </summary>
public double GalleryPanelContainerHeight
{
get { return (double)this.GetValue(GalleryPanelContainerHeightProperty); }
set { this.SetValue(GalleryPanelContainerHeightProperty, value); }
}

#endregion

#endregion

#region Events
Expand Down
2 changes: 1 addition & 1 deletion Fluent.Ribbon/Themes/Controls/InRibbonGallery.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@
VerticalAlignment="Stretch">
<Border x:Name="border"
Width="Auto"
Height="60"
Height="{TemplateBinding GalleryPanelContainerHeight}"
BorderThickness="1,1,1,1"
BorderBrush="{DynamicResource Fluent.Ribbon.Brushes.Control.BorderBrush}"
ClipToBounds="True"
Expand Down

0 comments on commit 8920b32

Please sign in to comment.