Files
bluflame/aiwaz/AiwazAnimator/MainWindow.xaml
2026-04-18 22:31:51 +02:00

63 lines
3.1 KiB
XML

<Window x:Class="AiwazAnimator.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:a="clr-namespace:AiwazAnimator"
Title="MainWindow" Height="550" Width="600" WindowStartupLocation="CenterScreen">
<Grid x:Name="ContentArea">
<Grid.RowDefinitions>
<RowDefinition Height="3*" />
<RowDefinition Height="100" />
<RowDefinition Height="4*" />
</Grid.RowDefinitions>
<Grid>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="30"/>
</Grid.RowDefinitions>
<ListView HorizontalAlignment="Stretch" Name="listView1" VerticalAlignment="Stretch" ItemsSource="{Binding Animations}">
<ListView.ItemTemplate>
<DataTemplate >
<Grid>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Label HorizontalAlignment="Stretch" Margin="2,0,2,0" Content="{Binding ListString}" FontSize="12" />
<Slider Width="500" Grid.Row="1" Value="{Binding Time}" Minimum="0" Maximum="1" />
</Grid>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
<Grid VerticalAlignment="Stretch" Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Button Content="Add" Click="Button_Click"></Button>
<Button Content="Delete" Grid.Column="1"></Button>
</Grid>
</Grid>
<GroupBox Header="Timeline" Grid.Row="1" Name="groupBox1" VerticalAlignment="Stretch">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="40" />
<RowDefinition />
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal">
<Label Content="Current time:" Height="28" HorizontalAlignment="Left" Margin="5" Name="label1" VerticalAlignment="Top" />
<Label Content="{Binding CurrentTime}" Height="28" HorizontalAlignment="Left" Margin="5" Name="lblTime" VerticalAlignment="Top" />
</StackPanel>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Button Content="Start" x:Name="btnStart" Click="btnStart_Click"></Button>
<Button Content="Stop" x:Name="btnStop" Grid.Column="1" Click="btnStop_Click"></Button>
</Grid>
</Grid>
</GroupBox>
<a:HistoricalFloat x:Name="StatusArea" Grid.Row="2"></a:HistoricalFloat>
</Grid>
</Window>