mirror of
https://github.com/chibicitiberiu/drumkit.git
synced 2024-02-24 10:53:32 +00:00
Latest build (version 2.2)
This commit is contained in:
@ -0,0 +1,35 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\CommonControls\EditableTextblockControl.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "50B582911F4CBB987402510E50E77F6C"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class EditableTextblockControl : global::Windows.UI.Xaml.Controls.UserControl
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private bool _contentLoaded;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void InitializeComponent()
|
||||
{
|
||||
if (_contentLoaded)
|
||||
return;
|
||||
|
||||
_contentLoaded = true;
|
||||
global::Windows.UI.Xaml.Application.LoadComponent(this, new global::System.Uri("ms-appx:///UI/CommonControls/EditableTextblockControl.xaml"), global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
27
DrumKit/obj/Debug/UI/CommonControls/FileControl.g.cs
Normal file
27
DrumKit/obj/Debug/UI/CommonControls/FileControl.g.cs
Normal file
@ -0,0 +1,27 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\CommonControls\FileControl.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "C5BD777338800A24D5B4C17007D3647A"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class FileControl : global::Windows.UI.Xaml.Controls.UserControl, global::Windows.UI.Xaml.Markup.IComponentConnector
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
|
||||
public void Connect(int connectionId, object target)
|
||||
{
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
44
DrumKit/obj/Debug/UI/CommonControls/FileControl.g.i.cs
Normal file
44
DrumKit/obj/Debug/UI/CommonControls/FileControl.g.i.cs
Normal file
@ -0,0 +1,44 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\CommonControls\FileControl.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "C5BD777338800A24D5B4C17007D3647A"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class FileControl : global::Windows.UI.Xaml.Controls.UserControl
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.TextBlock textName;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.Image image;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.Button buttonBrowse;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private bool _contentLoaded;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void InitializeComponent()
|
||||
{
|
||||
if (_contentLoaded)
|
||||
return;
|
||||
|
||||
_contentLoaded = true;
|
||||
global::Windows.UI.Xaml.Application.LoadComponent(this, new global::System.Uri("ms-appx:///UI/CommonControls/FileControl.xaml"), global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);
|
||||
|
||||
textName = (global::Windows.UI.Xaml.Controls.TextBlock)this.FindName("textName");
|
||||
image = (global::Windows.UI.Xaml.Controls.Image)this.FindName("image");
|
||||
buttonBrowse = (global::Windows.UI.Xaml.Controls.Button)this.FindName("buttonBrowse");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
37
DrumKit/obj/Debug/UI/CommonControls/FileControl.xaml
Normal file
37
DrumKit/obj/Debug/UI/CommonControls/FileControl.xaml
Normal file
@ -0,0 +1,37 @@
|
||||
<UserControl
|
||||
x:Class="DrumKit.FileControl"
|
||||
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"
|
||||
d:DesignHeight="120"
|
||||
d:DesignWidth="400">
|
||||
|
||||
<Grid>
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock Name="textName" Style="{StaticResource TitleTextStyle}"
|
||||
VerticalAlignment="Center"
|
||||
Margin="0,0,0,8">Test</TextBlock>
|
||||
|
||||
<Image Grid.Row="1" Name="image"
|
||||
VerticalAlignment="Stretch"
|
||||
HorizontalAlignment="Left" Width="120"/>
|
||||
|
||||
<Button Name="buttonBrowse" Style="{StaticResource TextButtonStyle}"
|
||||
Grid.Column="1" Margin="10,5,10,5">...</Button>
|
||||
|
||||
</Grid>
|
||||
</UserControl>
|
||||
|
44
DrumKit/obj/Debug/UI/Copy of DrumkitsSettingsControl.g.i.cs
Normal file
44
DrumKit/obj/Debug/UI/Copy of DrumkitsSettingsControl.g.i.cs
Normal file
@ -0,0 +1,44 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\Copy of DrumkitsSettingsControl.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "F1FDC1224E5422AD7DC404436C0DCC45"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class DrumkitsSettingsControl : global::Windows.UI.Xaml.Controls.UserControl
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.ListView listDrumkits;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.TextBox textName;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.TextBox textDescription;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private bool _contentLoaded;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void InitializeComponent()
|
||||
{
|
||||
if (_contentLoaded)
|
||||
return;
|
||||
|
||||
_contentLoaded = true;
|
||||
global::Windows.UI.Xaml.Application.LoadComponent(this, new global::System.Uri("ms-appx:///UI/Copy of DrumkitsSettingsControl.xaml"), global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);
|
||||
|
||||
listDrumkits = (global::Windows.UI.Xaml.Controls.ListView)this.FindName("listDrumkits");
|
||||
textName = (global::Windows.UI.Xaml.Controls.TextBox)this.FindName("textName");
|
||||
textDescription = (global::Windows.UI.Xaml.Controls.TextBox)this.FindName("textDescription");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
58
DrumKit/obj/Debug/UI/DrumEditUI.g.cs
Normal file
58
DrumKit/obj/Debug/UI/DrumEditUI.g.cs
Normal file
@ -0,0 +1,58 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\DrumEditUI.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "BA2C116C76B6690A2A0D2F5BD741609C"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class DrumEditUI : global::Windows.UI.Xaml.Controls.UserControl, global::Windows.UI.Xaml.Markup.IComponentConnector
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
|
||||
public void Connect(int connectionId, object target)
|
||||
{
|
||||
switch(connectionId)
|
||||
{
|
||||
case 1:
|
||||
#line 11 "..\..\UI\DrumEditUI.xaml"
|
||||
((global::Windows.UI.Xaml.FrameworkElement)(target)).SizeChanged += this.DrumEditUl_SizeChanged;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 2:
|
||||
#line 192 "..\..\UI\DrumEditUI.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.Thumb)(target)).DragStarted += this.rotationThumb_DragStarted;
|
||||
#line default
|
||||
#line hidden
|
||||
#line 193 "..\..\UI\DrumEditUI.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.Thumb)(target)).DragDelta += this.rotationThumb_DragDelta;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 3:
|
||||
#line 202 "..\..\UI\DrumEditUI.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.Thumb)(target)).DragDelta += this.scaleThumb_DragDelta;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 4:
|
||||
#line 183 "..\..\UI\DrumEditUI.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.Thumb)(target)).DragDelta += this.translationThumb_DragDelta;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
56
DrumKit/obj/Debug/UI/DrumEditUI.g.i.cs
Normal file
56
DrumKit/obj/Debug/UI/DrumEditUI.g.i.cs
Normal file
@ -0,0 +1,56 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\DrumEditUI.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "BA2C116C76B6690A2A0D2F5BD741609C"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class DrumEditUI : global::Windows.UI.Xaml.Controls.UserControl
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Style TranslationThumbStyle;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.Grid rotateGrid;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.Primitives.Thumb rotationThumb;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.Primitives.Thumb scaleThumb;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.Primitives.Thumb translationThumb;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.TextBlock nameText;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.Image image;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private bool _contentLoaded;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void InitializeComponent()
|
||||
{
|
||||
if (_contentLoaded)
|
||||
return;
|
||||
|
||||
_contentLoaded = true;
|
||||
global::Windows.UI.Xaml.Application.LoadComponent(this, new global::System.Uri("ms-appx:///UI/DrumEditUI.xaml"), global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);
|
||||
|
||||
TranslationThumbStyle = (global::Windows.UI.Xaml.Style)this.FindName("TranslationThumbStyle");
|
||||
rotateGrid = (global::Windows.UI.Xaml.Controls.Grid)this.FindName("rotateGrid");
|
||||
rotationThumb = (global::Windows.UI.Xaml.Controls.Primitives.Thumb)this.FindName("rotationThumb");
|
||||
scaleThumb = (global::Windows.UI.Xaml.Controls.Primitives.Thumb)this.FindName("scaleThumb");
|
||||
translationThumb = (global::Windows.UI.Xaml.Controls.Primitives.Thumb)this.FindName("translationThumb");
|
||||
nameText = (global::Windows.UI.Xaml.Controls.TextBlock)this.FindName("nameText");
|
||||
image = (global::Windows.UI.Xaml.Controls.Image)this.FindName("image");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
212
DrumKit/obj/Debug/UI/DrumEditUI.xaml
Normal file
212
DrumKit/obj/Debug/UI/DrumEditUI.xaml
Normal file
@ -0,0 +1,212 @@
|
||||
<UserControl x:ConnectionId='1'
|
||||
x:Class="DrumKit.DrumEditUI"
|
||||
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"
|
||||
d:DesignHeight="300"
|
||||
d:DesignWidth="400"
|
||||
>
|
||||
|
||||
<UserControl.Resources>
|
||||
|
||||
<!-- Translation thumb -->
|
||||
<SolidColorBrush x:Key="TranslationThumbBackgroundBrush" Color="Transparent" />
|
||||
|
||||
<LinearGradientBrush x:Key="TranslationThumbBackgroundFocusedBrush" StartPoint="0,0" EndPoint="0,1">
|
||||
<GradientStop Color="#2fff" Offset="1" />
|
||||
<GradientStop Color="#5fff" Offset="0" />
|
||||
</LinearGradientBrush>
|
||||
|
||||
<LinearGradientBrush x:Key="TranslationThumbBackgroundPressedBrush" StartPoint="0,0" EndPoint="0,1">
|
||||
<GradientStop Color="#1fff" Offset="1" />
|
||||
<GradientStop Color="#3fff" Offset="0" />
|
||||
</LinearGradientBrush>
|
||||
|
||||
<LinearGradientBrush x:Key="TranslationThumbBorderBrush" StartPoint="0,0" EndPoint="0,1" >
|
||||
<GradientStop Color="#2fff" Offset="1" />
|
||||
<GradientStop Color="#5fff" Offset="0" />
|
||||
</LinearGradientBrush>
|
||||
|
||||
<!-- Drum name background -->
|
||||
<LinearGradientBrush x:Key="DrumNameBackgroundBrush" StartPoint="0,0" EndPoint="0,1">
|
||||
<GradientStop Color="#0000" Offset="1" />
|
||||
<GradientStop Color="#2000" Offset="0.7" />
|
||||
<GradientStop Color="#a000" Offset="0" />
|
||||
</LinearGradientBrush>
|
||||
|
||||
<!-- Round thumb -->
|
||||
<SolidColorBrush x:Key="RoundThumbBackgroundBrush" Color="WhiteSmoke" />
|
||||
<SolidColorBrush x:Key="RoundThumbBorderBrush" Color="LightGray" />
|
||||
<SolidColorBrush x:Key="RoundThumbForegroundBrush" Color="Gray" />
|
||||
|
||||
<!-- Rotation thumb -->
|
||||
<SolidColorBrush x:Key="RotationTranslationThumbBackgroundBrush" Color="Coral" />
|
||||
<SolidColorBrush x:Key="RotationTranslationThumbBorderBrush" Color="LightCoral" />
|
||||
<SolidColorBrush x:Key="RotationDrumForegroundBrush" Color="Brown" />
|
||||
|
||||
<!-- Translation thumb style -->
|
||||
<Style x:Name="TranslationThumbStyle" TargetType="Thumb">
|
||||
<Setter Property="Background" Value="{StaticResource TranslationThumbBackgroundBrush}" />
|
||||
<Setter Property="BorderBrush" Value="{StaticResource TranslationThumbBorderBrush}" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="VerticalAlignment" Value="Stretch" />
|
||||
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="Thumb">
|
||||
|
||||
<Grid>
|
||||
|
||||
<VisualStateManager.VisualStateGroups>
|
||||
<VisualStateGroup x:Name="CommonStates">
|
||||
<VisualState x:Name="Normal" >
|
||||
<Storyboard>
|
||||
<DoubleAnimation Storyboard.TargetName="normalRectangle"
|
||||
Storyboard.TargetProperty="Opacity"
|
||||
Duration="0" To="1" />
|
||||
</Storyboard>
|
||||
</VisualState>
|
||||
<VisualState x:Name="PointerOver">
|
||||
<Storyboard>
|
||||
<DoubleAnimation Storyboard.TargetName="focusedRectangle"
|
||||
Storyboard.TargetProperty="Opacity"
|
||||
Duration="0" To="1" />
|
||||
</Storyboard>
|
||||
</VisualState>
|
||||
<VisualState x:Name="Pressed">
|
||||
<Storyboard>
|
||||
<DoubleAnimation Storyboard.TargetName="pressedRectangle"
|
||||
Storyboard.TargetProperty="Opacity"
|
||||
Duration="0" To="1" />
|
||||
</Storyboard>
|
||||
</VisualState>
|
||||
</VisualStateGroup>
|
||||
</VisualStateManager.VisualStateGroups>
|
||||
|
||||
<Rectangle Name="normalRectangle"
|
||||
Fill="{TemplateBinding Background}"
|
||||
Stroke="{TemplateBinding BorderBrush}"
|
||||
StrokeThickness="{TemplateBinding BorderThickness}"
|
||||
Opacity="0" />
|
||||
|
||||
<Rectangle Name="focusedRectangle"
|
||||
Fill="{StaticResource TranslationThumbBackgroundFocusedBrush}"
|
||||
Stroke="{TemplateBinding BorderBrush}"
|
||||
StrokeThickness="{TemplateBinding BorderThickness}"
|
||||
Opacity="0" />
|
||||
|
||||
<Rectangle Name="pressedRectangle"
|
||||
Fill="{StaticResource TranslationThumbBackgroundPressedBrush}"
|
||||
Stroke="{TemplateBinding BorderBrush}"
|
||||
StrokeThickness="{TemplateBinding BorderThickness}"
|
||||
Opacity="0" />
|
||||
</Grid>
|
||||
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<!-- Round thumb style -->
|
||||
<Style x:Key="RoundThumbStyle" TargetType="Thumb">
|
||||
<Setter Property="Background" Value="{StaticResource RoundThumbBackgroundBrush}" />
|
||||
<Setter Property="BorderBrush" Value="{StaticResource RoundThumbBorderBrush}" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="Foreground" Value="{StaticResource RoundThumbForegroundBrush}" />
|
||||
<Setter Property="Height" Value="16" />
|
||||
<Setter Property="Width" Value="16" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="Thumb">
|
||||
<Grid>
|
||||
<Ellipse
|
||||
Fill="{TemplateBinding Background}"
|
||||
Stroke="{TemplateBinding BorderBrush}"
|
||||
StrokeThickness="{TemplateBinding BorderThickness}" />
|
||||
|
||||
<TextBlock
|
||||
Foreground="{TemplateBinding Foreground}"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center"
|
||||
Text="{TemplateBinding Tag}"/>
|
||||
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<!-- Rotation thumb style -->
|
||||
<Style x:Key="RotationThumbStyle" TargetType="Thumb" BasedOn="{StaticResource RoundThumbStyle}" >
|
||||
<Setter Property="Background" Value="{StaticResource RotationTranslationThumbBackgroundBrush}" />
|
||||
<Setter Property="BorderBrush" Value="{StaticResource RotationTranslationThumbBorderBrush}" />
|
||||
<Setter Property="Foreground" Value="{StaticResource RotationDrumForegroundBrush}" />
|
||||
<Setter Property="FontFamily" Value="{StaticResource SymbolThemeFontFamily}" />
|
||||
<Setter Property="FontSize" Value="10" />
|
||||
<Setter Property="FontStyle" Value="Normal" />
|
||||
<Setter Property="Tag" Value="" />
|
||||
</Style>
|
||||
|
||||
</UserControl.Resources>
|
||||
|
||||
<Grid>
|
||||
|
||||
<Grid Name="rotateGrid" IsHitTestVisible="False">
|
||||
|
||||
<Image Name="image" IsHitTestVisible="False"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Stretch" />
|
||||
|
||||
</Grid>
|
||||
|
||||
<Border HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Top"
|
||||
IsHitTestVisible="False"
|
||||
Background="{StaticResource DrumNameBackgroundBrush}">
|
||||
|
||||
<TextBlock
|
||||
IsHitTestVisible="False"
|
||||
Name="nameText" HorizontalAlignment="Center"
|
||||
Style="{StaticResource TitleTextStyle}"
|
||||
Margin="0,2,0,16"/>
|
||||
|
||||
</Border>
|
||||
|
||||
<Border BorderBrush="Black" BorderThickness="1">
|
||||
|
||||
<Thumb x:ConnectionId='4'
|
||||
Name="translationThumb"
|
||||
Style="{StaticResource TranslationThumbStyle}"
|
||||
/>
|
||||
|
||||
</Border>
|
||||
|
||||
<Thumb x:ConnectionId='2'
|
||||
Name="rotationThumb"
|
||||
Style="{StaticResource RotationThumbStyle}"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
|
||||
>
|
||||
|
||||
</Thumb>
|
||||
|
||||
<Thumb x:ConnectionId='3'
|
||||
Name="scaleThumb" Grid.Row="1"
|
||||
Style="{StaticResource RoundThumbStyle}"
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Bottom"
|
||||
>
|
||||
|
||||
<Thumb.RenderTransform>
|
||||
<TranslateTransform X="8" Y="8" />
|
||||
</Thumb.RenderTransform>
|
||||
|
||||
</Thumb>
|
||||
</Grid>
|
||||
|
||||
</UserControl>
|
||||
|
36
DrumKit/obj/Debug/UI/DrumPlayUI.g.cs
Normal file
36
DrumKit/obj/Debug/UI/DrumPlayUI.g.cs
Normal file
@ -0,0 +1,36 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\DrumPlayUI.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "DFE0FE31C13F1BEC5EB23C7E1B5F48C5"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class DrumPlayUI : global::Windows.UI.Xaml.Controls.UserControl, global::Windows.UI.Xaml.Markup.IComponentConnector
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
|
||||
public void Connect(int connectionId, object target)
|
||||
{
|
||||
switch(connectionId)
|
||||
{
|
||||
case 1:
|
||||
#line 13 "..\..\UI\DrumPlayUI.xaml"
|
||||
((global::Windows.UI.Xaml.UIElement)(target)).PointerPressed += this.Grid_PointerPressed;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
53
DrumKit/obj/Debug/UI/DrumPlayUI.g.i.cs
Normal file
53
DrumKit/obj/Debug/UI/DrumPlayUI.g.i.cs
Normal file
@ -0,0 +1,53 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\DrumPlayUI.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "DFE0FE31C13F1BEC5EB23C7E1B5F48C5"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class DrumPlayUI : global::Windows.UI.Xaml.Controls.UserControl
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.Grid grid;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.VisualStateGroup DrumGroups;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.VisualState DrumNormal;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.VisualState DrumHit;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.Image image;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.Image imagePressed;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private bool _contentLoaded;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void InitializeComponent()
|
||||
{
|
||||
if (_contentLoaded)
|
||||
return;
|
||||
|
||||
_contentLoaded = true;
|
||||
global::Windows.UI.Xaml.Application.LoadComponent(this, new global::System.Uri("ms-appx:///UI/DrumPlayUI.xaml"), global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);
|
||||
|
||||
grid = (global::Windows.UI.Xaml.Controls.Grid)this.FindName("grid");
|
||||
DrumGroups = (global::Windows.UI.Xaml.VisualStateGroup)this.FindName("DrumGroups");
|
||||
DrumNormal = (global::Windows.UI.Xaml.VisualState)this.FindName("DrumNormal");
|
||||
DrumHit = (global::Windows.UI.Xaml.VisualState)this.FindName("DrumHit");
|
||||
image = (global::Windows.UI.Xaml.Controls.Image)this.FindName("image");
|
||||
imagePressed = (global::Windows.UI.Xaml.Controls.Image)this.FindName("imagePressed");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
66
DrumKit/obj/Debug/UI/DrumPlayUI.xaml
Normal file
66
DrumKit/obj/Debug/UI/DrumPlayUI.xaml
Normal file
@ -0,0 +1,66 @@
|
||||
<UserControl
|
||||
x:Class="DrumKit.DrumPlayUI"
|
||||
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"
|
||||
d:DesignHeight="300"
|
||||
d:DesignWidth="400">
|
||||
|
||||
<Grid x:ConnectionId='1' Name="grid" Background="Transparent"
|
||||
>
|
||||
|
||||
<VisualStateManager.VisualStateGroups>
|
||||
|
||||
<VisualStateGroup x:Name="DrumGroups">
|
||||
|
||||
<VisualState x:Name="DrumNormal">
|
||||
<Storyboard>
|
||||
<DoubleAnimation Storyboard.TargetName="imagePressed"
|
||||
Storyboard.TargetProperty="Opacity"
|
||||
BeginTime="0:0:0.1" Duration="0:0:0.7" To="0" >
|
||||
<DoubleAnimation.EasingFunction>
|
||||
<SineEase EasingMode="EaseInOut" />
|
||||
</DoubleAnimation.EasingFunction>
|
||||
</DoubleAnimation>
|
||||
|
||||
<DoubleAnimation Storyboard.TargetName="image"
|
||||
Storyboard.TargetProperty="Opacity"
|
||||
Duration="0:0:0.3" To="1" >
|
||||
<DoubleAnimation.EasingFunction>
|
||||
<SineEase EasingMode="EaseIn" />
|
||||
</DoubleAnimation.EasingFunction>
|
||||
</DoubleAnimation>
|
||||
</Storyboard>
|
||||
</VisualState>
|
||||
|
||||
<VisualState x:Name="DrumHit">
|
||||
<Storyboard>
|
||||
<DoubleAnimation Storyboard.TargetName="imagePressed"
|
||||
Storyboard.TargetProperty="Opacity"
|
||||
Duration="0" To="1" />
|
||||
<DoubleAnimation Storyboard.TargetName="image"
|
||||
Storyboard.TargetProperty="Opacity"
|
||||
Duration="0" To=".3" />
|
||||
</Storyboard>
|
||||
</VisualState>
|
||||
|
||||
|
||||
</VisualStateGroup>
|
||||
|
||||
</VisualStateManager.VisualStateGroups>
|
||||
|
||||
<Image Name="image" IsHitTestVisible="False"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Stretch" />
|
||||
|
||||
<Image Name="imagePressed" IsHitTestVisible="False"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Stretch"
|
||||
Opacity="0" />
|
||||
|
||||
</Grid>
|
||||
</UserControl>
|
||||
|
0
DrumKit/obj/Debug/UI/DrumkitManagerUI.g.cs
Normal file
0
DrumKit/obj/Debug/UI/DrumkitManagerUI.g.cs
Normal file
35
DrumKit/obj/Debug/UI/DrumkitManagerUI.g.i.cs
Normal file
35
DrumKit/obj/Debug/UI/DrumkitManagerUI.g.i.cs
Normal file
@ -0,0 +1,35 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\DrumkitManagerUI.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "720894DAB29AF4F1EBBB52D52352CD59"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class DrumkitManagerUI : global::Windows.UI.Xaml.Controls.Page
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private bool _contentLoaded;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void InitializeComponent()
|
||||
{
|
||||
if (_contentLoaded)
|
||||
return;
|
||||
|
||||
_contentLoaded = true;
|
||||
global::Windows.UI.Xaml.Application.LoadComponent(this, new global::System.Uri("ms-appx:///UI/DrumkitManagerUI.xaml"), global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
36
DrumKit/obj/Debug/UI/EditorPage.g.cs
Normal file
36
DrumKit/obj/Debug/UI/EditorPage.g.cs
Normal file
@ -0,0 +1,36 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\EditorPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "8F3BA0275F3337A1BAF0580BD0927581"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class EditorPage : global::Windows.UI.Xaml.Controls.Page, global::Windows.UI.Xaml.Markup.IComponentConnector
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
|
||||
public void Connect(int connectionId, object target)
|
||||
{
|
||||
switch(connectionId)
|
||||
{
|
||||
case 1:
|
||||
#line 21 "..\..\UI\EditorPage.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.ButtonBase)(target)).Click += this.buttonBack_Click;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
41
DrumKit/obj/Debug/UI/EditorPage.g.i.cs
Normal file
41
DrumKit/obj/Debug/UI/EditorPage.g.i.cs
Normal file
@ -0,0 +1,41 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\EditorPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "8F3BA0275F3337A1BAF0580BD0927581"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class EditorPage : global::Windows.UI.Xaml.Controls.Page
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.Canvas container;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.Button buttonBack;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private bool _contentLoaded;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void InitializeComponent()
|
||||
{
|
||||
if (_contentLoaded)
|
||||
return;
|
||||
|
||||
_contentLoaded = true;
|
||||
global::Windows.UI.Xaml.Application.LoadComponent(this, new global::System.Uri("ms-appx:///UI/EditorPage.xaml"), global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);
|
||||
|
||||
container = (global::Windows.UI.Xaml.Controls.Canvas)this.FindName("container");
|
||||
buttonBack = (global::Windows.UI.Xaml.Controls.Button)this.FindName("buttonBack");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
35
DrumKit/obj/Debug/UI/EditorPage.xaml
Normal file
35
DrumKit/obj/Debug/UI/EditorPage.xaml
Normal file
@ -0,0 +1,35 @@
|
||||
<Page
|
||||
x:Class="DrumKit.EditorPage"
|
||||
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">
|
||||
|
||||
<Page.Resources>
|
||||
<ImageBrush x:Key="EditorBackgroundBrush" ImageSource="ms-appx:///Assets/bg.png" Stretch="UniformToFill" />
|
||||
|
||||
</Page.Resources>
|
||||
|
||||
<Canvas
|
||||
Name="container"
|
||||
Background="{StaticResource EditorBackgroundBrush}">
|
||||
|
||||
<Button x:ConnectionId='1' Name="buttonBack" Canvas.Left="10" Canvas.Top="10" Canvas.ZIndex="1"
|
||||
Style="{StaticResource BackButtonStyle}"
|
||||
/>
|
||||
|
||||
</Canvas>
|
||||
|
||||
<!--<Page.BottomAppBar>
|
||||
<AppBar>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Button>Change order</Button>
|
||||
<Button>Bring all drums into view</Button>
|
||||
</StackPanel>
|
||||
</AppBar>
|
||||
</Page.BottomAppBar>-->
|
||||
|
||||
</Page>
|
||||
|
27
DrumKit/obj/Debug/UI/LoadingPage.g.cs
Normal file
27
DrumKit/obj/Debug/UI/LoadingPage.g.cs
Normal file
@ -0,0 +1,27 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\LoadingPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "FE9E6C70949C7C81C7F1317A1264D2F4"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class LoadingPage : global::Windows.UI.Xaml.Controls.Page, global::Windows.UI.Xaml.Markup.IComponentConnector
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
|
||||
public void Connect(int connectionId, object target)
|
||||
{
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
41
DrumKit/obj/Debug/UI/LoadingPage.g.i.cs
Normal file
41
DrumKit/obj/Debug/UI/LoadingPage.g.i.cs
Normal file
@ -0,0 +1,41 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\LoadingPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "FE9E6C70949C7C81C7F1317A1264D2F4"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class LoadingPage : global::Windows.UI.Xaml.Controls.Page
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.ProgressBar progressBar;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.TextBlock textLoading;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private bool _contentLoaded;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void InitializeComponent()
|
||||
{
|
||||
if (_contentLoaded)
|
||||
return;
|
||||
|
||||
_contentLoaded = true;
|
||||
global::Windows.UI.Xaml.Application.LoadComponent(this, new global::System.Uri("ms-appx:///UI/LoadingPage.xaml"), global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);
|
||||
|
||||
progressBar = (global::Windows.UI.Xaml.Controls.ProgressBar)this.FindName("progressBar");
|
||||
textLoading = (global::Windows.UI.Xaml.Controls.TextBlock)this.FindName("textLoading");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
43
DrumKit/obj/Debug/UI/LoadingPage.xaml
Normal file
43
DrumKit/obj/Debug/UI/LoadingPage.xaml
Normal file
@ -0,0 +1,43 @@
|
||||
<Page
|
||||
x:Class="DrumKit.LoadingPage"
|
||||
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">
|
||||
|
||||
<Grid Background="{StaticResource ApplicationBackgroundColor}">
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center">
|
||||
<Image Source="ms-appx:///Assets/Logos/SplashScreen.png"
|
||||
Stretch="None"/>
|
||||
|
||||
</Grid>
|
||||
|
||||
<StackPanel
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Bottom"
|
||||
Orientation="Horizontal"
|
||||
Margin="20">
|
||||
<ProgressRing Width="40" Height="40" IsActive="True" Foreground="White" />
|
||||
<TextBlock
|
||||
Name="textLoading"
|
||||
Style="{StaticResource SubheaderTextStyle}" Margin="10,0,0,0">
|
||||
Loading resources...</TextBlock>
|
||||
</StackPanel>
|
||||
|
||||
<ProgressBar
|
||||
Name="progressBar" Grid.Row="1"
|
||||
Foreground="#53AB6D" Background="#20FFFFFF"
|
||||
Minimum="0" Maximum="100"/>
|
||||
|
||||
</Grid>
|
||||
</Page>
|
||||
|
48
DrumKit/obj/Debug/UI/MainPage.g.cs
Normal file
48
DrumKit/obj/Debug/UI/MainPage.g.cs
Normal file
@ -0,0 +1,48 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\MainPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "DDC6CF90EB0978C750730A223B6A9618"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class MainPage : global::Windows.UI.Xaml.Controls.Page, global::Windows.UI.Xaml.Markup.IComponentConnector
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
|
||||
public void Connect(int connectionId, object target)
|
||||
{
|
||||
switch(connectionId)
|
||||
{
|
||||
case 1:
|
||||
#line 90 "..\..\UI\MainPage.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.ButtonBase)(target)).Click += this.ButtonSettings_Click;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 2:
|
||||
#line 75 "..\..\UI\MainPage.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.ButtonBase)(target)).Click += this.buttonAnimations_Click;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 3:
|
||||
#line 82 "..\..\UI\MainPage.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.ButtonBase)(target)).Click += this.ButtonEditMode_Click;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
47
DrumKit/obj/Debug/UI/MainPage.g.i.cs
Normal file
47
DrumKit/obj/Debug/UI/MainPage.g.i.cs
Normal file
@ -0,0 +1,47 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\MainPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "DDC6CF90EB0978C750730A223B6A9618"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class MainPage : global::Windows.UI.Xaml.Controls.Page
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.Canvas canvas;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.Button buttonSettings;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.Primitives.ToggleButton buttonAnimations;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.Button buttonEditMode;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private bool _contentLoaded;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void InitializeComponent()
|
||||
{
|
||||
if (_contentLoaded)
|
||||
return;
|
||||
|
||||
_contentLoaded = true;
|
||||
global::Windows.UI.Xaml.Application.LoadComponent(this, new global::System.Uri("ms-appx:///UI/MainPage.xaml"), global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);
|
||||
|
||||
canvas = (global::Windows.UI.Xaml.Controls.Canvas)this.FindName("canvas");
|
||||
buttonSettings = (global::Windows.UI.Xaml.Controls.Button)this.FindName("buttonSettings");
|
||||
buttonAnimations = (global::Windows.UI.Xaml.Controls.Primitives.ToggleButton)this.FindName("buttonAnimations");
|
||||
buttonEditMode = (global::Windows.UI.Xaml.Controls.Button)this.FindName("buttonEditMode");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
98
DrumKit/obj/Debug/UI/MainPage.xaml
Normal file
98
DrumKit/obj/Debug/UI/MainPage.xaml
Normal file
@ -0,0 +1,98 @@
|
||||
<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">
|
||||
|
||||
<Page.Resources>
|
||||
|
||||
<ImageBrush x:Key="MainpageBackgroundBrush" ImageSource="ms-appx:///Assets/bg.png" Stretch="UniformToFill" />
|
||||
|
||||
</Page.Resources>
|
||||
|
||||
<Grid
|
||||
Background="{StaticResource MainpageBackgroundBrush}">
|
||||
|
||||
<Canvas Name="canvas" />
|
||||
|
||||
<!--<Grid Visibility="Collapsed">
|
||||
<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>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<StackPanel Grid.Column="0" Orientation="Horizontal">
|
||||
|
||||
<ToggleButton x:ConnectionId='2'
|
||||
Name="buttonAnimations"
|
||||
|
||||
AutomationProperties.Name="Animations"
|
||||
IsChecked="True"
|
||||
Style="{StaticResource VideoAppBarButtonStyle}" />
|
||||
|
||||
<Button x:ConnectionId='3'
|
||||
Name="buttonEditMode"
|
||||
|
||||
Style="{StaticResource EditAppBarButtonStyle}" />
|
||||
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Grid.Column="1" Orientation="Horizontal" >
|
||||
<Button x:ConnectionId='1'
|
||||
Name="buttonSettings"
|
||||
|
||||
AutomationProperties.Name="Settings"
|
||||
Style="{StaticResource SettingsAppBarButtonStyle}" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</AppBar>
|
||||
</Page.BottomAppBar>
|
||||
</Page>
|
||||
|
66
DrumKit/obj/Debug/UI/Settings/DrumkitsSettingsControl.g.cs
Normal file
66
DrumKit/obj/Debug/UI/Settings/DrumkitsSettingsControl.g.cs
Normal file
@ -0,0 +1,66 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\Settings\DrumkitsSettingsControl.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "9041999116FF826F1079804BE63AB798"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class DrumkitsSettingsControl : global::Windows.UI.Xaml.Controls.UserControl, global::Windows.UI.Xaml.Markup.IComponentConnector
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
|
||||
public void Connect(int connectionId, object target)
|
||||
{
|
||||
switch(connectionId)
|
||||
{
|
||||
case 1:
|
||||
#line 46 "..\..\..\UI\Settings\DrumkitsSettingsControl.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.TextBox)(target)).TextChanged += this.NameTextChanged;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 2:
|
||||
#line 52 "..\..\..\UI\Settings\DrumkitsSettingsControl.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.TextBox)(target)).TextChanged += this.DescriptionTextChanged;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 3:
|
||||
#line 99 "..\..\..\UI\Settings\DrumkitsSettingsControl.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.ButtonBase)(target)).Click += this.ButtonImport_Click;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 4:
|
||||
#line 100 "..\..\..\UI\Settings\DrumkitsSettingsControl.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.ButtonBase)(target)).Click += this.ButtonExport_Click;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 5:
|
||||
#line 102 "..\..\..\UI\Settings\DrumkitsSettingsControl.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.ButtonBase)(target)).Click += this.ButtonDelete_Click;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 6:
|
||||
#line 103 "..\..\..\UI\Settings\DrumkitsSettingsControl.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.ButtonBase)(target)).Click += this.ButtonSetCurrent_Clicked;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
41
DrumKit/obj/Debug/UI/Settings/DrumkitsSettingsControl.g.i.cs
Normal file
41
DrumKit/obj/Debug/UI/Settings/DrumkitsSettingsControl.g.i.cs
Normal file
@ -0,0 +1,41 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\Settings\DrumkitsSettingsControl.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "9041999116FF826F1079804BE63AB798"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class DrumkitsSettingsControl : global::Windows.UI.Xaml.Controls.UserControl
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.ListView listDrumkits;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.ProgressRing progressRing;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private bool _contentLoaded;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void InitializeComponent()
|
||||
{
|
||||
if (_contentLoaded)
|
||||
return;
|
||||
|
||||
_contentLoaded = true;
|
||||
global::Windows.UI.Xaml.Application.LoadComponent(this, new global::System.Uri("ms-appx:///UI/Settings/DrumkitsSettingsControl.xaml"), global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);
|
||||
|
||||
listDrumkits = (global::Windows.UI.Xaml.Controls.ListView)this.FindName("listDrumkits");
|
||||
progressRing = (global::Windows.UI.Xaml.Controls.ProgressRing)this.FindName("progressRing");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
109
DrumKit/obj/Debug/UI/Settings/DrumkitsSettingsControl.xaml
Normal file
109
DrumKit/obj/Debug/UI/Settings/DrumkitsSettingsControl.xaml
Normal file
@ -0,0 +1,109 @@
|
||||
<UserControl
|
||||
x:Class="DrumKit.DrumkitsSettingsControl"
|
||||
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"
|
||||
d:DesignHeight="321.429"
|
||||
d:DesignWidth="696.617">
|
||||
|
||||
<UserControl.Resources>
|
||||
<ResourceDictionary>
|
||||
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="/Common/TextButtonStyles.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
|
||||
|
||||
<DataTemplate x:Key="DrumkitListDataTemplate">
|
||||
<Grid Name="theGrid">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!-- Left thing -->
|
||||
<Border Name="orangeBorder"
|
||||
Grid.Column="0" Grid.RowSpan="3"
|
||||
Background="OrangeRed" Width="10" />
|
||||
|
||||
<!--<Image MinWidth="10"
|
||||
Source="{Binding Thumbnail}" />-->
|
||||
|
||||
<!-- Name -->
|
||||
<TextBox x:ConnectionId='1' Grid.Column="1" Grid.Row="0" Margin="15,2,15,0"
|
||||
FontSize="15.3"
|
||||
Style="{StaticResource MyTextBoxStyle}"
|
||||
IsReadOnly="True"
|
||||
Text="{Binding Name}"
|
||||
/>
|
||||
|
||||
<!-- Description -->
|
||||
<TextBox x:ConnectionId='2' Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="1" Margin="15,0,15,2"
|
||||
Style="{StaticResource MyTextBoxStyle}"
|
||||
Text="{Binding Description}"
|
||||
|
||||
FontSize="13"
|
||||
FontStyle="Italic"
|
||||
IsReadOnly="True"
|
||||
AcceptsReturn="True"
|
||||
TextWrapping="Wrap"
|
||||
Height="80" />
|
||||
|
||||
</Grid>
|
||||
|
||||
</DataTemplate>
|
||||
|
||||
<Style x:Key="ListViewStretchItemStyle" TargetType="ListViewItem">
|
||||
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
|
||||
</UserControl.Resources>
|
||||
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!-- Drumkit list -->
|
||||
<ListView Name="listDrumkits"
|
||||
Grid.Row="0" Grid.Column="0"
|
||||
ItemTemplate="{StaticResource DrumkitListDataTemplate}"
|
||||
ItemContainerStyle="{StaticResource ListViewStretchItemStyle}"
|
||||
SelectionMode="Single" >
|
||||
|
||||
</ListView>
|
||||
|
||||
<ProgressRing
|
||||
Name="progressRing"
|
||||
Foreground="White"
|
||||
Width="50" Height="50" />
|
||||
|
||||
<!-- Buttons -->
|
||||
<StackPanel Grid.Row="1" Grid.ColumnSpan="2" Orientation="Horizontal">
|
||||
<!--<Button Style="{StaticResource MyButtonStyle}" Click="ButtonCreate_Click">Create</Button>-->
|
||||
<Button x:ConnectionId='3' Style="{StaticResource MyButtonStyle}" >Import</Button>
|
||||
<Button x:ConnectionId='4' Style="{StaticResource MyButtonStyle}" >Export</Button>
|
||||
<Border Width="20" />
|
||||
<Button x:ConnectionId='5' Style="{StaticResource MyButtonStyle}" >Delete</Button>
|
||||
<Button x:ConnectionId='6' Style="{StaticResource MyButtonStyle}" >Set current</Button>
|
||||
</StackPanel>
|
||||
|
||||
</Grid>
|
||||
|
||||
</UserControl>
|
||||
|
54
DrumKit/obj/Debug/UI/Settings/DrumsSettingsControl.g.cs
Normal file
54
DrumKit/obj/Debug/UI/Settings/DrumsSettingsControl.g.cs
Normal file
@ -0,0 +1,54 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\Settings\DrumsSettingsControl.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "9F68B443FA4F9B19FEF0BEE7FA614D9E"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class DrumsSettingsControl : global::Windows.UI.Xaml.Controls.UserControl, global::Windows.UI.Xaml.Markup.IComponentConnector
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
|
||||
public void Connect(int connectionId, object target)
|
||||
{
|
||||
switch(connectionId)
|
||||
{
|
||||
case 1:
|
||||
#line 107 "..\..\..\UI\Settings\DrumsSettingsControl.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.RangeBase)(target)).ValueChanged += this.sliderVolumeL_ValueChanged;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 2:
|
||||
#line 121 "..\..\..\UI\Settings\DrumsSettingsControl.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.RangeBase)(target)).ValueChanged += this.sliderVolumeR_ValueChanged;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 3:
|
||||
#line 72 "..\..\..\UI\Settings\DrumsSettingsControl.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.ButtonBase)(target)).Click += this.ToggleEnabled_Click;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 4:
|
||||
#line 83 "..\..\..\UI\Settings\DrumsSettingsControl.xaml"
|
||||
((global::Windows.UI.Xaml.UIElement)(target)).KeyUp += this.TextKey_KeyUp;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
38
DrumKit/obj/Debug/UI/Settings/DrumsSettingsControl.g.i.cs
Normal file
38
DrumKit/obj/Debug/UI/Settings/DrumsSettingsControl.g.i.cs
Normal file
@ -0,0 +1,38 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\Settings\DrumsSettingsControl.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "9F68B443FA4F9B19FEF0BEE7FA614D9E"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class DrumsSettingsControl : global::Windows.UI.Xaml.Controls.UserControl
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.GridView listDrums;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private bool _contentLoaded;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void InitializeComponent()
|
||||
{
|
||||
if (_contentLoaded)
|
||||
return;
|
||||
|
||||
_contentLoaded = true;
|
||||
global::Windows.UI.Xaml.Application.LoadComponent(this, new global::System.Uri("ms-appx:///UI/Settings/DrumsSettingsControl.xaml"), global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);
|
||||
|
||||
listDrums = (global::Windows.UI.Xaml.Controls.GridView)this.FindName("listDrums");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
165
DrumKit/obj/Debug/UI/Settings/DrumsSettingsControl.xaml
Normal file
165
DrumKit/obj/Debug/UI/Settings/DrumsSettingsControl.xaml
Normal file
@ -0,0 +1,165 @@
|
||||
<UserControl
|
||||
x:Class="DrumKit.DrumsSettingsControl"
|
||||
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"
|
||||
d:DesignHeight="400"
|
||||
d:DesignWidth="400">
|
||||
|
||||
<UserControl.Resources>
|
||||
<ResourceDictionary>
|
||||
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="/Common/TextButtonStyles.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
|
||||
|
||||
<DataTemplate x:Key="DrumsListDataTemplate">
|
||||
<Grid Name="theGrid"
|
||||
MinWidth="380">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!-- Left thing -->
|
||||
<Border Name="yellowBorder"
|
||||
Grid.Column="0" Grid.RowSpan="3"
|
||||
Background="Yellow" Width="10" />
|
||||
|
||||
<!-- Thumbnail -->
|
||||
<Image Grid.Row="0" Grid.RowSpan="2"
|
||||
Grid.Column="2"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center"
|
||||
Width="60" Height="60"
|
||||
Source="{Binding LoadedImageSource}"
|
||||
Stretch="Uniform" />
|
||||
|
||||
<!-- Name -->
|
||||
<TextBox Grid.Column="1" Grid.Row="0" Margin="15,2,15,0"
|
||||
FontSize="15.3"
|
||||
Style="{StaticResource MyTextBoxStyle}"
|
||||
Text="{Binding Name}"
|
||||
IsReadOnly="True" />
|
||||
|
||||
<!-- Configuration -->
|
||||
<Grid
|
||||
Grid.Column="1" Grid.Row="1" Margin="15,0,15,2">
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition />
|
||||
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<ToggleButton x:ConnectionId='3'
|
||||
Name="toggleEnabled" Grid.Column="0"
|
||||
Margin="0,-4,20,0" Padding="5,1"
|
||||
Content="Enabled"
|
||||
/>
|
||||
|
||||
<TextBlock
|
||||
Grid.Column="1"
|
||||
Style="{StaticResource TitleTextStyle}"
|
||||
Text="Key:" />
|
||||
|
||||
<TextBox x:ConnectionId='4'
|
||||
Grid.Column="2"
|
||||
Name="textKey"
|
||||
Style="{StaticResource MyTextBoxStyle}"
|
||||
/>
|
||||
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Column="1" Grid.Row="2" Margin="15,2,15,0">
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock
|
||||
Grid.Column="0"
|
||||
Style="{StaticResource TitleTextStyle}"
|
||||
Text="Volume left:" />
|
||||
|
||||
<Slider x:ConnectionId='1' Name="sliderVolumeL"
|
||||
Grid.Column="1"
|
||||
Margin="5,-8,5,0"
|
||||
Height="34"
|
||||
Minimum="0" Maximum="1"
|
||||
StepFrequency=".01"
|
||||
/>
|
||||
|
||||
<TextBlock
|
||||
Margin="10,0,0,0"
|
||||
Grid.Column="2"
|
||||
Style="{StaticResource TitleTextStyle}"
|
||||
Text="Right:" />
|
||||
|
||||
<Slider x:ConnectionId='2' Name="sliderVolumeR"
|
||||
Grid.Column="3"
|
||||
Margin="5,-8,5,0"
|
||||
Height="34"
|
||||
Minimum="0" Maximum="1"
|
||||
StepFrequency=".01"
|
||||
/>
|
||||
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
|
||||
</DataTemplate>
|
||||
|
||||
<Style x:Key="GridViewStretchItemStyle" TargetType="GridViewItem">
|
||||
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
|
||||
</UserControl.Resources>
|
||||
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!-- Drums list -->
|
||||
<GridView Name="listDrums"
|
||||
Grid.Row="0" Grid.Column="0"
|
||||
ItemTemplate="{StaticResource DrumsListDataTemplate}"
|
||||
ItemContainerStyle="{StaticResource GridViewStretchItemStyle}"
|
||||
SelectionMode="Single" >
|
||||
<local:Drum ImageSource="/Assets/bg.png" Id="adda" Name="Hello world!" />
|
||||
</GridView>
|
||||
|
||||
<!-- Buttons -->
|
||||
<!--<StackPanel Grid.Row="1" Grid.ColumnSpan="2" Orientation="Horizontal">
|
||||
<Button Style="{StaticResource MyButtonStyle}" Click="ButtonCreate_Click">Create</Button>
|
||||
<Button Style="{StaticResource MyButtonStyle}" Click="ButtonDelete_Click">Delete</Button>
|
||||
</StackPanel>-->
|
||||
|
||||
</Grid>
|
||||
|
||||
</UserControl>
|
||||
|
@ -0,0 +1,27 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\Settings\ExperimentsSettingsControl.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "B59FC1CA9BC38B780DD19CC630EEB453"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class ExperimentsSettingsControl : global::Windows.UI.Xaml.Controls.UserControl, global::Windows.UI.Xaml.Markup.IComponentConnector
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
|
||||
public void Connect(int connectionId, object target)
|
||||
{
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,38 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\Settings\ExperimentsSettingsControl.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "B59FC1CA9BC38B780DD19CC630EEB453"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class ExperimentsSettingsControl : global::Windows.UI.Xaml.Controls.UserControl
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.Canvas canvas;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private bool _contentLoaded;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void InitializeComponent()
|
||||
{
|
||||
if (_contentLoaded)
|
||||
return;
|
||||
|
||||
_contentLoaded = true;
|
||||
global::Windows.UI.Xaml.Application.LoadComponent(this, new global::System.Uri("ms-appx:///UI/Settings/ExperimentsSettingsControl.xaml"), global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);
|
||||
|
||||
canvas = (global::Windows.UI.Xaml.Controls.Canvas)this.FindName("canvas");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -0,0 +1,27 @@
|
||||
<UserControl
|
||||
x:Class="DrumKit.ExperimentsSettingsControl"
|
||||
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"
|
||||
d:DesignHeight="300"
|
||||
d:DesignWidth="400">
|
||||
|
||||
<UserControl.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="/Common/TextButtonStyles.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</UserControl.Resources>
|
||||
|
||||
<Canvas Name="canvas">
|
||||
<StackPanel>
|
||||
<TextBox Style="{StaticResource MyTextBoxStyle}" Width="200" Text="Hello world!"/>
|
||||
</StackPanel>
|
||||
|
||||
</Canvas>
|
||||
</UserControl>
|
||||
|
27
DrumKit/obj/Debug/UI/Settings/GeneralSettingsControl.g.cs
Normal file
27
DrumKit/obj/Debug/UI/Settings/GeneralSettingsControl.g.cs
Normal file
@ -0,0 +1,27 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\Settings\GeneralSettingsControl.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "DE2627461D4870A4A55788E5706BECF7"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class GeneralSettingsControl : global::Windows.UI.Xaml.Controls.UserControl, global::Windows.UI.Xaml.Markup.IComponentConnector
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
|
||||
public void Connect(int connectionId, object target)
|
||||
{
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
59
DrumKit/obj/Debug/UI/Settings/GeneralSettingsControl.g.i.cs
Normal file
59
DrumKit/obj/Debug/UI/Settings/GeneralSettingsControl.g.i.cs
Normal file
@ -0,0 +1,59 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\Settings\GeneralSettingsControl.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "DE2627461D4870A4A55788E5706BECF7"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class GeneralSettingsControl : global::Windows.UI.Xaml.Controls.UserControl
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.Button buttonWebsite;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.Button buttonSupport;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.TextBlock textVersion;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.Slider masterVolumeSlider;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.Slider polyphonySlider;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.ToggleSwitch animationsToggle;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.ToggleSwitch debuggingModeToggle;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.Button buttonReset;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private bool _contentLoaded;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void InitializeComponent()
|
||||
{
|
||||
if (_contentLoaded)
|
||||
return;
|
||||
|
||||
_contentLoaded = true;
|
||||
global::Windows.UI.Xaml.Application.LoadComponent(this, new global::System.Uri("ms-appx:///UI/Settings/GeneralSettingsControl.xaml"), global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);
|
||||
|
||||
buttonWebsite = (global::Windows.UI.Xaml.Controls.Button)this.FindName("buttonWebsite");
|
||||
buttonSupport = (global::Windows.UI.Xaml.Controls.Button)this.FindName("buttonSupport");
|
||||
textVersion = (global::Windows.UI.Xaml.Controls.TextBlock)this.FindName("textVersion");
|
||||
masterVolumeSlider = (global::Windows.UI.Xaml.Controls.Slider)this.FindName("masterVolumeSlider");
|
||||
polyphonySlider = (global::Windows.UI.Xaml.Controls.Slider)this.FindName("polyphonySlider");
|
||||
animationsToggle = (global::Windows.UI.Xaml.Controls.ToggleSwitch)this.FindName("animationsToggle");
|
||||
debuggingModeToggle = (global::Windows.UI.Xaml.Controls.ToggleSwitch)this.FindName("debuggingModeToggle");
|
||||
buttonReset = (global::Windows.UI.Xaml.Controls.Button)this.FindName("buttonReset");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
175
DrumKit/obj/Debug/UI/Settings/GeneralSettingsControl.xaml
Normal file
175
DrumKit/obj/Debug/UI/Settings/GeneralSettingsControl.xaml
Normal file
@ -0,0 +1,175 @@
|
||||
<UserControl
|
||||
x:Class="DrumKit.GeneralSettingsControl"
|
||||
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"
|
||||
d:DesignHeight="635.463"
|
||||
d:DesignWidth="1075.987">
|
||||
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid.Resources>
|
||||
|
||||
<Style x:Key="MyTitleTextStyle" TargetType="TextBlock" BasedOn="{StaticResource TitleTextStyle}">
|
||||
<Setter Property="Margin" Value="20,24,2,2" />
|
||||
<Setter Property="Foreground" Value="#59FFFF" />
|
||||
</Style>
|
||||
|
||||
<Style x:Key="MyItemTextStyle" TargetType="TextBlock" BasedOn="{StaticResource ItemTextStyle}">
|
||||
<Setter Property="Margin" Value="2,12,2,2" />
|
||||
</Style>
|
||||
|
||||
</Grid.Resources>
|
||||
|
||||
<!-- About section -->
|
||||
<TextBlock Style="{StaticResource MyTitleTextStyle}"
|
||||
Grid.Row="0" Margin="20,4,2,2">
|
||||
About</TextBlock>
|
||||
|
||||
<!-- About section: Website -->
|
||||
<TextBlock Style="{StaticResource ItemTextStyle}"
|
||||
Grid.Row="1" Margin="2,12,2,2">
|
||||
Drumkit website</TextBlock>
|
||||
|
||||
<Button Name="buttonWebsite"
|
||||
Style="{StaticResource TextButtonStyle}"
|
||||
Grid.Row="1" Grid.Column="1" VerticalAlignment="Bottom">
|
||||
drumkit8.blogspot.com</Button>
|
||||
|
||||
<!-- About section: Support -->
|
||||
<TextBlock Style="{StaticResource ItemTextStyle}"
|
||||
Grid.Row="2" Margin="2,12,2,2">
|
||||
Support</TextBlock>
|
||||
|
||||
<Button Name="buttonSupport"
|
||||
Style="{StaticResource TextButtonStyle}"
|
||||
Grid.Row="2" Grid.Column="1" VerticalAlignment="Bottom">
|
||||
chibicitiberiu@outlook.com</Button>
|
||||
|
||||
|
||||
<!-- About section: Version -->
|
||||
<TextBlock Style="{StaticResource ItemTextStyle}"
|
||||
Grid.Row="3" Margin="2,12,2,2">
|
||||
Version</TextBlock>
|
||||
|
||||
<TextBlock Name="textVersion"
|
||||
Grid.Row="3" Grid.Column="1" VerticalAlignment="Bottom"
|
||||
Margin="0,2,2,2"
|
||||
Style="{StaticResource BodyTextStyle}" >
|
||||
1.0
|
||||
</TextBlock>
|
||||
|
||||
|
||||
<!-- Sound section -->
|
||||
<TextBlock Style="{StaticResource MyTitleTextStyle}"
|
||||
Grid.Row="6">
|
||||
Sound</TextBlock>
|
||||
|
||||
<!-- Sound section: Master volume -->
|
||||
<TextBlock Style="{StaticResource ItemTextStyle}"
|
||||
Grid.Row="7" Margin="2,7,2,2">
|
||||
Master volume</TextBlock>
|
||||
|
||||
<Slider Name="masterVolumeSlider"
|
||||
Grid.Row="7" Grid.Column="1"
|
||||
Minimum="0" Maximum="100"
|
||||
StepFrequency="1"
|
||||
SmallChange=".05" LargeChange=".2"
|
||||
Width="100" Height="48"
|
||||
HorizontalAlignment="Left"/>
|
||||
|
||||
<!-- Sound section: Polyphony -->
|
||||
<TextBlock Style="{StaticResource ItemTextStyle}"
|
||||
Grid.Row="8" Margin="2,7,2,2">
|
||||
Polyphony*</TextBlock>
|
||||
|
||||
<Slider Name="polyphonySlider"
|
||||
Grid.Row="8" Grid.Column="1"
|
||||
Minimum="1" Maximum="256"
|
||||
StepFrequency="1"
|
||||
SmallChange="1" LargeChange="5"
|
||||
Width="100" Height="48"
|
||||
HorizontalAlignment="Left"/>
|
||||
|
||||
<!-- Interface section -->
|
||||
<TextBlock Style="{StaticResource MyTitleTextStyle}"
|
||||
Grid.Row="9">
|
||||
Interface</TextBlock>
|
||||
|
||||
<!-- Interface section: Animations -->
|
||||
<TextBlock Style="{StaticResource ItemTextStyle}"
|
||||
Grid.Row="10" Margin="2,12,2,2">
|
||||
Animations</TextBlock>
|
||||
|
||||
<ToggleSwitch Name="animationsToggle"
|
||||
Grid.Row="10" Grid.Column="1"/>
|
||||
|
||||
<!-- Interface section: Key bindings -->
|
||||
<!--<TextBlock Style="{StaticResource ItemTextStyle}"
|
||||
Grid.Row="11" Margin="2,12,2,2">
|
||||
Display key bindings</TextBlock>
|
||||
|
||||
<ToggleSwitch Name="keyBindingsToggle"
|
||||
Grid.Row="11" Grid.Column="1"/>-->
|
||||
|
||||
<!-- Miscellaneous section -->
|
||||
<TextBlock Style="{StaticResource MyTitleTextStyle}"
|
||||
Grid.Row="12">
|
||||
Miscellaneous</TextBlock>
|
||||
|
||||
<!-- Miscellaneous section: Debugging mode -->
|
||||
<TextBlock Style="{StaticResource ItemTextStyle}"
|
||||
Grid.Row="13" Margin="2,12,2,2">
|
||||
Debugging mode</TextBlock>
|
||||
|
||||
<ToggleSwitch Name="debuggingModeToggle"
|
||||
Grid.Row="13" Grid.Column="1"/>
|
||||
|
||||
<TextBlock Style="{StaticResource ItemTextStyle}"
|
||||
Grid.Row="14" Margin="2,12,2,2">
|
||||
Factory reset*</TextBlock>
|
||||
|
||||
<Button Name="buttonReset"
|
||||
Style="{StaticResource TextButtonStyle}"
|
||||
Grid.Row="14" Grid.Column="1" VerticalAlignment="Bottom">
|
||||
Reset</Button>
|
||||
|
||||
<!-- Notes section -->
|
||||
|
||||
<TextBlock Grid.Row="100" Style="{StaticResource MyItemTextStyle}"
|
||||
FontSize="11"
|
||||
Foreground="Silver">
|
||||
* Will be applied after the application is restarted.
|
||||
</TextBlock>
|
||||
|
||||
</Grid>
|
||||
</UserControl>
|
||||
|
84
DrumKit/obj/Debug/UI/Settings/LayoutsSettingsControl.g.cs
Normal file
84
DrumKit/obj/Debug/UI/Settings/LayoutsSettingsControl.g.cs
Normal file
@ -0,0 +1,84 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\Settings\LayoutsSettingsControl.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "B535E026C1EA5DD654817CA3834D1277"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class LayoutsSettingsControl : global::Windows.UI.Xaml.Controls.UserControl, global::Windows.UI.Xaml.Markup.IComponentConnector
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
|
||||
public void Connect(int connectionId, object target)
|
||||
{
|
||||
switch(connectionId)
|
||||
{
|
||||
case 1:
|
||||
#line 37 "..\..\..\UI\Settings\LayoutsSettingsControl.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.TextBox)(target)).TextChanged += this.NameTextChanged;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 2:
|
||||
#line 42 "..\..\..\UI\Settings\LayoutsSettingsControl.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.ButtonBase)(target)).Click += this.ToggleLandscape_Click;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 3:
|
||||
#line 43 "..\..\..\UI\Settings\LayoutsSettingsControl.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.ButtonBase)(target)).Click += this.TogglePortrait_Click;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 4:
|
||||
#line 44 "..\..\..\UI\Settings\LayoutsSettingsControl.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.ButtonBase)(target)).Click += this.ToggleFilled_Click;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 5:
|
||||
#line 45 "..\..\..\UI\Settings\LayoutsSettingsControl.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.ButtonBase)(target)).Click += this.ToggleSnapped_Click;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 6:
|
||||
#line 85 "..\..\..\UI\Settings\LayoutsSettingsControl.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.ButtonBase)(target)).Click += this.ButtonCreate_Click;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 7:
|
||||
#line 86 "..\..\..\UI\Settings\LayoutsSettingsControl.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.ButtonBase)(target)).Click += this.ButtonEdit_Click;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 8:
|
||||
#line 87 "..\..\..\UI\Settings\LayoutsSettingsControl.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.ButtonBase)(target)).Click += this.ButtonDelete_Click;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 9:
|
||||
#line 88 "..\..\..\UI\Settings\LayoutsSettingsControl.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.ButtonBase)(target)).Click += this.ButtonToggleActive_Click;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
38
DrumKit/obj/Debug/UI/Settings/LayoutsSettingsControl.g.i.cs
Normal file
38
DrumKit/obj/Debug/UI/Settings/LayoutsSettingsControl.g.i.cs
Normal file
@ -0,0 +1,38 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\Settings\LayoutsSettingsControl.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "B535E026C1EA5DD654817CA3834D1277"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class LayoutsSettingsControl : global::Windows.UI.Xaml.Controls.UserControl
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.ListView listLayouts;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private bool _contentLoaded;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void InitializeComponent()
|
||||
{
|
||||
if (_contentLoaded)
|
||||
return;
|
||||
|
||||
_contentLoaded = true;
|
||||
global::Windows.UI.Xaml.Application.LoadComponent(this, new global::System.Uri("ms-appx:///UI/Settings/LayoutsSettingsControl.xaml"), global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);
|
||||
|
||||
listLayouts = (global::Windows.UI.Xaml.Controls.ListView)this.FindName("listLayouts");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
93
DrumKit/obj/Debug/UI/Settings/LayoutsSettingsControl.xaml
Normal file
93
DrumKit/obj/Debug/UI/Settings/LayoutsSettingsControl.xaml
Normal file
@ -0,0 +1,93 @@
|
||||
<UserControl
|
||||
x:Class="DrumKit.LayoutsSettingsControl"
|
||||
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"
|
||||
d:DesignHeight="300"
|
||||
d:DesignWidth="400">
|
||||
|
||||
<UserControl.Resources>
|
||||
<ResourceDictionary>
|
||||
|
||||
<DataTemplate x:Key="DrumkitListDataTemplate">
|
||||
<Grid Name="theGrid">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!-- Left thing -->
|
||||
<Border Name="greenBorder"
|
||||
Grid.Column="0" Grid.RowSpan="3"
|
||||
Background="GreenYellow" Width="10" />
|
||||
|
||||
<!-- Name -->
|
||||
<TextBox x:ConnectionId='1' Grid.Column="1" Grid.Row="0" Margin="15,2,15,0"
|
||||
FontSize="15.3"
|
||||
Style="{StaticResource MyTextBoxStyle}"
|
||||
Text="{Binding Name}"
|
||||
/>
|
||||
|
||||
<!-- Description -->
|
||||
<StackPanel Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="1" Margin="15,0,15,2"
|
||||
Orientation="Horizontal">
|
||||
<ToggleButton x:ConnectionId='2' Name="toggleLandscape" >Landscape</ToggleButton>
|
||||
<ToggleButton x:ConnectionId='3' Name="togglePortrait" >Portrait</ToggleButton>
|
||||
<ToggleButton x:ConnectionId='4' Name="toggleFilled" >Filled</ToggleButton>
|
||||
<ToggleButton x:ConnectionId='5' Name="toggleSnapped" >Snapped</ToggleButton>
|
||||
</StackPanel>
|
||||
|
||||
</Grid>
|
||||
|
||||
</DataTemplate>
|
||||
|
||||
<Style x:Key="ListViewStretchItemStyle" TargetType="ListViewItem">
|
||||
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
|
||||
</UserControl.Resources>
|
||||
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!-- Drumkit list -->
|
||||
<ListView Name="listLayouts"
|
||||
Grid.Row="0" Grid.Column="0"
|
||||
ItemTemplate="{StaticResource DrumkitListDataTemplate}"
|
||||
ItemContainerStyle="{StaticResource ListViewStretchItemStyle}"
|
||||
SelectionMode="Single" >
|
||||
|
||||
<local:DrumkitLayout IsDefault="True" Name="Hello world" TargetViewSerialize="All" />
|
||||
|
||||
<TextBlock>Hello world!</TextBlock>
|
||||
|
||||
</ListView>
|
||||
|
||||
<!-- Buttons -->
|
||||
<StackPanel Grid.Row="1" Grid.ColumnSpan="2" Orientation="Horizontal">
|
||||
<Button x:ConnectionId='6' Style="{StaticResource MyButtonStyle}" >Create</Button>
|
||||
<Button x:ConnectionId='7' Style="{StaticResource MyButtonStyle}" >Edit</Button>
|
||||
<Button x:ConnectionId='8' Style="{StaticResource MyButtonStyle}" >Delete</Button>
|
||||
<Button x:ConnectionId='9' Style="{StaticResource MyButtonStyle}" >Toggle active</Button>
|
||||
</StackPanel>
|
||||
|
||||
</Grid>
|
||||
</UserControl>
|
||||
|
48
DrumKit/obj/Debug/UI/Settings/LogControl.g.cs
Normal file
48
DrumKit/obj/Debug/UI/Settings/LogControl.g.cs
Normal file
@ -0,0 +1,48 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\Settings\LogControl.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "2A6A67A220F8CAAFFDF50101B9020B28"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class LogControl : global::Windows.UI.Xaml.Controls.UserControl, global::Windows.UI.Xaml.Markup.IComponentConnector
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
|
||||
public void Connect(int connectionId, object target)
|
||||
{
|
||||
switch(connectionId)
|
||||
{
|
||||
case 1:
|
||||
#line 25 "..\..\..\UI\Settings\LogControl.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.Selector)(target)).SelectionChanged += this.LogEntriesList_SelectionChanged;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 2:
|
||||
#line 31 "..\..\..\UI\Settings\LogControl.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.ButtonBase)(target)).Click += this.ButtonSave_Click;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 3:
|
||||
#line 32 "..\..\..\UI\Settings\LogControl.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.ButtonBase)(target)).Click += this.ButtonClear_Click;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
44
DrumKit/obj/Debug/UI/Settings/LogControl.g.i.cs
Normal file
44
DrumKit/obj/Debug/UI/Settings/LogControl.g.i.cs
Normal file
@ -0,0 +1,44 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\Settings\LogControl.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "2A6A67A220F8CAAFFDF50101B9020B28"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class LogControl : global::Windows.UI.Xaml.Controls.UserControl
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.ListView logEntriesList;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Shapes.Rectangle logTextPlaceholder;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.WebView logText;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private bool _contentLoaded;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void InitializeComponent()
|
||||
{
|
||||
if (_contentLoaded)
|
||||
return;
|
||||
|
||||
_contentLoaded = true;
|
||||
global::Windows.UI.Xaml.Application.LoadComponent(this, new global::System.Uri("ms-appx:///UI/Settings/LogControl.xaml"), global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);
|
||||
|
||||
logEntriesList = (global::Windows.UI.Xaml.Controls.ListView)this.FindName("logEntriesList");
|
||||
logTextPlaceholder = (global::Windows.UI.Xaml.Shapes.Rectangle)this.FindName("logTextPlaceholder");
|
||||
logText = (global::Windows.UI.Xaml.Controls.WebView)this.FindName("logText");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
38
DrumKit/obj/Debug/UI/Settings/LogControl.xaml
Normal file
38
DrumKit/obj/Debug/UI/Settings/LogControl.xaml
Normal file
@ -0,0 +1,38 @@
|
||||
<UserControl
|
||||
x:Class="DrumKit.LogControl"
|
||||
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"
|
||||
d:DesignHeight="300"
|
||||
d:DesignWidth="400">
|
||||
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="2.5*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<ListView x:ConnectionId='1' Name="logEntriesList" Grid.Column="0" Margin="5"
|
||||
Background="#3FFF"
|
||||
/>
|
||||
|
||||
<Rectangle Name="logTextPlaceholder" Grid.Column="1" Margin="0,5,5,5" />
|
||||
<WebView Name="logText" Grid.Column="1" Margin="0,5,5,5"/>
|
||||
|
||||
<StackPanel Grid.Row="1" Grid.ColumnSpan="5" Orientation="Horizontal">
|
||||
<Button x:ConnectionId='2' Style="{StaticResource MyButtonStyle}" >Save as</Button>
|
||||
<Button x:ConnectionId='3' Style="{StaticResource MyButtonStyle}" >Delete all</Button>
|
||||
</StackPanel>
|
||||
|
||||
</Grid>
|
||||
|
||||
</UserControl>
|
||||
|
66
DrumKit/obj/Debug/UI/SettingsPage.g.cs
Normal file
66
DrumKit/obj/Debug/UI/SettingsPage.g.cs
Normal file
@ -0,0 +1,66 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\SettingsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "3A715E9B335F7CA88FB3A245EAC47CA1"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class SettingsPage : global::Windows.UI.Xaml.Controls.Page, global::Windows.UI.Xaml.Markup.IComponentConnector
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
|
||||
public void Connect(int connectionId, object target)
|
||||
{
|
||||
switch(connectionId)
|
||||
{
|
||||
case 1:
|
||||
#line 72 "..\..\UI\SettingsPage.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.ButtonBase)(target)).Click += this.buttonBack_Click_1;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 2:
|
||||
#line 91 "..\..\UI\SettingsPage.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.ButtonBase)(target)).Click += this.radioGeneral_Click_1;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 3:
|
||||
#line 96 "..\..\UI\SettingsPage.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.ButtonBase)(target)).Click += this.radioGeneral_Click_1;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 4:
|
||||
#line 101 "..\..\UI\SettingsPage.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.ButtonBase)(target)).Click += this.radioGeneral_Click_1;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 5:
|
||||
#line 106 "..\..\UI\SettingsPage.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.ButtonBase)(target)).Click += this.radioGeneral_Click_1;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
case 6:
|
||||
#line 111 "..\..\UI\SettingsPage.xaml"
|
||||
((global::Windows.UI.Xaml.Controls.Primitives.ButtonBase)(target)).Click += this.radioGeneral_Click_1;
|
||||
#line default
|
||||
#line hidden
|
||||
break;
|
||||
}
|
||||
this._contentLoaded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
56
DrumKit/obj/Debug/UI/SettingsPage.g.i.cs
Normal file
56
DrumKit/obj/Debug/UI/SettingsPage.g.i.cs
Normal file
@ -0,0 +1,56 @@
|
||||
|
||||
|
||||
#pragma checksum "F:\Dev\Windows8\DrumKit\DrumKit\UI\SettingsPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "3A715E9B335F7CA88FB3A245EAC47CA1"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace DrumKit
|
||||
{
|
||||
partial class SettingsPage : global::Windows.UI.Xaml.Controls.Page
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.Button buttonBack;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.ContentControl contentControl;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.RadioButton radioGeneral;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.RadioButton radioDrumkit;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.RadioButton radioDrums;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.RadioButton radioLayouts;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private global::Windows.UI.Xaml.Controls.RadioButton radioLogs;
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
private bool _contentLoaded;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void InitializeComponent()
|
||||
{
|
||||
if (_contentLoaded)
|
||||
return;
|
||||
|
||||
_contentLoaded = true;
|
||||
global::Windows.UI.Xaml.Application.LoadComponent(this, new global::System.Uri("ms-appx:///UI/SettingsPage.xaml"), global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);
|
||||
|
||||
buttonBack = (global::Windows.UI.Xaml.Controls.Button)this.FindName("buttonBack");
|
||||
contentControl = (global::Windows.UI.Xaml.Controls.ContentControl)this.FindName("contentControl");
|
||||
radioGeneral = (global::Windows.UI.Xaml.Controls.RadioButton)this.FindName("radioGeneral");
|
||||
radioDrumkit = (global::Windows.UI.Xaml.Controls.RadioButton)this.FindName("radioDrumkit");
|
||||
radioDrums = (global::Windows.UI.Xaml.Controls.RadioButton)this.FindName("radioDrums");
|
||||
radioLayouts = (global::Windows.UI.Xaml.Controls.RadioButton)this.FindName("radioLayouts");
|
||||
radioLogs = (global::Windows.UI.Xaml.Controls.RadioButton)this.FindName("radioLogs");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
137
DrumKit/obj/Debug/UI/SettingsPage.xaml
Normal file
137
DrumKit/obj/Debug/UI/SettingsPage.xaml
Normal file
@ -0,0 +1,137 @@
|
||||
<Page
|
||||
x:Class="DrumKit.SettingsPage"
|
||||
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">
|
||||
|
||||
<Page.Resources>
|
||||
<Style x:Key="TabRadioButtonStyle" TargetType="RadioButton">
|
||||
<Setter Property="FontSize" Value="26.667"/>
|
||||
<Setter Property="FontWeight" Value="Light"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="RadioButton">
|
||||
<Border Padding="10,5,10,5">
|
||||
<VisualStateManager.VisualStateGroups>
|
||||
<VisualStateGroup x:Name="CheckStates">
|
||||
<VisualStateGroup.Transitions>
|
||||
<VisualTransition GeneratedDuration="0:0:0.2"/>
|
||||
</VisualStateGroup.Transitions>
|
||||
<VisualState x:Name="Checked">
|
||||
<Storyboard>
|
||||
<ColorAnimation Duration="0" To="#59FFFF" Storyboard.TargetProperty="(ContentPresenter.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="contentPresenter" d:IsOptimized="True"/>
|
||||
</Storyboard>
|
||||
</VisualState>
|
||||
<VisualState x:Name="Unchecked">
|
||||
<Storyboard>
|
||||
<ColorAnimation Duration="0" To="White" Storyboard.TargetProperty="(ContentPresenter.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="contentPresenter" d:IsOptimized="True"/>
|
||||
</Storyboard>
|
||||
</VisualState>
|
||||
<VisualState x:Name="Indeterminate">
|
||||
<Storyboard>
|
||||
<ColorAnimation Duration="0" To="White" Storyboard.TargetProperty="(ContentPresenter.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="contentPresenter" d:IsOptimized="True"/>
|
||||
</Storyboard>
|
||||
</VisualState>
|
||||
</VisualStateGroup>
|
||||
<VisualStateGroup x:Name="FocusStates"/>
|
||||
<VisualStateGroup x:Name="CommonStates"/>
|
||||
</VisualStateManager.VisualStateGroups>
|
||||
<ContentPresenter x:Name="contentPresenter"/>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</Page.Resources>
|
||||
|
||||
<Page.Transitions>
|
||||
<TransitionCollection>
|
||||
<EntranceThemeTransition />
|
||||
</TransitionCollection>
|
||||
</Page.Transitions>
|
||||
|
||||
<Border Background="{StaticResource ApplicationPageBackgroundThemeBrush}"
|
||||
Padding="40">
|
||||
<Grid >
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition />
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="120"/>
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Button x:ConnectionId='1' Name="buttonBack" Grid.Row="0" Grid.Column="0"
|
||||
Style="{StaticResource BackButtonStyle}"
|
||||
/>
|
||||
|
||||
<ScrollViewer Grid.Row="0" Grid.Column="1"
|
||||
ZoomMode="Disabled"
|
||||
HorizontalScrollMode="Enabled"
|
||||
HorizontalScrollBarVisibility="Hidden"
|
||||
VerticalScrollBarVisibility="Disabled"
|
||||
VerticalScrollMode="Disabled"
|
||||
VerticalAlignment="Top">
|
||||
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<StackPanel.ChildrenTransitions>
|
||||
<TransitionCollection>
|
||||
<EntranceThemeTransition />
|
||||
</TransitionCollection>
|
||||
</StackPanel.ChildrenTransitions>
|
||||
<RadioButton x:ConnectionId='2' Name="radioGeneral"
|
||||
Style="{StaticResource TabRadioButtonStyle}"
|
||||
IsChecked="True"
|
||||
>
|
||||
General
|
||||
</RadioButton>
|
||||
<RadioButton x:ConnectionId='3' Name="radioDrumkit"
|
||||
Style="{StaticResource TabRadioButtonStyle}"
|
||||
>
|
||||
Drumkits
|
||||
</RadioButton>
|
||||
<RadioButton x:ConnectionId='4' Name="radioDrums"
|
||||
Style="{StaticResource TabRadioButtonStyle}"
|
||||
>
|
||||
Drums
|
||||
</RadioButton>
|
||||
<RadioButton x:ConnectionId='5' Name="radioLayouts"
|
||||
Style="{StaticResource TabRadioButtonStyle}"
|
||||
>
|
||||
Layouts
|
||||
</RadioButton>
|
||||
<RadioButton x:ConnectionId='6' Name="radioLogs"
|
||||
Style="{StaticResource TabRadioButtonStyle}"
|
||||
>
|
||||
Logs
|
||||
</RadioButton>
|
||||
<!--<RadioButton Name="radioExperiments"
|
||||
Style="{StaticResource TabRadioButtonStyle}"
|
||||
Click="radioGeneral_Click_1">
|
||||
Experiments
|
||||
</RadioButton>-->
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
|
||||
<ContentControl Name="contentControl"
|
||||
Grid.Row="1" Grid.ColumnSpan="4"
|
||||
HorizontalContentAlignment="Stretch"
|
||||
VerticalContentAlignment="Stretch"
|
||||
VerticalAlignment="Stretch">
|
||||
<ContentControl.ContentTransitions>
|
||||
<TransitionCollection>
|
||||
<ContentThemeTransition HorizontalOffset="200" />
|
||||
</TransitionCollection>
|
||||
</ContentControl.ContentTransitions>
|
||||
</ContentControl>
|
||||
|
||||
</Grid>
|
||||
</Border>
|
||||
</Page>
|
||||
|
Reference in New Issue
Block a user