diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-05-23 15:17:43 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-05-23 15:17:43 +0300 |
| commit | 3acab1d308d1c4705d4ee1e697205fd14914aa81 (patch) | |
| tree | 40ba9e97312f1841825f6bdecc5d4ae66135bac7 /Software/Visual_Studio/FSE/Tango.FSE.UI/Resolution/DefaultResolutionService.cs | |
| parent | 0a5b831276eb49c5f20b636f355f4495e4b74640 (diff) | |
| download | Tango-3acab1d308d1c4705d4ee1e697205fd14914aa81.tar.gz Tango-3acab1d308d1c4705d4ee1e697205fd14914aa81.zip | |
Element detachment/attachment separate window.
WindowsManager.
Diffstat (limited to 'Software/Visual_Studio/FSE/Tango.FSE.UI/Resolution/DefaultResolutionService.cs')
| -rw-r--r-- | Software/Visual_Studio/FSE/Tango.FSE.UI/Resolution/DefaultResolutionService.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Software/Visual_Studio/FSE/Tango.FSE.UI/Resolution/DefaultResolutionService.cs b/Software/Visual_Studio/FSE/Tango.FSE.UI/Resolution/DefaultResolutionService.cs index 21e1ec9af..68416f3ee 100644 --- a/Software/Visual_Studio/FSE/Tango.FSE.UI/Resolution/DefaultResolutionService.cs +++ b/Software/Visual_Studio/FSE/Tango.FSE.UI/Resolution/DefaultResolutionService.cs @@ -116,6 +116,7 @@ namespace Tango.FSE.UI.Resolution /// <summary> /// Initializes a new instance of the <see cref="DefaultResolutionService"/> class. /// </summary> + [TangoInject] public DefaultResolutionService() { var window = Application.Current.MainWindow; @@ -125,6 +126,11 @@ namespace Tango.FSE.UI.Resolution } } + public DefaultResolutionService(Window window) + { + window.SizeChanged += Window_SizeChanged; + } + /// <summary> /// Handles the application main window size changed event. /// </summary> |
