diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-19 14:26:15 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-19 14:26:15 +0300 |
| commit | 6f9da1e19024c7c65d7dbd6038cd34776453f9dc (patch) | |
| tree | 5bac3f9154c45ea89310b934c64b0788e0598c54 /Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs | |
| parent | 62dfa96e0bf7cba8b32a0866a0f8101b1e7ec562 (diff) | |
| download | Tango-6f9da1e19024c7c65d7dbd6038cd34776453f9dc.tar.gz Tango-6f9da1e19024c7c65d7dbd6038cd34776453f9dc.zip | |
Implemented Touch Panel.
Implemented KeyboardView BringToView routine.
Diffstat (limited to 'Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs b/Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs new file mode 100644 index 000000000..fa01c207b --- /dev/null +++ b/Software/Visual_Studio/Tango.Touch/Controls/TouchPanel.cs @@ -0,0 +1,67 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; + +namespace Tango.Touch.Controls +{ + public class TouchPanel : ContentControl + { + static TouchPanel() + { + DefaultStyleKeyProperty.OverrideMetadata(typeof(TouchPanel), new FrameworkPropertyMetadata(typeof(TouchPanel))); + } + + public bool HasMessageBox + { + get { return (bool)GetValue(HasMessageBoxProperty); } + set { SetValue(HasMessageBoxProperty, value); } + } + public static readonly DependencyProperty HasMessageBoxProperty = + DependencyProperty.Register("HasMessageBox", typeof(bool), typeof(TouchPanel), new PropertyMetadata(false)); + + public MessageBoxVM CurrentMessageBox + { + get { return (MessageBoxVM)GetValue(CurrentMessageBoxProperty); } + set { SetValue(CurrentMessageBoxProperty, value); } + } + public static readonly DependencyProperty CurrentMessageBoxProperty = + DependencyProperty.Register("CurrentMessageBox", typeof(MessageBoxVM), typeof(TouchPanel), new PropertyMetadata(null)); + + public double MinNotificationHeight + { + get { return (double)GetValue(MinNotificationHeightProperty); } + set { SetValue(MinNotificationHeightProperty, value); } + } + public static readonly DependencyProperty MinNotificationHeightProperty = + DependencyProperty.Register("MinNotificationHeight", typeof(double), typeof(TouchPanel), new PropertyMetadata(60.0)); + + public bool HasNotifications + { + get { return (bool)GetValue(HasNotificationsProperty); } + set { SetValue(HasNotificationsProperty, value); } + } + public static readonly DependencyProperty HasNotificationsProperty = + DependencyProperty.Register("HasNotifications", typeof(bool), typeof(TouchPanel), new PropertyMetadata(false)); + + public IList Notifications + { + get { return (IList)GetValue(NotificationsProperty); } + set { SetValue(NotificationsProperty, value); } + } + public static readonly DependencyProperty NotificationsProperty = + DependencyProperty.Register("Notifications", typeof(IList), typeof(TouchPanel), new PropertyMetadata(null)); + + public DataTemplate NotificationTemplate + { + get { return (DataTemplate)GetValue(NotificationTemplateProperty); } + set { SetValue(NotificationTemplateProperty, value); } + } + public static readonly DependencyProperty NotificationTemplateProperty = + DependencyProperty.Register("NotificationTemplate", typeof(DataTemplate), typeof(TouchPanel), new PropertyMetadata(null)); + } +} |
