|
@@ -71,9 +71,8 @@ internal class ReferenceLayerViewModel : INotifyPropertyChanged
|
|
get => isTopMost;
|
|
get => isTopMost;
|
|
set
|
|
set
|
|
{
|
|
{
|
|
- isTopMost = value;
|
|
|
|
- RaisePropertyChanged(nameof(IsTopMost));
|
|
|
|
- RaisePropertyChanged(nameof(ShowHighest));
|
|
|
|
|
|
+ if (!doc.UpdateableChangeActive)
|
|
|
|
+ internals.ActionAccumulator.AddFinishedActions(new ReferenceLayerTopMost_Action(value));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -100,10 +99,14 @@ internal class ReferenceLayerViewModel : INotifyPropertyChanged
|
|
ReferenceBitmap = WriteableBitmapHelpers.FromPbgra32Array(imagePbgra32Bytes.ToArray(), imageSize);
|
|
ReferenceBitmap = WriteableBitmapHelpers.FromPbgra32Array(imagePbgra32Bytes.ToArray(), imageSize);
|
|
referenceShape = shape;
|
|
referenceShape = shape;
|
|
isVisible = true;
|
|
isVisible = true;
|
|
|
|
+ isTransforming = false;
|
|
|
|
+ isTopMost = false;
|
|
RaisePropertyChanged(nameof(ReferenceBitmap));
|
|
RaisePropertyChanged(nameof(ReferenceBitmap));
|
|
RaisePropertyChanged(nameof(ReferenceShapeBindable));
|
|
RaisePropertyChanged(nameof(ReferenceShapeBindable));
|
|
RaisePropertyChanged(nameof(ReferenceTransformMatrix));
|
|
RaisePropertyChanged(nameof(ReferenceTransformMatrix));
|
|
RaisePropertyChanged(nameof(IsVisibleBindable));
|
|
RaisePropertyChanged(nameof(IsVisibleBindable));
|
|
|
|
+ RaisePropertyChanged(nameof(IsTransforming));
|
|
|
|
+ RaisePropertyChanged(nameof(ShowHighest));
|
|
}
|
|
}
|
|
|
|
|
|
public void InternalDeleteReferenceLayer()
|
|
public void InternalDeleteReferenceLayer()
|
|
@@ -128,5 +131,12 @@ internal class ReferenceLayerViewModel : INotifyPropertyChanged
|
|
RaisePropertyChanged(nameof(IsVisibleBindable));
|
|
RaisePropertyChanged(nameof(IsVisibleBindable));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public void InternalSetReferenceLayerTopMost(bool isTopMost)
|
|
|
|
+ {
|
|
|
|
+ this.isTopMost = isTopMost;
|
|
|
|
+ RaisePropertyChanged(nameof(IsTopMost));
|
|
|
|
+ RaisePropertyChanged(nameof(ShowHighest));
|
|
|
|
+ }
|
|
|
|
+
|
|
#endregion
|
|
#endregion
|
|
}
|
|
}
|