|
@@ -61,74 +61,75 @@
|
|
|
<cmd:EventToCommand Command="{Binding CloseWindowCommand}" PassEventArgsToCommand="True" />
|
|
|
</i:EventTrigger>
|
|
|
</i:Interaction.Triggers>
|
|
|
- <Grid Name="mainGrid" Margin="5" Focusable="True" >
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="45" />
|
|
|
- <ColumnDefinition Width="1*" />
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="30" />
|
|
|
- <RowDefinition Height="40" />
|
|
|
- <RowDefinition Height="1*" />
|
|
|
- <RowDefinition Height="30" />
|
|
|
- </Grid.RowDefinitions>
|
|
|
- <i:Interaction.Behaviors>
|
|
|
- <behaviours:ClearFocusOnClickBehavior/>
|
|
|
- </i:Interaction.Behaviors>
|
|
|
- <DockPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Background="{StaticResource MainColor}">
|
|
|
- <Image DockPanel.Dock="Left" HorizontalAlignment="Left" VerticalAlignment="Top"
|
|
|
+ <Grid>
|
|
|
+ <Grid Name="mainGrid" Margin="5" Focusable="True" >
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="45" />
|
|
|
+ <ColumnDefinition Width="1*" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="30" />
|
|
|
+ <RowDefinition Height="40" />
|
|
|
+ <RowDefinition Height="1*" />
|
|
|
+ <RowDefinition Height="30" />
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <i:Interaction.Behaviors>
|
|
|
+ <behaviours:ClearFocusOnClickBehavior/>
|
|
|
+ </i:Interaction.Behaviors>
|
|
|
+ <DockPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Background="{StaticResource MainColor}">
|
|
|
+ <Image DockPanel.Dock="Left" HorizontalAlignment="Left" VerticalAlignment="Top"
|
|
|
Source="/Images/PixiEditorLogo.png" Width="20" Height="20" Margin="5,5,0,0" />
|
|
|
- <cmds:Menu WindowChrome.IsHitTestVisibleInChrome="True" Margin="10, 4, 0, 0" DockPanel.Dock="Left"
|
|
|
+ <cmds:Menu WindowChrome.IsHitTestVisibleInChrome="True" Margin="10, 4, 0, 0" DockPanel.Dock="Left"
|
|
|
HorizontalAlignment="Left" VerticalAlignment="Top" Background="Transparent" IsMainMenu="True">
|
|
|
- <Menu.Resources>
|
|
|
- <Style TargetType="{x:Type MenuItem}" BasedOn="{StaticResource menuItemStyle}" />
|
|
|
- </Menu.Resources>
|
|
|
- <MenuItem Header="_File">
|
|
|
- <MenuItem Header="_New" cmds:Menu.Command="PixiEditor.File.New" />
|
|
|
- <MenuItem Header="_Open" cmds:Menu.Command="PixiEditor.File.Open" />
|
|
|
- <MenuItem Header="_Recent" ItemsSource="{Binding FileSubViewModel.RecentlyOpened}" x:Name="recentItemMenu" IsEnabled="{Binding FileSubViewModel.HasRecent}">
|
|
|
- <MenuItem.ItemContainerStyle>
|
|
|
- <Style TargetType="MenuItem" BasedOn="{StaticResource PixiEditorDockThemeMenuItemStyle}">
|
|
|
- <Setter Property="Command" Value="{cmds:Command PixiEditor.File.Open, UseProvided=True}"/>
|
|
|
- <Setter Property="CommandParameter" Value="{Binding FilePath}"/>
|
|
|
- </Style>
|
|
|
- </MenuItem.ItemContainerStyle>
|
|
|
- <MenuItem.ItemTemplate>
|
|
|
- <DataTemplate DataType="{x:Type dataHolders:RecentlyOpenedDocument}">
|
|
|
- <TextBlock Text="{Binding FilePath}"/>
|
|
|
- </DataTemplate>
|
|
|
- </MenuItem.ItemTemplate>
|
|
|
+ <Menu.Resources>
|
|
|
+ <Style TargetType="{x:Type MenuItem}" BasedOn="{StaticResource menuItemStyle}" />
|
|
|
+ </Menu.Resources>
|
|
|
+ <MenuItem Header="_File">
|
|
|
+ <MenuItem Header="_New" cmds:Menu.Command="PixiEditor.File.New" />
|
|
|
+ <MenuItem Header="_Open" cmds:Menu.Command="PixiEditor.File.Open" />
|
|
|
+ <MenuItem Header="_Recent" ItemsSource="{Binding FileSubViewModel.RecentlyOpened}" x:Name="recentItemMenu" IsEnabled="{Binding FileSubViewModel.HasRecent}">
|
|
|
+ <MenuItem.ItemContainerStyle>
|
|
|
+ <Style TargetType="MenuItem" BasedOn="{StaticResource PixiEditorDockThemeMenuItemStyle}">
|
|
|
+ <Setter Property="Command" Value="{cmds:Command PixiEditor.File.Open, UseProvided=True}"/>
|
|
|
+ <Setter Property="CommandParameter" Value="{Binding FilePath}"/>
|
|
|
+ </Style>
|
|
|
+ </MenuItem.ItemContainerStyle>
|
|
|
+ <MenuItem.ItemTemplate>
|
|
|
+ <DataTemplate DataType="{x:Type dataHolders:RecentlyOpenedDocument}">
|
|
|
+ <TextBlock Text="{Binding FilePath}"/>
|
|
|
+ </DataTemplate>
|
|
|
+ </MenuItem.ItemTemplate>
|
|
|
+ </MenuItem>
|
|
|
+ <MenuItem Header="_Save" cmds:Menu.Command="PixiEditor.File.Save" />
|
|
|
+ <MenuItem Header="_Save As..." cmds:Menu.Command="PixiEditor.File.SaveAsNew" />
|
|
|
+ <MenuItem Header="_Export" cmds:Menu.Command="PixiEditor.File.Export" />
|
|
|
+ <Separator />
|
|
|
+ <MenuItem Header="_Exit" Command="{x:Static SystemCommands.CloseWindowCommand}" />
|
|
|
</MenuItem>
|
|
|
- <MenuItem Header="_Save" cmds:Menu.Command="PixiEditor.File.Save" />
|
|
|
- <MenuItem Header="_Save As..." cmds:Menu.Command="PixiEditor.File.SaveAsNew" />
|
|
|
- <MenuItem Header="_Export" cmds:Menu.Command="PixiEditor.File.Export" />
|
|
|
- <Separator />
|
|
|
- <MenuItem Header="_Exit" Command="{x:Static SystemCommands.CloseWindowCommand}" />
|
|
|
- </MenuItem>
|
|
|
- <MenuItem Header="_Edit">
|
|
|
- <MenuItem Header="_Undo" cmds:Menu.Command="PixiEditor.Undo.Undo" />
|
|
|
- <MenuItem Header="_Redo" cmds:Menu.Command="PixiEditor.Undo.Redo" />
|
|
|
- <Separator />
|
|
|
- <MenuItem Header="_Cut" cmds:Menu.Command="PixiEditor.Clipboard.Cut" />
|
|
|
- <MenuItem Header="_Copy" cmds:Menu.Command="PixiEditor.Clipboard.Copy" />
|
|
|
- <MenuItem Header="_Paste" cmds:Menu.Command="PixiEditor.Clipboard.Paste" />
|
|
|
- <MenuItem Header="_Duplicate" cmds:Menu.Command="PixiEditor.Clipboard.Duplicate" />
|
|
|
- <Separator />
|
|
|
- <MenuItem Header="_Delete Selected" cmds:Menu.Command="PixiEditor.Document.DeletePixels" />
|
|
|
- <Separator />
|
|
|
- <MenuItem Header="_Settings" cmds:Menu.Command="PixiEditor.Settings.Open" />
|
|
|
- </MenuItem>
|
|
|
- <MenuItem Header="_Select">
|
|
|
- <MenuItem Header="_Select All" cmds:Menu.Command="PixiEditor.Selection.SelectAll" />
|
|
|
- <MenuItem Header="_Deselect" cmds:Menu.Command="PixiEditor.Selection.Clear" />
|
|
|
- </MenuItem>
|
|
|
- <MenuItem Header="_Image">
|
|
|
- <MenuItem Header="Resize _Image..." cmds:Menu.Command="PixiEditor.Document.ResizeDocument" />
|
|
|
- <MenuItem Header="_Resize Canvas..." cmds:Menu.Command="PixiEditor.Document.ResizeCanvas" />
|
|
|
- <MenuItem Header="_Clip Canvas" cmds:Menu.Command="PixiEditor.Document.ClipCanvas" />
|
|
|
- <Separator/>
|
|
|
- <MenuItem Header="_Center Content" cmds:Menu.Command="PixiEditor.Document.CenterContent" />
|
|
|
- <!--<Separator/>
|
|
|
+ <MenuItem Header="_Edit">
|
|
|
+ <MenuItem Header="_Undo" cmds:Menu.Command="PixiEditor.Undo.Undo" />
|
|
|
+ <MenuItem Header="_Redo" cmds:Menu.Command="PixiEditor.Undo.Redo" />
|
|
|
+ <Separator />
|
|
|
+ <MenuItem Header="_Cut" cmds:Menu.Command="PixiEditor.Clipboard.Cut" />
|
|
|
+ <MenuItem Header="_Copy" cmds:Menu.Command="PixiEditor.Clipboard.Copy" />
|
|
|
+ <MenuItem Header="_Paste" cmds:Menu.Command="PixiEditor.Clipboard.Paste" />
|
|
|
+ <MenuItem Header="_Duplicate" cmds:Menu.Command="PixiEditor.Clipboard.Duplicate" />
|
|
|
+ <Separator />
|
|
|
+ <MenuItem Header="_Delete Selected" cmds:Menu.Command="PixiEditor.Document.DeletePixels" />
|
|
|
+ <Separator />
|
|
|
+ <MenuItem Header="_Settings" cmds:Menu.Command="PixiEditor.Settings.Open" />
|
|
|
+ </MenuItem>
|
|
|
+ <MenuItem Header="_Select">
|
|
|
+ <MenuItem Header="_Select All" cmds:Menu.Command="PixiEditor.Selection.SelectAll" />
|
|
|
+ <MenuItem Header="_Deselect" cmds:Menu.Command="PixiEditor.Selection.Clear" />
|
|
|
+ </MenuItem>
|
|
|
+ <MenuItem Header="_Image">
|
|
|
+ <MenuItem Header="Resize _Image..." cmds:Menu.Command="PixiEditor.Document.ResizeDocument" />
|
|
|
+ <MenuItem Header="_Resize Canvas..." cmds:Menu.Command="PixiEditor.Document.ResizeCanvas" />
|
|
|
+ <MenuItem Header="_Clip Canvas" cmds:Menu.Command="PixiEditor.Document.ClipCanvas" />
|
|
|
+ <Separator/>
|
|
|
+ <MenuItem Header="_Center Content" cmds:Menu.Command="PixiEditor.Document.CenterContent" />
|
|
|
+ <!--<Separator/>
|
|
|
<MenuItem Header="_Rotate to right 90º" Command="{Binding DocumentSubViewModel.RotateToRightCommand}">
|
|
|
<MenuItem.CommandParameter>
|
|
|
<sys:Double>90</sys:Double>
|
|
@@ -143,132 +144,132 @@
|
|
|
<MenuItem Header="_Flip Horizontal" Command="{Binding DocumentSubViewModel.FlipCommand}" CommandParameter="Horizontal"/>
|
|
|
<MenuItem Header="_Flip Vertical" Command="{Binding DocumentSubViewModel.FlipCommand}" CommandParameter="Vertical"/>
|
|
|
-->
|
|
|
- </MenuItem>
|
|
|
- <MenuItem Header="_View">
|
|
|
- <MenuItem Header="_Show Grid Lines" IsChecked="{Binding ViewportSubViewModel.GridLinesEnabled, Mode=TwoWay}"
|
|
|
+ </MenuItem>
|
|
|
+ <MenuItem Header="_View">
|
|
|
+ <MenuItem Header="_Show Grid Lines" IsChecked="{Binding ViewportSubViewModel.GridLinesEnabled, Mode=TwoWay}"
|
|
|
IsCheckable="True" InputGestureText="{cmds:ShortcutBinding PixiEditor.View.ToggleGrid}"/>
|
|
|
- <MenuItem Header="Open _Startup Window" ToolTip="Hello there!" cmds:Menu.Command="PixiEditor.Window.OpenStartupWindow"/>
|
|
|
- <MenuItem Header="Open _Navigation Window" cmds:Menu.Command="PixiEditor.Window.OpenNavigationWindow"/>
|
|
|
- </MenuItem>
|
|
|
- <MenuItem Header="_Help">
|
|
|
- <MenuItem Header="_Documentation" cmds:Menu.Command="PixiEditor.Links.OpenDocumentation" />
|
|
|
- <MenuItem Header="_Website" cmds:Menu.Command="PixiEditor.Links.OpenWebsite" />
|
|
|
- <MenuItem Header="_Repository" cmds:Menu.Command="PixiEditor.Links.OpenRepository" />
|
|
|
- <Separator/>
|
|
|
- <MenuItem Header="_License" cmds:Menu.Command="PixiEditor.Links.OpenLicense" />
|
|
|
- <MenuItem Header="_Third Party Licenses" cmds:Menu.Command="PixiEditor.Links.OpenOtherLicenses" />
|
|
|
- </MenuItem>
|
|
|
- <MenuItem Header="_Debug" Visibility="{Binding DebugSubViewModel.UseDebug, Converter={StaticResource BoolToVisibilityConverter}}">
|
|
|
- <MenuItem Header="Open _Local App Data" cmds:Menu.Command="PixiEditor.Debug.OpenLocalAppDataDirectory" />
|
|
|
- <MenuItem Header="Open _Roaming App Data" cmds:Menu.Command="PixiEditor.Debug.OpenRoamingAppDataDirectory" />
|
|
|
- <MenuItem Header="Open _Temp App Data" cmds:Menu.Command="PixiEditor.Debug.OpenTempDirectory" />
|
|
|
- <MenuItem Header="Open _Install Location" cmds:Menu.Command="PixiEditor.Debug.OpenInstallDirectory" />
|
|
|
- <Separator/>
|
|
|
- <MenuItem Header="_Crash" cmds:Menu.Command="PixiEditor.Debug.Crash" />
|
|
|
- <MenuItem Header="Delete">
|
|
|
- <MenuItem Header="User Preferences (Roaming)" cmds:Menu.Command="PixiEditor.Debug.DeleteUserPreferences" />
|
|
|
- <MenuItem Header="Editor Data (Local)" cmds:Menu.Command="PixiEditor.Debug.DeleteEditorData" />
|
|
|
+ <MenuItem Header="Open _Startup Window" ToolTip="Hello there!" cmds:Menu.Command="PixiEditor.Window.OpenStartupWindow"/>
|
|
|
+ <MenuItem Header="Open _Navigation Window" cmds:Menu.Command="PixiEditor.Window.OpenNavigationWindow"/>
|
|
|
</MenuItem>
|
|
|
- </MenuItem>
|
|
|
- </cmds:Menu>
|
|
|
- <StackPanel DockPanel.Dock="Right" VerticalAlignment="Top" Orientation="Horizontal" Margin="0,-5,-5,0"
|
|
|
+ <MenuItem Header="_Help">
|
|
|
+ <MenuItem Header="_Documentation" cmds:Menu.Command="PixiEditor.Links.OpenDocumentation" />
|
|
|
+ <MenuItem Header="_Website" cmds:Menu.Command="PixiEditor.Links.OpenWebsite" />
|
|
|
+ <MenuItem Header="_Repository" cmds:Menu.Command="PixiEditor.Links.OpenRepository" />
|
|
|
+ <Separator/>
|
|
|
+ <MenuItem Header="_License" cmds:Menu.Command="PixiEditor.Links.OpenLicense" />
|
|
|
+ <MenuItem Header="_Third Party Licenses" cmds:Menu.Command="PixiEditor.Links.OpenOtherLicenses" />
|
|
|
+ </MenuItem>
|
|
|
+ <MenuItem Header="_Debug" Visibility="{Binding DebugSubViewModel.UseDebug, Converter={StaticResource BoolToVisibilityConverter}}">
|
|
|
+ <MenuItem Header="Open _Local App Data" cmds:Menu.Command="PixiEditor.Debug.OpenLocalAppDataDirectory" />
|
|
|
+ <MenuItem Header="Open _Roaming App Data" cmds:Menu.Command="PixiEditor.Debug.OpenRoamingAppDataDirectory" />
|
|
|
+ <MenuItem Header="Open _Temp App Data" cmds:Menu.Command="PixiEditor.Debug.OpenTempDirectory" />
|
|
|
+ <MenuItem Header="Open _Install Location" cmds:Menu.Command="PixiEditor.Debug.OpenInstallDirectory" />
|
|
|
+ <Separator/>
|
|
|
+ <MenuItem Header="_Crash" cmds:Menu.Command="PixiEditor.Debug.Crash" />
|
|
|
+ <MenuItem Header="Delete">
|
|
|
+ <MenuItem Header="User Preferences (Roaming)" cmds:Menu.Command="PixiEditor.Debug.DeleteUserPreferences" />
|
|
|
+ <MenuItem Header="Editor Data (Local)" cmds:Menu.Command="PixiEditor.Debug.DeleteEditorData" />
|
|
|
+ </MenuItem>
|
|
|
+ </MenuItem>
|
|
|
+ </cmds:Menu>
|
|
|
+ <StackPanel DockPanel.Dock="Right" VerticalAlignment="Top" Orientation="Horizontal" Margin="0,-5,-5,0"
|
|
|
HorizontalAlignment="Right" WindowChrome.IsHitTestVisibleInChrome="True">
|
|
|
- <Button Style="{StaticResource MinimizeButtonStyle}" WindowChrome.IsHitTestVisibleInChrome="True"
|
|
|
+ <Button Style="{StaticResource MinimizeButtonStyle}" WindowChrome.IsHitTestVisibleInChrome="True"
|
|
|
ToolTip="Minimize"
|
|
|
Command="{x:Static SystemCommands.MinimizeWindowCommand}" />
|
|
|
- <Button x:Name="RestoreButton" Visibility="Visible" Style="{StaticResource RestoreButtonStyle}"
|
|
|
+ <Button x:Name="RestoreButton" Visibility="Visible" Style="{StaticResource RestoreButtonStyle}"
|
|
|
Command="{x:Static SystemCommands.RestoreWindowCommand}"
|
|
|
WindowChrome.IsHitTestVisibleInChrome="True" ToolTip="Restore" />
|
|
|
- <Button x:Name="MaximizeButton" Visibility="Collapsed" Style="{StaticResource MaximizeButtonStyle}"
|
|
|
+ <Button x:Name="MaximizeButton" Visibility="Collapsed" Style="{StaticResource MaximizeButtonStyle}"
|
|
|
Command="{x:Static SystemCommands.MaximizeWindowCommand}"
|
|
|
WindowChrome.IsHitTestVisibleInChrome="True" ToolTip="Maximize" />
|
|
|
- <Button Style="{StaticResource CloseButtonStyle}" WindowChrome.IsHitTestVisibleInChrome="True"
|
|
|
+ <Button Style="{StaticResource CloseButtonStyle}" WindowChrome.IsHitTestVisibleInChrome="True"
|
|
|
ToolTip="Close"
|
|
|
Command="{x:Static SystemCommands.CloseWindowCommand}" />
|
|
|
- </StackPanel>
|
|
|
- </DockPanel>
|
|
|
- <StackPanel Background="{StaticResource MainColor}" Orientation="Horizontal" Grid.ColumnSpan="3" Grid.Column="0"
|
|
|
+ </StackPanel>
|
|
|
+ </DockPanel>
|
|
|
+ <StackPanel Background="{StaticResource MainColor}" Orientation="Horizontal" Grid.ColumnSpan="3" Grid.Column="0"
|
|
|
Grid.Row="1">
|
|
|
- <Button Margin="1,0,0,0" Command="{cmds:Command PixiEditor.Undo.Undo}" ToolTip="Undo"
|
|
|
+ <Button Margin="1,0,0,0" Command="{cmds:Command PixiEditor.Undo.Undo}" ToolTip="Undo"
|
|
|
Style="{StaticResource ToolSettingsGlyphButton}" Content=""/>
|
|
|
- <Button Command="{cmds:Command PixiEditor.Undo.Redo}" ToolTip="Redo"
|
|
|
+ <Button Command="{cmds:Command PixiEditor.Undo.Redo}" ToolTip="Redo"
|
|
|
Style="{StaticResource ToolSettingsGlyphButton}" Content=""/>
|
|
|
- <ToggleButton Width="30" BorderThickness="0"
|
|
|
+ <ToggleButton Width="30" BorderThickness="0"
|
|
|
ToolTip="Pen Mode" Focusable="False"
|
|
|
IsChecked="{Binding StylusSubViewModel.IsPenModeEnabled}">
|
|
|
- <ToggleButton.Style>
|
|
|
- <Style TargetType="ToggleButton">
|
|
|
- <Setter Property="Template">
|
|
|
- <Setter.Value>
|
|
|
- <ControlTemplate TargetType="ToggleButton">
|
|
|
- <Border BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
+ <ToggleButton.Style>
|
|
|
+ <Style TargetType="ToggleButton">
|
|
|
+ <Setter Property="Template">
|
|
|
+ <Setter.Value>
|
|
|
+ <ControlTemplate TargetType="ToggleButton">
|
|
|
+ <Border BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
Background="{TemplateBinding Background}" Focusable="False">
|
|
|
- <ContentPresenter HorizontalAlignment="Center"
|
|
|
+ <ContentPresenter HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center" Focusable="False"/>
|
|
|
- </Border>
|
|
|
- </ControlTemplate>
|
|
|
- </Setter.Value>
|
|
|
- </Setter>
|
|
|
- <Style.Triggers>
|
|
|
- <Trigger Property="IsChecked" Value="False">
|
|
|
- <Setter Property="Background" Value="Transparent"/>
|
|
|
- </Trigger>
|
|
|
- <Trigger Property="IsMouseOver" Value="True">
|
|
|
- <Setter Property="Background" Value="#404040"/>
|
|
|
- </Trigger>
|
|
|
- <Trigger Property="IsChecked" Value="True">
|
|
|
- <Setter Property="Background" Value="#707070"/>
|
|
|
- </Trigger>
|
|
|
- </Style.Triggers>
|
|
|
- </Style>
|
|
|
- </ToggleButton.Style>
|
|
|
- <Image Height="20" Source="../Images/penMode.png"/>
|
|
|
- </ToggleButton>
|
|
|
- <Grid Margin="5,5,10,5" Background="{StaticResource BrighterAccentColor}" Width="5"/>
|
|
|
- <Label Style="{StaticResource BaseLabel}" FontSize="12"
|
|
|
+ </Border>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ <Style.Triggers>
|
|
|
+ <Trigger Property="IsChecked" Value="False">
|
|
|
+ <Setter Property="Background" Value="Transparent"/>
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="IsMouseOver" Value="True">
|
|
|
+ <Setter Property="Background" Value="#404040"/>
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="IsChecked" Value="True">
|
|
|
+ <Setter Property="Background" Value="#707070"/>
|
|
|
+ </Trigger>
|
|
|
+ </Style.Triggers>
|
|
|
+ </Style>
|
|
|
+ </ToggleButton.Style>
|
|
|
+ <Image Height="20" Source="../Images/penMode.png"/>
|
|
|
+ </ToggleButton>
|
|
|
+ <Grid Margin="5,5,10,5" Background="{StaticResource BrighterAccentColor}" Width="5"/>
|
|
|
+ <Label Style="{StaticResource BaseLabel}" FontSize="12"
|
|
|
VerticalAlignment="Center" Content="{Binding ToolsSubViewModel.ActiveTool.DisplayName}"
|
|
|
ToolTip="{Binding ToolsSubViewModel.ActiveTool.ActionDisplay}"/>
|
|
|
- <ItemsControl ItemsSource="{Binding ToolsSubViewModel.ActiveTool.Toolbar.Settings}">
|
|
|
- <ItemsControl.ItemsPanel>
|
|
|
- <ItemsPanelTemplate>
|
|
|
- <StackPanel Orientation="Horizontal" Margin="10, 0, 0, 0" />
|
|
|
- </ItemsPanelTemplate>
|
|
|
- </ItemsControl.ItemsPanel>
|
|
|
- <ItemsControl.ItemTemplate>
|
|
|
- <DataTemplate>
|
|
|
- <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="10,0,10,0">
|
|
|
- <Label
|
|
|
+ <ItemsControl ItemsSource="{Binding ToolsSubViewModel.ActiveTool.Toolbar.Settings}">
|
|
|
+ <ItemsControl.ItemsPanel>
|
|
|
+ <ItemsPanelTemplate>
|
|
|
+ <StackPanel Orientation="Horizontal" Margin="10, 0, 0, 0" />
|
|
|
+ </ItemsPanelTemplate>
|
|
|
+ </ItemsControl.ItemsPanel>
|
|
|
+ <ItemsControl.ItemTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="10,0,10,0">
|
|
|
+ <Label
|
|
|
Visibility="{Binding HasLabel, Converter={StaticResource BoolToVisibilityConverter}}"
|
|
|
Foreground="White" Content="{Binding Label}" />
|
|
|
- <ContentControl Content="{Binding SettingControl}" />
|
|
|
- </StackPanel>
|
|
|
- </DataTemplate>
|
|
|
- </ItemsControl.ItemTemplate>
|
|
|
- </ItemsControl>
|
|
|
- </StackPanel>
|
|
|
- <Grid Grid.Column="1" Grid.Row="2" Background="#303030" >
|
|
|
- <Grid AllowDrop="True" Drop="MainWindow_Drop">
|
|
|
- <DockingManager ActiveContent="{Binding BitmapManager.ActiveWindow, Mode=TwoWay}"
|
|
|
+ <ContentControl Content="{Binding SettingControl}" />
|
|
|
+ </StackPanel>
|
|
|
+ </DataTemplate>
|
|
|
+ </ItemsControl.ItemTemplate>
|
|
|
+ </ItemsControl>
|
|
|
+ </StackPanel>
|
|
|
+ <Grid Grid.Column="1" Grid.Row="2" Background="#303030" >
|
|
|
+ <Grid AllowDrop="True" Drop="MainWindow_Drop">
|
|
|
+ <DockingManager ActiveContent="{Binding BitmapManager.ActiveWindow, Mode=TwoWay}"
|
|
|
DocumentsSource="{Binding BitmapManager.Documents}">
|
|
|
- <DockingManager.Theme>
|
|
|
- <avalonDockTheme:PixiEditorDockTheme />
|
|
|
- </DockingManager.Theme>
|
|
|
+ <DockingManager.Theme>
|
|
|
+ <avalonDockTheme:PixiEditorDockTheme />
|
|
|
+ </DockingManager.Theme>
|
|
|
|
|
|
- <avalondock:DockingManager.LayoutItemContainerStyleSelector>
|
|
|
- <ui:PanelsStyleSelector>
|
|
|
- <ui:PanelsStyleSelector.DocumentTabStyle>
|
|
|
- <Style TargetType="{x:Type avalondock:LayoutItem}">
|
|
|
- <Setter Property="Title" Value="{Binding Model.Name}" />
|
|
|
- <Setter Property="CloseCommand" Value="{Binding Model.RequestCloseDocumentCommand}" />
|
|
|
- </Style>
|
|
|
- </ui:PanelsStyleSelector.DocumentTabStyle>
|
|
|
- </ui:PanelsStyleSelector>
|
|
|
- </avalondock:DockingManager.LayoutItemContainerStyleSelector>
|
|
|
- <DockingManager.LayoutItemTemplateSelector>
|
|
|
- <ui:DocumentsTemplateSelector>
|
|
|
- <ui:DocumentsTemplateSelector.DocumentsViewTemplate>
|
|
|
- <DataTemplate DataType="{x:Type dataHolders:Document}">
|
|
|
- <usercontrols:DrawingViewPort
|
|
|
+ <avalondock:DockingManager.LayoutItemContainerStyleSelector>
|
|
|
+ <ui:PanelsStyleSelector>
|
|
|
+ <ui:PanelsStyleSelector.DocumentTabStyle>
|
|
|
+ <Style TargetType="{x:Type avalondock:LayoutItem}">
|
|
|
+ <Setter Property="Title" Value="{Binding Model.Name}" />
|
|
|
+ <Setter Property="CloseCommand" Value="{Binding Model.RequestCloseDocumentCommand}" />
|
|
|
+ </Style>
|
|
|
+ </ui:PanelsStyleSelector.DocumentTabStyle>
|
|
|
+ </ui:PanelsStyleSelector>
|
|
|
+ </avalondock:DockingManager.LayoutItemContainerStyleSelector>
|
|
|
+ <DockingManager.LayoutItemTemplateSelector>
|
|
|
+ <ui:DocumentsTemplateSelector>
|
|
|
+ <ui:DocumentsTemplateSelector.DocumentsViewTemplate>
|
|
|
+ <DataTemplate DataType="{x:Type dataHolders:Document}">
|
|
|
+ <usercontrols:DrawingViewPort
|
|
|
CenterViewportTrigger="{Binding CenterViewportTrigger}"
|
|
|
ZoomViewportTrigger="{Binding ZoomViewportTrigger}"
|
|
|
GridLinesVisible="{Binding XamlAccesibleViewModel.ViewportSubViewModel.GridLinesEnabled}"
|
|
@@ -287,148 +288,150 @@
|
|
|
IsUsingZoomTool="{Binding XamlAccesibleViewModel.ToolsSubViewModel.ActiveTool, Converter={converters:IsSpecifiedTypeConverter SpecifiedType={x:Type tools:ZoomTool}}}"
|
|
|
IsUsingMoveViewportTool="{Binding XamlAccesibleViewModel.ToolsSubViewModel.ActiveTool, Converter={converters:IsSpecifiedTypeConverter SpecifiedType={x:Type tools:MoveViewportTool}}}"
|
|
|
Stylus.IsTapFeedbackEnabled="False" Stylus.IsTouchFeedbackEnabled="False">
|
|
|
- <i:Interaction.Triggers>
|
|
|
- <i:EventTrigger EventName="PreviewMouseDown">
|
|
|
- <i:InvokeCommandAction Command="{Binding SetAsActiveOnClickCommand}"/>
|
|
|
- </i:EventTrigger>
|
|
|
- </i:Interaction.Triggers>
|
|
|
- <usercontrols:DrawingViewPort.ContextMenu>
|
|
|
- <cmds:ContextMenu>
|
|
|
- <MenuItem Header="_Select All" cmds:ContextMenu.Command="PixiEditor.Selection.SelectAll" />
|
|
|
- <MenuItem Header="_Deselect" cmds:ContextMenu.Command="PixiEditor.Selection.Clear" />
|
|
|
- <Separator/>
|
|
|
- <MenuItem Header="_Cut" cmds:ContextMenu.Command="PixiEditor.Clipboard.Cut" />
|
|
|
- <MenuItem Header="_Copy" cmds:ContextMenu.Command="PixiEditor.Clipboard.Copy" />
|
|
|
- <MenuItem Header="_Paste" cmds:ContextMenu.Command="PixiEditor.Clipboard.Paste" />
|
|
|
- </cmds:ContextMenu>
|
|
|
- </usercontrols:DrawingViewPort.ContextMenu>
|
|
|
- </usercontrols:DrawingViewPort>
|
|
|
- </DataTemplate>
|
|
|
- </ui:DocumentsTemplateSelector.DocumentsViewTemplate>
|
|
|
- </ui:DocumentsTemplateSelector>
|
|
|
- </DockingManager.LayoutItemTemplateSelector>
|
|
|
- <avalondock:LayoutRoot x:Name="LayoutRoot">
|
|
|
- <LayoutPanel Orientation="Horizontal">
|
|
|
- <LayoutDocumentPane/>
|
|
|
- <LayoutAnchorablePaneGroup Orientation="Vertical" DockWidth="290">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="PreviewMouseDown">
|
|
|
+ <i:InvokeCommandAction Command="{Binding SetAsActiveOnClickCommand}"/>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ <usercontrols:DrawingViewPort.ContextMenu>
|
|
|
+ <cmds:ContextMenu>
|
|
|
+ <MenuItem Header="_Select All" cmds:ContextMenu.Command="PixiEditor.Selection.SelectAll" />
|
|
|
+ <MenuItem Header="_Deselect" cmds:ContextMenu.Command="PixiEditor.Selection.Clear" />
|
|
|
+ <Separator/>
|
|
|
+ <MenuItem Header="_Cut" cmds:ContextMenu.Command="PixiEditor.Clipboard.Cut" />
|
|
|
+ <MenuItem Header="_Copy" cmds:ContextMenu.Command="PixiEditor.Clipboard.Copy" />
|
|
|
+ <MenuItem Header="_Paste" cmds:ContextMenu.Command="PixiEditor.Clipboard.Paste" />
|
|
|
+ </cmds:ContextMenu>
|
|
|
+ </usercontrols:DrawingViewPort.ContextMenu>
|
|
|
+ </usercontrols:DrawingViewPort>
|
|
|
+ </DataTemplate>
|
|
|
+ </ui:DocumentsTemplateSelector.DocumentsViewTemplate>
|
|
|
+ </ui:DocumentsTemplateSelector>
|
|
|
+ </DockingManager.LayoutItemTemplateSelector>
|
|
|
+ <avalondock:LayoutRoot x:Name="LayoutRoot">
|
|
|
+ <LayoutPanel Orientation="Horizontal">
|
|
|
+ <LayoutDocumentPane/>
|
|
|
+ <LayoutAnchorablePaneGroup Orientation="Vertical" DockWidth="290">
|
|
|
|
|
|
- <LayoutAnchorablePane x:Name="colorPane">
|
|
|
- <LayoutAnchorable ContentId="colorPicker" Title="Color Picker" CanHide="False"
|
|
|
+ <LayoutAnchorablePane x:Name="colorPane">
|
|
|
+ <LayoutAnchorable ContentId="colorPicker" Title="Color Picker" CanHide="False"
|
|
|
CanClose="False" CanAutoHide="False" x:Name="colorPickerPanel"
|
|
|
CanDockAsTabbedDocument="False" CanFloat="True">
|
|
|
- <usercontrols:SmallColorPicker SelectedColor="{Binding ColorsSubViewModel.PrimaryColor, Mode=TwoWay, Converter={StaticResource SKColorToMediaColorConverter}}"
|
|
|
+ <usercontrols:SmallColorPicker SelectedColor="{Binding ColorsSubViewModel.PrimaryColor, Mode=TwoWay, Converter={StaticResource SKColorToMediaColorConverter}}"
|
|
|
SecondaryColor="{Binding ColorsSubViewModel.SecondaryColor, Mode=TwoWay, Converter={StaticResource SKColorToMediaColorConverter}}"
|
|
|
Style="{StaticResource DefaultColorPickerStyle}" x:Name="mainColorPicker">
|
|
|
- <i:Interaction.Behaviors>
|
|
|
- <behaviours:GlobalShortcutFocusBehavior/>
|
|
|
- </i:Interaction.Behaviors>
|
|
|
- </usercontrols:SmallColorPicker>
|
|
|
- </LayoutAnchorable>
|
|
|
- <LayoutAnchorable ContentId="colorSliders" Title="Color Sliders" CanHide="False"
|
|
|
+ <i:Interaction.Behaviors>
|
|
|
+ <behaviours:GlobalShortcutFocusBehavior/>
|
|
|
+ </i:Interaction.Behaviors>
|
|
|
+ </usercontrols:SmallColorPicker>
|
|
|
+ </LayoutAnchorable>
|
|
|
+ <LayoutAnchorable ContentId="colorSliders" Title="Color Sliders" CanHide="False"
|
|
|
CanClose="False" CanAutoHide="False" x:Name="colorSlidersPanel"
|
|
|
CanDockAsTabbedDocument="False" CanFloat="True">
|
|
|
- <colorpicker:ColorSliders Style="{StaticResource DefaultColorPickerStyle}"
|
|
|
+ <colorpicker:ColorSliders Style="{StaticResource DefaultColorPickerStyle}"
|
|
|
ColorState="{Binding ElementName=mainColorPicker, Path=ColorState, Delay=10, Mode=TwoWay}">
|
|
|
- <i:Interaction.Behaviors>
|
|
|
- <behaviours:GlobalShortcutFocusBehavior/>
|
|
|
- </i:Interaction.Behaviors>
|
|
|
- </colorpicker:ColorSliders>
|
|
|
- </LayoutAnchorable>
|
|
|
- <avalondock:LayoutAnchorable ContentId="swatches" Title="Swatches" CanHide="False"
|
|
|
+ <i:Interaction.Behaviors>
|
|
|
+ <behaviours:GlobalShortcutFocusBehavior/>
|
|
|
+ </i:Interaction.Behaviors>
|
|
|
+ </colorpicker:ColorSliders>
|
|
|
+ </LayoutAnchorable>
|
|
|
+ <avalondock:LayoutAnchorable ContentId="swatches" Title="Swatches" CanHide="False"
|
|
|
CanClose="False" CanAutoHide="False"
|
|
|
CanDockAsTabbedDocument="False" CanFloat="True">
|
|
|
- <usercontrols:SwatchesView
|
|
|
+ <usercontrols:SwatchesView
|
|
|
SelectSwatchCommand="{cmds:Command PixiEditor.Colors.SelectColor, UseProvided=True}" RemoveSwatchCommand="{cmds:Command PixiEditor.Colors.RemoveSwatch, UseProvided=True}"
|
|
|
Swatches="{Binding BitmapManager.ActiveDocument.Swatches}"/>
|
|
|
- </avalondock:LayoutAnchorable>
|
|
|
- </LayoutAnchorablePane>
|
|
|
- <LayoutAnchorablePane>
|
|
|
- <LayoutAnchorable ContentId="layers" Title="Layers" CanHide="False"
|
|
|
+ </avalondock:LayoutAnchorable>
|
|
|
+ </LayoutAnchorablePane>
|
|
|
+ <LayoutAnchorablePane>
|
|
|
+ <LayoutAnchorable ContentId="layers" Title="Layers" CanHide="False"
|
|
|
CanClose="False" CanAutoHide="False"
|
|
|
CanDockAsTabbedDocument="True" CanFloat="True">
|
|
|
- <layerUserControls:LayersManager
|
|
|
+ <layerUserControls:LayersManager
|
|
|
LayerCommandsViewModel="{Binding LayersSubViewModel}"
|
|
|
OpacityInputEnabled="{Binding BitmapManager.ActiveDocument,
|
|
|
Converter={converters:NotNullToBoolConverter}}">
|
|
|
- <layerUserControls:LayersManager.LayerTreeRoot>
|
|
|
- <MultiBinding Converter="{converters:LayersToStructuredLayersConverter}">
|
|
|
- <Binding Path="BitmapManager.ActiveDocument.Layers" />
|
|
|
- <Binding Path="BitmapManager.ActiveDocument.LayerStructure"/>
|
|
|
- </MultiBinding>
|
|
|
- </layerUserControls:LayersManager.LayerTreeRoot>
|
|
|
- </layerUserControls:LayersManager>
|
|
|
- </LayoutAnchorable>
|
|
|
- <LayoutAnchorable x:Name="rawLayerAnchorable" ContentId="rawLayer" Title="Raw layers">
|
|
|
- <layerUserControls:RawLayersViewer Layers="{Binding BitmapManager.ActiveDocument.Layers}"
|
|
|
+ <layerUserControls:LayersManager.LayerTreeRoot>
|
|
|
+ <MultiBinding Converter="{converters:LayersToStructuredLayersConverter}">
|
|
|
+ <Binding Path="BitmapManager.ActiveDocument.Layers" />
|
|
|
+ <Binding Path="BitmapManager.ActiveDocument.LayerStructure"/>
|
|
|
+ </MultiBinding>
|
|
|
+ </layerUserControls:LayersManager.LayerTreeRoot>
|
|
|
+ </layerUserControls:LayersManager>
|
|
|
+ </LayoutAnchorable>
|
|
|
+ <LayoutAnchorable x:Name="rawLayerAnchorable" ContentId="rawLayer" Title="Raw layers">
|
|
|
+ <layerUserControls:RawLayersViewer Layers="{Binding BitmapManager.ActiveDocument.Layers}"
|
|
|
Structure="{Binding BitmapManager.ActiveDocument.LayerStructure}"/>
|
|
|
- </LayoutAnchorable>
|
|
|
- </LayoutAnchorablePane>
|
|
|
- <LayoutAnchorablePane>
|
|
|
- <LayoutAnchorable ContentId="navigation" Title="Navigation"
|
|
|
+ </LayoutAnchorable>
|
|
|
+ </LayoutAnchorablePane>
|
|
|
+ <LayoutAnchorablePane>
|
|
|
+ <LayoutAnchorable ContentId="navigation" Title="Navigation"
|
|
|
CanHide="True" CanAutoHide="False"
|
|
|
CanDockAsTabbedDocument="False" CanFloat="True">
|
|
|
- <usercontrols:PreviewWindow
|
|
|
+ <usercontrols:PreviewWindow
|
|
|
Document="{Binding BitmapManager.ActiveDocument}"
|
|
|
PrimaryColor="{Binding ColorsSubViewModel.PrimaryColor, Mode=TwoWay, Converter={StaticResource SKColorToMediaColorConverter}}"/>
|
|
|
- </LayoutAnchorable>
|
|
|
- </LayoutAnchorablePane>
|
|
|
- </LayoutAnchorablePaneGroup>
|
|
|
- </LayoutPanel>
|
|
|
- </avalondock:LayoutRoot>
|
|
|
- </DockingManager>
|
|
|
+ </LayoutAnchorable>
|
|
|
+ </LayoutAnchorablePane>
|
|
|
+ </LayoutAnchorablePaneGroup>
|
|
|
+ </LayoutPanel>
|
|
|
+ </avalondock:LayoutRoot>
|
|
|
+ </DockingManager>
|
|
|
+ </Grid>
|
|
|
</Grid>
|
|
|
- </Grid>
|
|
|
|
|
|
- <Border Grid.Row="2" Grid.Column="0"
|
|
|
+ <Border Grid.Row="2" Grid.Column="0"
|
|
|
Background="{StaticResource AccentColor}" Grid.RowSpan="2" CornerRadius="5,0,5,5">
|
|
|
- <StackPanel Orientation="Vertical" Cursor="Arrow" >
|
|
|
+ <StackPanel Orientation="Vertical" Cursor="Arrow" >
|
|
|
|
|
|
- <ItemsControl ItemsSource="{Binding ToolsSubViewModel.ToolSet}">
|
|
|
- <ItemsControl.ItemTemplate>
|
|
|
- <DataTemplate>
|
|
|
- <Button BorderBrush="White"
|
|
|
+ <ItemsControl ItemsSource="{Binding ToolsSubViewModel.ToolSet}">
|
|
|
+ <ItemsControl.ItemTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <Button BorderBrush="White"
|
|
|
BorderThickness="{Binding IsActive, Converter={StaticResource BoolToIntConverter}}"
|
|
|
Style="{StaticResource ToolButtonStyle}"
|
|
|
Command="{Binding Path=DataContext.ToolsSubViewModel.SelectToolCommand,
|
|
|
RelativeSource={RelativeSource AncestorType={x:Type Window}}}"
|
|
|
CommandParameter="{Binding}" ToolTip="{Binding Tooltip}">
|
|
|
- <Button.Background>
|
|
|
- <ImageBrush ImageSource="{Binding ImagePath}" Stretch="Uniform" />
|
|
|
- </Button.Background>
|
|
|
- <Button.Resources>
|
|
|
- <Style TargetType="Border">
|
|
|
- <Setter Property="CornerRadius" Value="2.5"/>
|
|
|
- </Style>
|
|
|
- </Button.Resources>
|
|
|
- </Button>
|
|
|
- </DataTemplate>
|
|
|
- </ItemsControl.ItemTemplate>
|
|
|
- </ItemsControl>
|
|
|
- </StackPanel>
|
|
|
- </Border>
|
|
|
-
|
|
|
- <Grid Grid.Row="3" Grid.Column="1">
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="*"/>
|
|
|
- <ColumnDefinition Width="290"/>
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
- <DockPanel>
|
|
|
- <TextBlock Text="{Binding ActionDisplay}" Foreground="White" FontSize="15" Margin="10,0,0,0" VerticalAlignment="Center"/>
|
|
|
- <StackPanel DockPanel.Dock="Right" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
|
|
|
- <TextBlock Text="X:" Foreground="White" FontSize="16"/>
|
|
|
- <TextBlock Margin="4,0,10,0" Text="{Binding BitmapManager.ActiveDocument.MouseXOnCanvas, Converter={converters:DoubleToIntConverter}}" Foreground="White" FontSize="16"/>
|
|
|
- <TextBlock Text="Y:" Foreground="White" FontSize="16"/>
|
|
|
- <TextBlock Margin="4,0,10,0" Text="{Binding BitmapManager.ActiveDocument.MouseYOnCanvas, Converter={converters:DoubleToIntConverter}}" Foreground="White" FontSize="16"/>
|
|
|
+ <Button.Background>
|
|
|
+ <ImageBrush ImageSource="{Binding ImagePath}" Stretch="Uniform" />
|
|
|
+ </Button.Background>
|
|
|
+ <Button.Resources>
|
|
|
+ <Style TargetType="Border">
|
|
|
+ <Setter Property="CornerRadius" Value="2.5"/>
|
|
|
+ </Style>
|
|
|
+ </Button.Resources>
|
|
|
+ </Button>
|
|
|
+ </DataTemplate>
|
|
|
+ </ItemsControl.ItemTemplate>
|
|
|
+ </ItemsControl>
|
|
|
</StackPanel>
|
|
|
- </DockPanel>
|
|
|
- <StackPanel Margin="10,0,0,0" VerticalAlignment="Center" Grid.Row="3"
|
|
|
+ </Border>
|
|
|
+
|
|
|
+ <Grid Grid.Row="3" Grid.Column="1">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ <ColumnDefinition Width="290"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <DockPanel>
|
|
|
+ <TextBlock Text="{Binding ActionDisplay}" Foreground="White" FontSize="15" Margin="10,0,0,0" VerticalAlignment="Center"/>
|
|
|
+ <StackPanel DockPanel.Dock="Right" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
|
|
|
+ <TextBlock Text="X:" Foreground="White" FontSize="16"/>
|
|
|
+ <TextBlock Margin="4,0,10,0" Text="{Binding BitmapManager.ActiveDocument.MouseXOnCanvas, Converter={converters:DoubleToIntConverter}}" Foreground="White" FontSize="16"/>
|
|
|
+ <TextBlock Text="Y:" Foreground="White" FontSize="16"/>
|
|
|
+ <TextBlock Margin="4,0,10,0" Text="{Binding BitmapManager.ActiveDocument.MouseYOnCanvas, Converter={converters:DoubleToIntConverter}}" Foreground="White" FontSize="16"/>
|
|
|
+ </StackPanel>
|
|
|
+ </DockPanel>
|
|
|
+ <StackPanel Margin="10,0,0,0" VerticalAlignment="Center" Grid.Row="3"
|
|
|
Grid.Column="3" Orientation="Horizontal">
|
|
|
- <Button Style="{StaticResource BaseDarkButton}"
|
|
|
+ <Button Style="{StaticResource BaseDarkButton}"
|
|
|
Visibility="{Binding UpdateSubViewModel.UpdateReadyToInstall, Converter={StaticResource BoolToVisibilityConverter}, FallbackValue=Hidden}" FontSize="14" Height="20"
|
|
|
Command="{cmds:Command PixiEditor.Restart}">Restart</Button>
|
|
|
- <TextBlock VerticalAlignment="Center" Padding="10" HorizontalAlignment="Right"
|
|
|
+ <TextBlock VerticalAlignment="Center" Padding="10" HorizontalAlignment="Right"
|
|
|
Foreground="White" FontSize="14" Text="{Binding UpdateSubViewModel.VersionText}" />
|
|
|
- </StackPanel>
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
</Grid>
|
|
|
+ <usercontrols:CommandSearchControl HorizontalAlignment="Center" Height="700"/>
|
|
|
</Grid>
|
|
|
</Window>
|