drumkit-old/DrumKit/UI/MainPage.xaml

85 lines
3.0 KiB
Plaintext
Raw Normal View History

2013-11-18 18:03:00 +00:00
<Page
x:Class="DrumKit.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:DrumKit"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
2013-11-18 18:06:17 +00:00
<Page.Transitions>
<TransitionCollection>
<EntranceThemeTransition />
</TransitionCollection>
</Page.Transitions>
2013-11-18 18:03:00 +00:00
<Grid
Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
<Image Source="ms-appx:///Assets/bg.png"
Stretch="UniformToFill"/>
2013-11-18 18:06:17 +00:00
<Grid Name="canvasContainer" />
2013-11-18 18:03:00 +00:00
2013-11-18 18:06:17 +00:00
<Grid Visibility="Collapsed">
2013-11-18 18:03:00 +00:00
<Border Margin="7"
CornerRadius="10"
BorderBrush="Red"
BorderThickness="5" />
<Canvas Name="recCanvas">
<Ellipse Width="18" Height="18" Fill="Red"
Canvas.Left="20"
Canvas.Top="20"/>
<TextBlock
FontFamily="Consolas"
FontSize="16"
Foreground="Red"
Canvas.Left="42"
Canvas.Top="19">REC
</TextBlock>
<Canvas.Triggers>
<EventTrigger RoutedEvent="Canvas.Loaded">
<BeginStoryboard>
<Storyboard RepeatBehavior="Forever" >
<DoubleAnimation
Storyboard.TargetName="recCanvas"
Storyboard.TargetProperty="Opacity"
Duration="0:0:1" BeginTime="0:0:1" From="1" To="0.1" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Canvas.Triggers>
</Canvas>
<!--<StackPanel Orientation="Horizontal"
HorizontalAlignment="Left"
VerticalAlignment="Top">
<Button>Record</Button>
<Button>Stop</Button>
</StackPanel>-->
</Grid>
</Grid>
<Page.BottomAppBar>
<AppBar>
<StackPanel Orientation="Horizontal">
2013-11-18 18:06:17 +00:00
<ToggleButton
Name="buttonAnimations"
Click="buttonAnimations_Click"
AutomationProperties.Name="Animations"
IsChecked="True"
Style="{StaticResource VideoAppBarButtonStyle}" />
2013-11-18 18:03:00 +00:00
<ToggleButton
Name="buttonEditMode"
2013-11-18 18:06:17 +00:00
Click="buttonEditMode_Click"
2013-11-18 18:03:00 +00:00
Style="{StaticResource EditAppBarButtonStyle}" />
2013-11-18 18:06:17 +00:00
2013-11-18 18:03:00 +00:00
</StackPanel>
</AppBar>
</Page.BottomAppBar>
</Page>