Skip to content

Commit

Permalink
(GH-3910) Change type of BannerText to object
Browse files Browse the repository at this point in the history
  • Loading branch information
punker76 committed Nov 23, 2020
1 parent 92a0db7 commit 60fa721
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/MahApps.Metro/Controls/FlipView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -266,18 +266,18 @@ public bool IsNavigationEnabled
/// <summary>Identifies the <see cref="BannerText"/> dependency property.</summary>
public static readonly DependencyProperty BannerTextProperty
= DependencyProperty.Register(nameof(BannerText),
typeof(string),
typeof(object),
typeof(FlipView),
new FrameworkPropertyMetadata("Banner",
FrameworkPropertyMetadataOptions.AffectsRender,
(d, e) => ((FlipView)d).ExecuteWhenLoaded(() => ((FlipView)d).ChangeBannerText((string)e.NewValue))));
(d, e) => ((FlipView)d).ExecuteWhenLoaded(() => ((FlipView)d).ChangeBannerText(e.NewValue))));

/// <summary>
/// Gets or sets the banner text.
/// </summary>
public string BannerText
public object BannerText
{
get => (string)this.GetValue(BannerTextProperty);
get => this.GetValue(BannerTextProperty);
set => this.SetValue(BannerTextProperty, value);
}

Expand Down Expand Up @@ -647,7 +647,7 @@ private void ApplyToNavigationButtons(Action<Button> prevButtonApply, Action<But
}
}

private void ChangeBannerText(string value = null)
private void ChangeBannerText(object value = null)
{
if (this.IsBannerEnabled)
{
Expand Down

0 comments on commit 60fa721

Please sign in to comment.