123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <UserControl
- x:Class="ShakerApp.Views.RandomLevelView"
- 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"
- xmlns:vm="using:ShakerApp.ViewModels"
- d:DesignHeight="450"
- d:DesignWidth="800"
- x:DataType="vm:RandomMainPageViewModel"
- DataContext="{Binding Source={x:Static vm:RandomMainPageViewModel.Instance}}"
- mc:Ignorable="d">
- <StackPanel>
- <StackPanel>
- <TextBlock>
- <Run Text="{DynamicResource CurrentTestLevel}" />
- <Run Text=":" />
- </TextBlock>
- <TextBlock
- FontSize="24"
- FontWeight="Black"
- Text="{Binding CurrentTestLevel, StringFormat={}{0:F2}dB}" />
- </StackPanel>
- <StackPanel>
- <TextBlock>
- <Run Text="{DynamicResource CurrentTestTime}" />
- <Run Text=":" />
- </TextBlock>
- <TextBlock
- FontSize="24"
- FontWeight="Black"
- Text="{Binding CurrentTestTime, Converter={StaticResource TimeToStringConverter}}" />
- </StackPanel>
- <StackPanel>
- <TextBlock>
- <Run Text="{DynamicResource CurrentLevelTestMaxTime}" />
- <Run Text=":" />
- </TextBlock>
- <TextBlock
- FontSize="24"
- FontWeight="Black"
- Text="{Binding CurrentLevelTestMaxTime, Converter={StaticResource TimeToStringConverter}}" />
- </StackPanel>
- <Button Foreground="Green" IsEnabled="{Binding NextButtonIsEnabled}">
- <StackPanel>
- <PathIcon Data="{StaticResource NextLevelGeometry}" Foreground="Green" />
- <TextBlock Foreground="Green" Text="{DynamicResource NextLevel}" />
- </StackPanel>
- </Button>
- </StackPanel>
- </UserControl>
|