Created
October 21, 2011 12:35
-
-
Save azyobuzin/1303718 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TabItem Header="タブ"> | |
<Grid> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="auto"/> | |
<RowDefinition/> | |
</Grid.RowDefinitions> | |
<Button Grid.Row="0" | |
HorizontalAlignment="Left" | |
Background="Transparent" | |
BorderBrush="Transparent" | |
Margin="0,0,0,3" | |
Click="addTabButton_Click"> | |
<StackPanel Orientation="Horizontal"> | |
<Image Source="/Azyotter;component/Images/112_Plus_Green_16x16_72.png" | |
Height="16"/> | |
<TextBlock Text="タブを追加" VerticalAlignment="Center"/> | |
</StackPanel> | |
</Button> | |
<TabControl Grid.Row="1" ItemsSource="{Binding Tabs}"> | |
<TabControl.ItemTemplate> | |
<DataTemplate> | |
<TextBlock Text="{Binding Name}"/> | |
</DataTemplate> | |
</TabControl.ItemTemplate> | |
<TabControl.ContentTemplate> | |
<DataTemplate> | |
<Grid Margin="6"> | |
<Grid.Resources> | |
<Style TargetType="TextBlock"> | |
<Setter Property="HorizontalAlignment" Value="Right"/> | |
<Setter Property="VerticalAlignment" Value="Center"/> | |
</Style> | |
</Grid.Resources> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="auto"/> | |
<ColumnDefinition/> | |
</Grid.ColumnDefinitions> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="auto"/> | |
<RowDefinition Height="auto"/> | |
<RowDefinition Height="auto"/> | |
<RowDefinition Height="auto"/> | |
<RowDefinition/> | |
<RowDefinition Height="auto"/> | |
</Grid.RowDefinitions> | |
<TextBlock Grid.Column="0" Grid.Row="0" Text="名前 : "/> | |
<TextBox Grid.Column="1" Grid.Row="0" Text="{Binding Name}"/> | |
<TextBlock Grid.Column="0" Grid.Row="1" Text="種類 : "/> | |
<ComboBox Grid.Column="1" Grid.Row="1" | |
ItemsSource="{Binding Source={x:Type m:TimelineTypes}, Converter={StaticResource TypeToEnumValuesConverter}}" | |
SelectedItem="{Binding Type}"/> | |
<TextBlock Grid.Column="0" Grid.Row="2" Text="取得間隔(秒) : "/> | |
<TextBox Grid.Column="1" Grid.Row="2" | |
Text="{Binding RefreshSpan, ValidatesOnExceptions=True, NotifyOnValidationError=True}"/> | |
<TextBlock Grid.Column="0" Grid.Row="3" Text="取得件数 : "/> | |
<TextBox Grid.Column="1" Grid.Row="3" | |
Text="{Binding GetCount, ValidatesOnExceptions=True, NotifyOnValidationError=True}"/> | |
<Button Grid.ColumnSpan="2" Grid.Row="5" | |
HorizontalAlignment="Right" | |
Background="Transparent" | |
BorderBrush="Transparent" | |
Click="deleteTabButton_Click"> | |
<StackPanel Orientation="Horizontal"> | |
<Image Source="/Azyotter;component/Images/delete.png" | |
Height="16"/> | |
<TextBlock Text="このタブを削除"/> | |
</StackPanel> | |
</Button> | |
</Grid> | |
</DataTemplate> | |
</TabControl.ContentTemplate> | |
</TabControl> | |
</Grid> | |
</TabItem> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment