aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Editors
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-08-20 10:04:20 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-08-20 10:04:20 +0300
commit93ab96c948f3259e8b8138367af713c7a9f27086 (patch)
tree5eb42e64db5ce19c5c56f9c5a497cc171d0415c1 /Software/Visual_Studio/Tango.Editors
parentde5d4906184cff4f16f92864d03af9d7c41231d7 (diff)
downloadTango-93ab96c948f3259e8b8138367af713c7a9f27086.tar.gz
Tango-93ab96c948f3259e8b8138367af713c7a9f27086.zip
Machine Studio v2.9
Diffstat (limited to 'Software/Visual_Studio/Tango.Editors')
-rw-r--r--Software/Visual_Studio/Tango.Editors/ElementsEditor.xaml.cs24
1 files changed, 2 insertions, 22 deletions
diff --git a/Software/Visual_Studio/Tango.Editors/ElementsEditor.xaml.cs b/Software/Visual_Studio/Tango.Editors/ElementsEditor.xaml.cs
index 98a813fc0..4d2eabbb8 100644
--- a/Software/Visual_Studio/Tango.Editors/ElementsEditor.xaml.cs
+++ b/Software/Visual_Studio/Tango.Editors/ElementsEditor.xaml.cs
@@ -15,30 +15,8 @@ using Tango.Editors;
namespace Tango.Editors
{
/// <summary>
- /// <para><img class="classImage" src="../Media/ElementsEditor.png" /></para>
/// Represents a <see cref="IElementEditor"/> collection container and editor. The editor supports Undo, Redo, Cut, Copy and Paste operations.
- /// The whole editor state can easily be saved and load using the <see cref="GetConfiguration()"/> and <see cref="SetConfiguration"/> methods.
/// </summary>
- /// <example>
- /// <para class="example-title">
- /// <img class="exampleIcon" src="../Icons/CodeExample.png" />
- /// <i>
- /// The following example demonstrates a basic scenario of using <see cref="N:WpfVideoTools.Tiles"/> and <see cref="N:Tango.Editors"/> by creating a simple video projection application with the following features:
- /// </i>
- /// <list type="bullet">
- /// <item>Use the mouse to draw any type of tile of the editor surface.</item>
- /// <item>Apply any input shape on any tile.</item>
- /// <item>Load any video and display it on any of the selected tile.</item>
- /// <item>Built in support for undo, redo, cut, copy and paste, delete and select operations.</item>
- /// <item>Built in support for saving/loading the editor state to memory or file.</item>
- /// <item>Built in support for tile and editor properties adjustment using the <see cref="ParameterizedEditor"/>.</item>
- /// </list>
- /// </para>
- /// <para><markup><video class="exampleVideo" autoplay="autoplay" loop="loop" controls="controls" src="../Media/EditorsExample.mp4"></video></markup></para>
- /// <code lang="XAML" source="../FullAPIExamples/Examples/Editors/EditorsExample.xaml" title="Elements editor example." />
- /// <i>Code-Behind.</i>
- /// <code lang="C#" source="../FullAPIExamples/Examples/Editors/EditorsExample.xaml.cs" title="Elements editor example." />
- /// </example>
/// <seealso cref="Tango.Editors.HybridControl" />
/// <seealso cref="Tango.Editors.IConfigurable" />
/// <seealso cref="Tango.Editors.ISupportEditingOperations" />
@@ -1219,6 +1197,8 @@ namespace Tango.Editors
{
base.OnPreviewKeyDown(e);
+ if (!IsEditable) return;
+
if (e.Key == Key.Right)
{
GetSelectedElements().ForEach(x => x.PushMove(new DragDeltaEventArgs(1, 0)));