Skip to main content

Popup Animations

Enable Optional Popup Animations​

Popups in Semi Avalonia have no default animations. This decision was made by the development team for performance consideration.

If you wish to enable popup animations for a better user experience, you only need to additionally reference the following style in your application. Then, the popup animations will be automatically applied to all controls in the program.

<Application
x:Class="Semi.Avalonia.Demo.App"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:semi="https://irihi.tech/semi"
RequestedThemeVariant="Light"
>
<Application.Styles>
<semi:SemiTheme />
<semi:SemiPopupAnimations /> <!-- Enable popup animations -->
</Application.Styles>

</Application>