aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules
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
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')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Controls/DbTableView.xaml2
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Managers/RegisteredView.cs6
2 files changed, 7 insertions, 1 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Controls/DbTableView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Controls/DbTableView.xaml
index f3e13e338..d0f6b045a 100644
--- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Controls/DbTableView.xaml
+++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/Controls/DbTableView.xaml
@@ -5,7 +5,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
mc:Ignorable="d"
- d:DesignHeight="720" d:DesignWidth="1000" MaxWidth="1000">
+ d:DesignHeight="720" d:DesignWidth="1300">
<Grid>
<Grid>
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;
}