mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
62 lines
2.6 KiB
Plaintext
62 lines
2.6 KiB
Plaintext
|
<Window x:Class="RainmeterEditor.UI.Dialogs.CreateDocumentDialog"
|
||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
Title="CreateDocumentDialog" Height="250" Width="400">
|
||
|
<Grid Background="WhiteSmoke">
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition />
|
||
|
<RowDefinition Height="Auto" />
|
||
|
<RowDefinition Height="Auto" />
|
||
|
</Grid.RowDefinitions>
|
||
|
|
||
|
<ListView Name="listFormats" Grid.Row="0">
|
||
|
<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.GroupStyle>
|
||
|
<GroupStyle>
|
||
|
<GroupStyle.HeaderTemplate>
|
||
|
<DataTemplate>
|
||
|
<TextBlock FontWeight="Bold" FontSize="13pt" Text="{Binding Name}" />
|
||
|
</DataTemplate>
|
||
|
</GroupStyle.HeaderTemplate>
|
||
|
</GroupStyle>
|
||
|
</ListView.GroupStyle>
|
||
|
</ListView>
|
||
|
|
||
|
<Grid Grid.Row="1">
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition />
|
||
|
<RowDefinition />
|
||
|
</Grid.RowDefinitions>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="Auto" />
|
||
|
<ColumnDefinition />
|
||
|
<ColumnDefinition Width="Auto" />
|
||
|
</Grid.ColumnDefinitions>
|
||
|
|
||
|
<TextBlock Grid.Row="0">Path:</TextBlock>
|
||
|
<TextBox Name="textPath" Grid.Row="0" Grid.Column="1"></TextBox>
|
||
|
<Button Grid.Row="0" Grid.Column="2">...</Button>
|
||
|
|
||
|
</Grid>
|
||
|
|
||
|
<StackPanel Grid.Row="2" Orientation="Horizontal"
|
||
|
HorizontalAlignment="Right">
|
||
|
<Button Name="buttonCreate" Click="buttonCreate_Click" IsDefault="True">Create</Button>
|
||
|
<Button Name="buttonCancel" Click="buttonCancel_Click" IsCancel="True">Cancel</Button>
|
||
|
</StackPanel>
|
||
|
|
||
|
</Grid>
|
||
|
</Window>
|