2014-07-26 07:12:56 +00:00
|
|
|
<Window x:Class="RainmeterStudio.UI.Dialogs.CreateDocumentDialog"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2014-08-15 12:31:33 +00:00
|
|
|
xmlns:r="clr-namespace:RainmeterStudio.Resources"
|
|
|
|
Title="{x:Static r:Strings.CreateDocumentDialog_Title}" Height="250" Width="400"
|
2014-07-26 07:12:56 +00:00
|
|
|
WindowStartupLocation="CenterOwner"
|
2014-08-14 07:06:20 +00:00
|
|
|
WindowStyle="ToolWindow" ShowInTaskbar="False"
|
|
|
|
Background="WhiteSmoke" >
|
2014-07-26 07:12:56 +00:00
|
|
|
|
2014-08-15 12:31:33 +00:00
|
|
|
<Grid Margin="2px">
|
2014-07-26 07:12:56 +00:00
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
</Grid.RowDefinitions>
|
2014-08-14 07:06:20 +00:00
|
|
|
|
2014-08-15 12:31:33 +00:00
|
|
|
<ListView Name="listTemplates" Grid.Row="0" Margin="1px"
|
|
|
|
SelectionChanged="listFormats_SelectionChanged">
|
2014-07-26 07:12:56 +00:00
|
|
|
<ListView.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<DockPanel>
|
|
|
|
<Image DockPanel.Dock="Left" Source="{Binding Icon}"
|
|
|
|
Width="32" Height="32" Margin="2"
|
|
|
|
Stretch="Uniform" VerticalAlignment="Top" />
|
|
|
|
<StackPanel Orientation="Vertical" VerticalAlignment="Center">
|
|
|
|
<TextBlock Text="{Binding Name}" FontWeight="Bold" />
|
|
|
|
<TextBlock Text="{Binding Description}" />
|
|
|
|
</StackPanel>
|
|
|
|
</DockPanel>
|
|
|
|
</DataTemplate>
|
|
|
|
</ListView.ItemTemplate>
|
|
|
|
</ListView>
|
|
|
|
|
2014-08-15 12:31:33 +00:00
|
|
|
<Grid Grid.Row="1">
|
2014-07-26 07:12:56 +00:00
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition />
|
|
|
|
<RowDefinition />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
2014-08-15 12:31:33 +00:00
|
|
|
<TextBlock Grid.Row="0" Text="{x:Static r:Strings.CreateDocumentDialog_Name}" />
|
2014-08-14 07:06:20 +00:00
|
|
|
<TextBox Name="textPath" Grid.Row="0" Grid.Column="1" Margin="1px"></TextBox>
|
2014-07-26 07:12:56 +00:00
|
|
|
|
2014-08-15 12:31:33 +00:00
|
|
|
<TextBlock Grid.Row="1">Path:</TextBlock>
|
|
|
|
<TextBox Name="textPath1" Grid.Row="1" Grid.Column="1" Margin="1px"></TextBox>
|
|
|
|
<Button Grid.Row="1" Grid.Column="2">...</Button>
|
|
|
|
|
2014-07-26 07:12:56 +00:00
|
|
|
</Grid>
|
2014-08-14 07:06:20 +00:00
|
|
|
|
2014-08-15 12:31:33 +00:00
|
|
|
<StackPanel Grid.Row="2" Orientation="Horizontal"
|
2014-07-26 07:12:56 +00:00
|
|
|
HorizontalAlignment="Right">
|
2014-08-14 07:06:20 +00:00
|
|
|
<Button Name="buttonCreate" Click="buttonCreate_Click" IsDefault="True" Margin="1px">Create</Button>
|
|
|
|
<Button Name="buttonCancel" Click="buttonCancel_Click" IsCancel="True" Margin="1px">Cancel</Button>
|
2014-07-26 07:12:56 +00:00
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
</Window>
|