aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/XamlEditor.cs
diff options
context:
space:
mode:
authorMirta <mirta@twine-s.com>2020-12-30 16:39:52 +0200
committerMirta <mirta@twine-s.com>2020-12-30 16:39:52 +0200
commit00a491d93733d4625ad329b2ba8237f445364b3f (patch)
tree4b24c6fa78d7648f4bb7cefafa464bb0b063fec4 /Software/Visual_Studio/Scripting/Tango.Scripting.Editors/XamlEditor.cs
parent124ad4150f80c6846fdee41dbbda9848c105f6e5 (diff)
downloadTango-00a491d93733d4625ad329b2ba8237f445364b3f.tar.gz
Tango-00a491d93733d4625ad329b2ba8237f445364b3f.zip
merge
Diffstat (limited to 'Software/Visual_Studio/Scripting/Tango.Scripting.Editors/XamlEditor.cs')
-rw-r--r--Software/Visual_Studio/Scripting/Tango.Scripting.Editors/XamlEditor.cs47
1 files changed, 0 insertions, 47 deletions
diff --git a/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/XamlEditor.cs b/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/XamlEditor.cs
deleted file mode 100644
index 22b425ba2..000000000
--- a/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/XamlEditor.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows;
-
-namespace Tango.Scripting.Editors
-{
- public class XamlEditor : TextEditor
- {
- private bool preventCodeUpdate;
-
- public String Xaml
- {
- get { return (String)GetValue(XamlProperty); }
- set { SetValue(XamlProperty, value); }
- }
- public static readonly DependencyProperty XamlProperty =
- DependencyProperty.Register("Xaml", typeof(String), typeof(XamlEditor), new PropertyMetadata(null, (d, e) => (d as XamlEditor).OnXamlChanged()));
-
- public XamlEditor()
- {
- TextChanged += XamlEditor_TextChanged;
- }
-
- private void XamlEditor_TextChanged(object sender, EventArgs e)
- {
- if (!preventCodeUpdate)
- {
- preventCodeUpdate = true;
- Xaml = Text;
- preventCodeUpdate = false;
- }
- }
-
- private void OnXamlChanged()
- {
- if (!preventCodeUpdate)
- {
- preventCodeUpdate = true;
- Text = Xaml;
- preventCodeUpdate = false;
- }
- }
- }
-}