|
@@ -140,7 +140,7 @@ internal class ViewportOverlays
|
|
|
|
|
|
private void BindSelectionOverlay()
|
|
|
{
|
|
|
- Binding showFillBinding = new()
|
|
|
+ Binding toolIsSelectionBinding = new()
|
|
|
{
|
|
|
Source = ViewModelMain.Current,
|
|
|
Path = "ToolsSubViewModel.ActiveTool",
|
|
@@ -148,6 +148,24 @@ internal class ViewportOverlays
|
|
|
Mode = BindingMode.OneWay
|
|
|
};
|
|
|
|
|
|
+ Binding isTransformingBinding = new()
|
|
|
+ {
|
|
|
+ Source = Viewport,
|
|
|
+ Path = "!Document.TransformViewModel.TransformActive",
|
|
|
+ Mode = BindingMode.OneWay
|
|
|
+ };
|
|
|
+
|
|
|
+ MultiBinding showFillBinding = new()
|
|
|
+ {
|
|
|
+ Converter = new AllTrueConverter(),
|
|
|
+ Mode = BindingMode.OneWay,
|
|
|
+ Bindings = new List<IBinding>()
|
|
|
+ {
|
|
|
+ toolIsSelectionBinding,
|
|
|
+ isTransformingBinding
|
|
|
+ }
|
|
|
+ };
|
|
|
+
|
|
|
Binding pathBinding = new()
|
|
|
{
|
|
|
Source = Viewport, Path = "Document.SelectionPathBindable", Mode = BindingMode.OneWay
|