Skip to content

Instantly share code, notes, and snippets.

@Crashdoom
Created September 10, 2021 20:41
Show Gist options
  • Save Crashdoom/abcb5bf993d9af5aad2bc6602589f690 to your computer and use it in GitHub Desktop.
Save Crashdoom/abcb5bf993d9af5aad2bc6602589f690 to your computer and use it in GitHub Desktop.
Avalonia Raspberry Pi Stuttering
<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="1920" d:DesignHeight="1080"
x:Class="ExampleApp.Views.ExamplePageView">
<UserControl.Styles>
<Style Selector="Rectangle.ExpandHide">
<Style.Animations>
<Animation Duration="0:0:0.35"
FillMode="Forward">
<KeyFrame Cue="0%">
<Setter Property="Opacity" Value="0" />
</KeyFrame>
<KeyFrame Cue="100%">
<Setter Property="Opacity" Value="1" />
</KeyFrame>
</Animation>
</Style.Animations>
</Style>
</UserControl.Styles>
<Grid ColumnDefinitions="0.5*,1*,1*,1*,0.5*"
RowDefinitions="0.5*,1*,1*,1*,0.5*"
ShowGridLines="False">
<Rectangle Grid.Column="0"
Grid.Row="0"
Grid.ColumnSpan="31"
Grid.RowSpan="27"
Fill="#ebecf0"
Classes.ExpandHide="True"
IsVisible="True" />
</Grid>
</UserControl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment