Skip to content

Commit 459bfd6

Browse files
Make the Content of Case for SwitchPresenter an object instead of an UIElement
1 parent c7c0f94 commit 459bfd6

File tree

1 file changed

+3
-3
lines changed
  • components/Primitives/src/SwitchPresenter

1 file changed

+3
-3
lines changed

components/Primitives/src/SwitchPresenter/Case.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ public partial class Case : DependencyObject
1313
/// <summary>
1414
/// Gets or sets the Content to display when this case is active.
1515
/// </summary>
16-
public UIElement Content
16+
public object Content
1717
{
18-
get { return (UIElement)GetValue(ContentProperty); }
18+
get { return (object)GetValue(ContentProperty); }
1919
set { SetValue(ContentProperty, value); }
2020
}
2121

2222
/// <summary>
2323
/// Identifies the <see cref="Content"/> property.
2424
/// </summary>
2525
public static readonly DependencyProperty ContentProperty =
26-
DependencyProperty.Register(nameof(Content), typeof(UIElement), typeof(Case), new PropertyMetadata(null));
26+
DependencyProperty.Register(nameof(Content), typeof(object), typeof(Case), new PropertyMetadata(null));
2727

2828
/// <summary>
2929
/// Gets or sets a value indicating whether this is the default case to display when no values match the specified value in the <see cref="SwitchPresenter"/>. There should only be a single default case provided. Do not set the <see cref="Value"/> property when setting <see cref="IsDefault"/> to <c>true</c>. Default is <c>false</c>.

0 commit comments

Comments
 (0)