Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@ public partial class SettingsExpander
typeof(SettingsExpander),
new PropertyMetadata(defaultValue: false, (d, e) => ((SettingsExpander)d).OnIsExpandedPropertyChanged((bool)e.OldValue, (bool)e.NewValue)));

/// <summary>
/// The backing <see cref="DependencyProperty"/> for the <see cref="ItemsTransitions"/> property.
/// </summary>
public static readonly DependencyProperty ItemsTransitionsProperty = DependencyProperty.Register(
nameof(ItemsTransitions),
typeof(TransitionCollection),
typeof(SettingsExpander),
new PropertyMetadata(null));

/// <summary>
/// Gets or sets the Header.
/// </summary>
Expand Down Expand Up @@ -127,6 +136,15 @@ public UIElement ItemsFooter
set => SetValue(ItemsFooterProperty, value);
}

/// <summary>
/// Gets or sets the ItemsTransitions.
/// </summary>
public TransitionCollection ItemsTransitions
{
get { return (TransitionCollection)GetValue(ItemsTransitionsProperty); }
set { SetValue(ItemsTransitionsProperty, value); }
}

/// <summary>
/// Gets or sets the IsExpanded state.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@
IsClickEnabled="False" />
</muxc:Expander.Header>
<muxc:Expander.Content>
<Grid CornerRadius="{Binding CornerRadius, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource CornerRadiusConverter}}">
<Grid ChildrenTransitions="{TemplateBinding ItemsTransitions}"
CornerRadius="{Binding CornerRadius, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource CornerRadiusConverter}}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
Expand Down