drumkit-old/DrumKit/bin/Release/UI/Settings/DrumkitsSettingsControl.xaml

110 lines
4.3 KiB
Plaintext
Raw Normal View History

2013-11-18 18:11:53 +00:00
<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>