Skip to content

Commit

Permalink
Do not allow resizing when canvas is locked
Browse files Browse the repository at this point in the history
  • Loading branch information
miroiu committed Jun 26, 2024
1 parent 018fa92 commit 74f795e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Examples/Nodify.Shapes/Canvas/CanvasView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@
BasedOn="{StaticResource {x:Type shared:Resizer}}">
<Setter Property="Background"
Value="{Binding BorderBrush, RelativeSource={RelativeSource AncestorType=nodify:ItemContainer}}" />
<Setter Property="IsEnabled"
Value="{Binding DataContext.CanvasToolbar.Locked, ElementName=Editor, Converter={StaticResource InverseBooleanConverter}}" />
</Style>

<!--For some reason, the designer doesn't like having these bindings on the element itself but in a style-->
Expand Down

0 comments on commit 74f795e

Please sign in to comment.