aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Managers/RegisteredView.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-01-21 13:24:53 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-01-21 13:24:53 +0200
commit68dca419117f9336d0fe21f9f04903906eeeef02 (patch)
tree588d372cbd512b3fd8e8142466384c640bd9d71c /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Managers/RegisteredView.cs
parentbc2d3eb5ec8c7176627dcb8f5c02cc085b2db584 (diff)
downloadTango-68dca419117f9336d0fe21f9f04903906eeeef02.tar.gz
Tango-68dca419117f9336d0fe21f9f04903906eeeef02.zip
Fixed max width of DB table view.
Added FindAncestor on UIHelper.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Managers/RegisteredView.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Managers/RegisteredView.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Managers/RegisteredView.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Managers/RegisteredView.cs
index cd53ff8d8..7f6d84ecf 100644
--- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Managers/RegisteredView.cs
+++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Managers/RegisteredView.cs
@@ -43,6 +43,8 @@ namespace Tango.MachineStudio.DB.Managers
View = view;
+ View.MaxWidth = 1500;
+
if (action != null)
{
AddCommand = new RelayCommand(action);
@@ -54,6 +56,8 @@ namespace Tango.MachineStudio.DB.Managers
if (!ViewsManager.DisplayedViews.Contains(this))
{
ViewsManager.DisplayedViews.Add(this);
+ View.BringIntoView();
+ View.Focus();
}
else
{
@@ -76,6 +80,8 @@ namespace Tango.MachineStudio.DB.Managers
header = header.ToUpper();
}
+ view.MaxWidth = 1500;
+
Header = header;
View = view;
}