aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs')
-rw-r--r--Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs b/Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs
index 137ef6e42..fc929089d 100644
--- a/Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs
+++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs
@@ -24,6 +24,7 @@ namespace Tango.Touch.Controls
private TouchCalendar _calendar;
private Grid _calendar_grid;
private bool _isDialogGridMaskMouseDown;
+ protected Border _dialogBorder;
static TouchPanel()
{
@@ -72,6 +73,7 @@ namespace Tango.Touch.Controls
_comboBoxCloseButton = GetTemplateChild("PART_comboboxCloseButton") as TouchIconButton;
_calendar_grid = GetTemplateChild("PART_datepicker_grid") as Grid;
_calendar = GetTemplateChild("PART_calendar") as TouchCalendar;
+ _dialogBorder = GetTemplateChild("PART_dialogBorder") as Border;
var gridDialogsMask = GetTemplateChild("PART_gridDialogsMask") as Grid;
gridDialogsMask.MouseUp += GridDialogsMask_MouseUp;
gridDialogsMask.MouseDown += GridDialogsMask_MouseDown;
@@ -241,7 +243,7 @@ namespace Tango.Touch.Controls
set { SetValue(CurrentDialogProperty, value); }
}
public static readonly DependencyProperty CurrentDialogProperty =
- DependencyProperty.Register("CurrentDialog", typeof(FrameworkElement), typeof(TouchPanel), new PropertyMetadata(null));
+ DependencyProperty.Register("CurrentDialog", typeof(FrameworkElement), typeof(TouchPanel), new PropertyMetadata(null,(d,e) => (d as TouchPanel).OnCurrentDialogChanged(e.NewValue as FrameworkElement)));
public FrameworkElement TaskBarElement
{
@@ -267,6 +269,10 @@ namespace Tango.Touch.Controls
public static readonly DependencyProperty BusyMessageProperty =
DependencyProperty.Register("BusyMessage", typeof(String), typeof(TouchPanel), new PropertyMetadata(null));
+ protected virtual void OnCurrentDialogChanged(FrameworkElement frameworkElement)
+ {
+
+ }
#region Attached Properties