Ghost1372

everything can be handy

MaterialAttach

Enable Acrylic Background for some controls.

Property

Name
UseAcrylicBackground

Supported Elements

Name
AutoSuggestBox
ComboBox
Flyout
CommandBar
MediaTransportControls
ToolTip
1
2
<FlipView dev:FlipViewAttach.IsLooping="true"/>

If you want Acrylic to be applied to a CommandBar, don’t forget to override the CommandBarFlyoutCommandBar style as well; otherwise, the SecondaryCommands section won’t inherit the Acrylic background.

1
2
3
<Style TargetType="CommandBarFlyoutCommandBar">
<Setter Property="Template" Value="{StaticResource CommandBarFlyoutCommandBarWithSystemBackdropStyle}" />
</Style>

TimePicker / DatePicker

you need to overwrite Presenter Style

1
2
<Style BasedOn="{StaticResource TimePickerFlyoutPresenterWithSystemBackdropElementStyle}" TargetType="TimePickerFlyoutPresenter" />
<Style BasedOn="{StaticResource DatePickerFlyoutPresenterWithSystemBackdropElementStyle}" TargetType="DatePickerFlyoutPresenter" />

MaterialAttach

Demo

you can run demo and see this feature.

0%