aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2018-03-14 10:34:23 +0200
committerShlomo Hecht <shlomo@twine-s.com>2018-03-14 10:34:23 +0200
commit9d04bbb2b4a2eb2eb14cc813103c856b7bde975a (patch)
tree093b1cdcd808e600f44fd8ccd5465978c572822e /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs
parent5652ed578179a7221b443d11855d555dc6ae05cd (diff)
parent37b740c1d128d694b9dcbc3669808435b5d88fec (diff)
downloadTango-9d04bbb2b4a2eb2eb14cc813103c856b7bde975a.tar.gz
Tango-9d04bbb2b4a2eb2eb14cc813103c856b7bde975a.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs
index 36ee95f10..c4d9b4a28 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/MainWindow.xaml.cs
@@ -10,7 +10,9 @@ using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
+using System.Windows.Interop;
using System.Windows.Media;
+using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
@@ -30,6 +32,8 @@ namespace Tango.MachineStudio.UI
public MainWindow()
{
+ //Timeline.DesiredFrameRateProperty.OverrideMetadata(typeof(Timeline), new FrameworkPropertyMetadata { DefaultValue = 40 });
+
try
{
InitializeComponent();
@@ -42,6 +46,15 @@ namespace Tango.MachineStudio.UI
{
LogManager.Log(ex);
}
+
+ this.Loaded += MainWindow_Loaded;
+ }
+
+ private void MainWindow_Loaded(object sender, RoutedEventArgs e)
+ {
+ //HwndSource hwndSource = PresentationSource.FromVisual(this) as HwndSource;
+ //HwndTarget hwndTarget = hwndSource.CompositionTarget;
+ //hwndTarget.RenderMode = RenderMode.SoftwareOnly;
}
private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)