|
@@ -5,9 +5,9 @@
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
xmlns:diag="clr-namespace:PixiEditor.Views.Dialogs"
|
|
|
- xmlns:xaml="clr-namespace:PixiEditor.Models.Commands.XAML"
|
|
|
xmlns:userControls="clr-namespace:PixiEditor.Views.UserControls"
|
|
|
xmlns:helpers="clr-namespace:PixiEditor.Helpers"
|
|
|
+ xmlns:views="clr-namespace:PixiEditor.Views"
|
|
|
mc:Ignorable="d"
|
|
|
Title="Import from template" Foreground="White"
|
|
|
WindowStartupLocation="CenterOwner"
|
|
@@ -15,7 +15,8 @@
|
|
|
SizeToContent="WidthAndHeight" WindowStyle="None"
|
|
|
Background="{StaticResource AccentColor}"
|
|
|
x:Name="window"
|
|
|
- FlowDirection="{helpers:Localization FlowDirection}">
|
|
|
+ FlowDirection="{helpers:Localization FlowDirection}"
|
|
|
+ views:Translator.Key="IMPORT_FROM_TEMPLATE">
|
|
|
|
|
|
<Window.CommandBindings>
|
|
|
<CommandBinding Command="{x:Static SystemCommands.CloseWindowCommand}" CanExecute="CommandBinding_CanExecute"
|
|
@@ -48,36 +49,6 @@
|
|
|
Logo="{Binding LogoPath}" Cursor="Hand"
|
|
|
MouseLeftButtonUp="OnTemplateCardLeftMouseButtonDown"
|
|
|
HoverLogo="{Binding Path=HoverLogoPath}"/>
|
|
|
- <!--<Grid Margin="0,5,0,0">
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="*"/>
|
|
|
- <ColumnDefinition Width="Auto"/>
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
- <TextBlock Text="{Binding Name}" VerticalAlignment="Center"
|
|
|
- ToolTip="{Binding Description}"/>
|
|
|
- <Image Source="{Binding LogoPath}" Width="48" Height="48"/>
|
|
|
- <StackPanel Grid.Column="1" Orientation="Horizontal">
|
|
|
- <StackPanel.Resources>
|
|
|
- <Style TargetType="Button" BasedOn="{StaticResource DarkRoundButton}">
|
|
|
- <Setter Property="Width" Value="120"/>
|
|
|
- <Setter Property="Height" Value="Auto"/>
|
|
|
- <Setter Property="Padding" Value="5"/>
|
|
|
- <Setter Property="FontSize" Value="12"/>
|
|
|
- <Setter Property="Margin" Value="5,0, 0, 0"/>
|
|
|
- </Style>
|
|
|
- </StackPanel.Resources>
|
|
|
- <Button Command="{xaml:Command PixiEditor.Shortcuts.Provider.ImportInstallation, UseProvided=True}"
|
|
|
- CommandParameter="{Binding}" Content="From installed"
|
|
|
- Visibility="{Binding ProvidesFromInstallation, Converter={BoolToVisibilityConverter}}"
|
|
|
- IsEnabled="{Binding HasInstallationPresent}"/>
|
|
|
- <Button Command="{xaml:Command PixiEditor.Shortcuts.Provider.ImportFile, UseProvided=True}"
|
|
|
- CommandParameter="{Binding}" Content="Import file"
|
|
|
- Visibility="{Binding ProvidesImport, Converter={BoolToVisibilityConverter}}"/>
|
|
|
- <Button Command="{xaml:Command PixiEditor.Shortcuts.Provider.ImportDefault, UseProvided=True}"
|
|
|
- CommandParameter="{Binding}" Content="Import defaults"
|
|
|
- Visibility="{Binding HasDefaultShortcuts, Converter={BoolToVisibilityConverter}}"/>
|
|
|
- </StackPanel>
|
|
|
- </Grid>-->
|
|
|
</DataTemplate>
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
</ItemsControl>
|