diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-01-14 15:24:49 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-01-14 15:24:49 +0200 |
| commit | a20fd4bd769aeccd1fd1f20273f895c92a5b5bb8 (patch) | |
| tree | 15f2dc0d4629dfd17b2e44ca3732d549fed27751 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Controls | |
| parent | 04db84896f75bb761e8b3d482b4cb0f82c08d96e (diff) | |
| download | Tango-a20fd4bd769aeccd1fd1f20273f895c92a5b5bb8.tar.gz Tango-a20fd4bd769aeccd1fd1f20273f895c92a5b5bb8.zip | |
Added code comments for:
MachineStudio.Common.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Controls')
2 files changed, 28 insertions, 2 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Controls/MdiChild.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Controls/MdiChild.cs index 469e3fda5..109b00531 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Controls/MdiChild.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Controls/MdiChild.cs @@ -10,19 +10,34 @@ using Tango.Core.Commands; namespace Tango.MachineStudio.Common.Controls { + /// <summary> + /// Represents an <see cref="MdiContainerControl"/> child control. + /// </summary> + /// <seealso cref="System.Windows.DependencyObject" /> public class MdiChild : DependencyObject { + /// <summary> + /// Initializes a new instance of the <see cref="MdiChild"/> class. + /// </summary> public MdiChild() { } + /// <summary> + /// Initializes a new instance of the <see cref="MdiChild"/> class. + /// </summary> + /// <param name="header">The header.</param> + /// <param name="view">The view.</param> public MdiChild(String header, FrameworkElement view) : this() { Header = header; View = view; } + /// <summary> + /// Gets or sets the icon. + /// </summary> public PackIconKind Icon { get { return (PackIconKind)GetValue(IconProperty); } @@ -31,6 +46,9 @@ namespace Tango.MachineStudio.Common.Controls public static readonly DependencyProperty IconProperty = DependencyProperty.Register("Icon", typeof(PackIconKind), typeof(MdiChild), new PropertyMetadata(PackIconKind.LaptopWindows)); + /// <summary> + /// Gets or sets the header. + /// </summary> public String Header { get { return (String)GetValue(HeaderProperty); } @@ -39,6 +57,9 @@ namespace Tango.MachineStudio.Common.Controls public static readonly DependencyProperty HeaderProperty = DependencyProperty.Register("Header", typeof(String), typeof(MdiChild), new PropertyMetadata(null)); + /// <summary> + /// Gets or sets the view. + /// </summary> public FrameworkElement View { get { return (FrameworkElement)GetValue(ViewProperty); } @@ -47,6 +68,9 @@ namespace Tango.MachineStudio.Common.Controls public static readonly DependencyProperty ViewProperty = DependencyProperty.Register("View", typeof(FrameworkElement), typeof(MdiChild), new PropertyMetadata(null)); + /// <summary> + /// Gets or sets the location. + /// </summary> public Point Location { get { return (Point)GetValue(LocationProperty); } diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Controls/MdiContainerControl.xaml.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Controls/MdiContainerControl.xaml.cs index dbf4ee74b..ceeda050b 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Controls/MdiContainerControl.xaml.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Controls/MdiContainerControl.xaml.cs @@ -20,8 +20,11 @@ using Tango.SharedUI.Helpers; namespace Tango.MachineStudio.Common.Controls { /// <summary> - /// Interaction logic for MdiContainerControl.xaml + /// Represents an MDI-style container /// </summary> + /// <seealso cref="System.Windows.Controls.UserControl" /> + /// <seealso cref="System.Windows.Markup.IComponentConnector" /> + /// <seealso cref="System.Windows.Markup.IStyleConnector" /> public partial class MdiContainerControl : UserControl { private const int MIN_SIZE = 200; @@ -63,7 +66,6 @@ namespace Tango.MachineStudio.Common.Controls return UIHelper.FindChild<Canvas>(itemsControl, "canvas"); } - private void OnControlMouseDown(object sender, MouseButtonEventArgs e) { Canvas.SetZIndex(sender as FrameworkElement, GetCanvas().Children.OfType<FrameworkElement>().Max(x => Canvas.GetZIndex(x) + 1)); |
