Browse Source

Added isvisible to Raw layers

flabbet 4 years ago
parent
commit
887e5d354c
2 changed files with 2 additions and 1 deletions
  1. 1 1
      PixiEditor/Views/MainWindow.xaml
  2. 1 0
      PixiEditor/Views/MainWindow.xaml.cs

+ 1 - 1
PixiEditor/Views/MainWindow.xaml

@@ -309,7 +309,7 @@
                                             </usercontrols:LayersManager.LayerTreeRoot>
                                             </usercontrols:LayersManager.LayerTreeRoot>
                                         </usercontrols:LayersManager>
                                         </usercontrols:LayersManager>
                                     </LayoutAnchorable>
                                     </LayoutAnchorable>
-                                    <LayoutAnchorable ContentId="rawLayer" Title="Raw layers">
+                                    <LayoutAnchorable x:Name="rawLayerAnchorable" ContentId="rawLayer" Title="Raw layers">
                                         <usercontrols:RawLayersViewer Layers="{Binding BitmapManager.ActiveDocument.Layers}"
                                         <usercontrols:RawLayersViewer Layers="{Binding BitmapManager.ActiveDocument.Layers}"
                                                                       Structure="{Binding BitmapManager.ActiveDocument.LayerStructure}"/>
                                                                       Structure="{Binding BitmapManager.ActiveDocument.LayerStructure}"/>
                                     </LayoutAnchorable>
                                     </LayoutAnchorable>

+ 1 - 0
PixiEditor/Views/MainWindow.xaml.cs

@@ -35,6 +35,7 @@ namespace PixiEditor
             MaxHeight = SystemParameters.MaximizedPrimaryScreenHeight;
             MaxHeight = SystemParameters.MaximizedPrimaryScreenHeight;
             viewModel = (ViewModelMain)DataContext;
             viewModel = (ViewModelMain)DataContext;
             viewModel.CloseAction = Close;
             viewModel.CloseAction = Close;
+            rawLayerAnchorable.IsVisible = viewModel.IsDebug;
         }
         }
 
 
         protected override void OnClosing(CancelEventArgs e)
         protected override void OnClosing(CancelEventArgs e)