public void InitializeControl(IFrameworkManger frameworkManager, double left, double top) { FrameworkManager = frameworkManager; FrameworkManager.RegisterElement((IMTouchControl)menuButton, false, new[] { TouchAction.Tap }); scrollViewer.Tag = FrameworkManager.RegisterElement(scrollViewer, false, new[] { TouchAction.Slide }); FrameworkManager.AddControlWithAllNoGestures(this, left, top); }
public void InitializeControl(IFrameworkManger frameworkManager, List<WeatherElement> weatherData, int index) { FrameworkManager = frameworkManager; _weatherData = weatherData; _currentPagerIndex = index; FrameworkManager.RegisterElement(pager.sld as IMTouchControl, false, new[] { TouchAction.Slide }); FrameworkManager.RegisterElement((IMTouchControl)CommandDisk, false, new[] { TouchAction.Tap }); CommandDisk.AddHandler(MTEvents.TapEvent, new RoutedEventHandler(WeatherCloseTapEvent)); pager.sld.Maximum = _weatherData.Count - 1; pager.sld.Minimum = 0; pager.sld.Value = _currentPagerIndex; SetWeatherProperties(_weatherData[_currentPagerIndex]); FrameworkManager.AddControlWithAllGestures(this, 20, 20); }
public void Load(IFrameworkManger frameworkManger, double left, double top) { _top = top; _left = left; FrameworkManager = frameworkManger; FrameworkManager.RegisterElement((IMTouchControl)LockButton, false, new[] { TouchAction.Tap }); FrameworkManager.RegisterElement((IMTouchControl)closeButton, false, new[] { TouchAction.Tap }); FrameworkManager.RegisterElement((IMTouchControl)setSourceButton, false, new[] { TouchAction.Tap }); FrameworkManager.RegisterElement((IMTouchControl)setDestinationButton, false, new[] { TouchAction.Tap }); FrameworkManager.RegisterElement((IMTouchControl)getDirectionsButton, false, new[] { TouchAction.Tap }); FrameworkManager.RegisterElement((IMTouchControl)searchLocationButton, false, new[] { TouchAction.Tap }); FrameworkManager.AddControlWithAllGestures(this, left, top); }
public void InitializeControl(IFrameworkManger frameworkManager, double left, double top) { FrameworkManager = frameworkManager; SetMonth(); FrameworkManager.RegisterElement((IMTouchControl)closeButton, false, new[] { TouchAction.Tap }); foreach (IMTouchControl button in GetTouchButtons()) { FrameworkManager.RegisterElement(button, false, new[] { TouchAction.Tap }); } FrameworkManager.AddControlWithAllGestures(this, left, top); RegisterUnRegisetrCellItem(true); }
public void Load(IFrameworkManger frameworkManager, double left, double top) { FrameworkManager = frameworkManager; foreach (var landMarkItem in _landMarkItems) { FrameworkManager.RegisterElement(landMarkItem as IMTouchControl, false, new[] { TouchAction.Tap }); } FrameworkManager.RegisterElement((IMTouchControl)Slider, false, new[] { TouchAction.Slide }); FrameworkManager.RegisterElement((IMTouchControl)closeButton, false, new[] { TouchAction.Tap }); FrameworkManager.AddControlWithAllGestures(this, left, top); }
public void Load(IFrameworkManger frameworkManager, double left, double top) { _frameworkManager = frameworkManager; _frameworkManager.RegisterElement((IMTouchControl)closeButton, false, new TouchAction[] { TouchAction.Tap }); _frameworkManager.AddControlWithAllGestures(this, left, top); }
public void Load(IFrameworkManger frameworkManger, string subCategoryId, string categoryId) { _categoryId = categoryId; _subCategoryId = subCategoryId; FrameworkManager = frameworkManger; FrameworkManager.RegisterElement((IMTouchControl)pager, false, new[] { TouchAction.Slide }); FrameworkManager.RegisterElement((IMTouchControl)closeButton, false, new[] { TouchAction.Tap }); FrameworkManager.RegisterElement((IMTouchControl)menuButton, false, new[] { TouchAction.Tap }); categoryCombo.Initialize(FrameworkManager, GetCategoryComboItems()); categoryCombo.SelectedItem = _subCategoryId; FrameworkManager.AddControlWithAllGestures(this, 20, 20); SetDiningProperties(); }
public void InitializeControl(IFrameworkManger frameworkManger, string categoryId) { FrameworkManager = frameworkManger; FrameworkManager.RegisterElement(categoryCombo as IMTouchControl, false, new[] { TouchAction.Tap }); FrameworkManager.RegisterElement((IMTouchControl)closeButton, false, new[] { TouchAction.Tap }); foreach (TouchButton item in _comboItems) { FrameworkManager.RegisterElement(item as IMTouchControl, false, new[] { TouchAction.Tap }); } _categoryId = categoryId; categoryCombo.Initialize(FrameworkManager, GetCategoryComboItems()); categoryCombo.SelectedItem = _categoryId; FrameworkManager.AddControlWithAllGestures(this, 20, 20); PopulateSubCategory(); }
public void Initialize(IFrameworkManger frameworkManger, List<TouchComboBoxItem> items) { _items = items; _frameworkManger = frameworkManger; _frameworkManger.RegisterElement((IMTouchControl) titleToggleButton, false, new TouchAction[] {TouchAction.Tap}); itemsContainer.Children.Clear(); foreach (var item in items) { var touchButton = new TouchRadioButton(); touchButton.Content = item.Content; touchButton.Tag = item; touchButton.Foreground = Brushes.White; touchButton.FontWeight = FontWeights.Bold; touchButton.Style = (Style) FindResource("ComboTouchRadioButtonStyle"); touchButton.Content = item.DisplayText; touchButton.Click += TouchButtonClick; itemsContainer.Children.Add(touchButton); _frameworkManger.RegisterElement((IMTouchControl)touchButton, false, new TouchAction[] {TouchAction.Tap}); _options.Add(touchButton); } }
public void Load(IFrameworkManger frameworkManger, double left, double top) { FrameworkManager = frameworkManger; FrameworkManager.RegisterElement((IMTouchControl)closeButton, false, new[] { TouchAction.Tap }); foreach (TouchButton eventButton in _transportationButtons) { FrameworkManager.RegisterElement(eventButton as IMTouchControl, false, new[] { TouchAction.Tap }); } FrameworkManager.AddControlWithAllGestures(this,left,top); }
public void InitializeControl(IFrameworkManger frameworkManager, double left, double top) { FrameworkManager = frameworkManager; FrameworkManager.RegisterElement((IMTouchControl)closeButton, true, null); FrameworkManager.RegisterElement((IMTouchControl)pager, false, new[] { TouchAction.Slide, TouchAction.Tap }); categoryCombo.Initialize(FrameworkManager, GetCategoryComboItems()); FrameworkManager.AddControlWithAllGestures(this, left, top); categoryCombo.SelectedItem = CategoryId.ToString(); SetEventProperties(); }
public void InitializeControl(IFrameworkManger frameworkManger, double left, double top) { FrameworkManager = frameworkManger; searchBox.Tag = FrameworkManager.RegisterElement(searchBox, false, new[] { TouchAction.Tap }); FrameworkManager.RegisterElement((IMTouchControl)SetSouceButton, false, new[] { TouchAction.Tap }); FrameworkManager.RegisterElement((IMTouchControl)SetDestinationButton, false, new[] { TouchAction.Tap }); FrameworkManager.RegisterElement((IMTouchControl)menuButton, false, new[] { TouchAction.Tap }); scrollViewer.Tag = FrameworkManager.RegisterElement(scrollViewer, false, new[] { TouchAction.ScrollY }); SetSouceButton.Click += SetSouceButtonClick; SetDestinationButton.Click += SetDestinationButtonClick; FrameworkManager.AddControlWithAllNoGestures(this, left, top); }