private void MainWindow_Loaded(object sender, RoutedEventArgs e) { //Windows 8 API to enable touch keyboard to monitor for focus tracking in this WPF application InputPanelConfiguration cp = new InputPanelConfiguration(); IInputPanelConfiguration icp = cp as IInputPanelConfiguration; if (icp != null) { icp.EnableFocusTracking(); } }
//[email protected] //bigmsc private void Page_Loaded(object sender, RoutedEventArgs e) { InputPanelConfiguration cp = new InputPanelConfiguration(); IInputPanelConfiguration icp = cp as IInputPanelConfiguration; if (icp != null) { icp.EnableFocusTracking(); } ConfigurationManager.AppSettings["Culture"] = Flip.Local ? "en-US" : "ru-RU"; Properties.Resources.Culture = new System.Globalization.CultureInfo(ConfigurationManager.AppSettings["Culture"]); }
private void Window_Loaded(object sender, RoutedEventArgs e) { if (this.IsWindows8) { InputPanelConfiguration cp = new InputPanelConfiguration(); IInputPanelConfiguration icp = cp as IInputPanelConfiguration; if (icp != null) { icp.EnableFocusTracking(); } } //if (this.IsWindows8 == false) //{ // KeyboardManager.StartOsk(); // ////KeyboardManager.LaunchOnScreenKeyboard(); //} }
private void MainWindow_Loaded(object sender, RoutedEventArgs e) { lnm.Content = ClassGlobalVar.Name; lnt.Content = ClassGlobalVar.nameTicket; lnu.Content = ClassGlobalVar.user; dispatcherTimer = new System.Windows.Threading.DispatcherTimer(); dispatcherTimer.Tick += new EventHandler(dispatcherTimer_Tick); dispatcherTimer.Interval = new TimeSpan(0, 0, 0, 1, 0); // dispatcherTimer.Start(); ClassBallance.opn(); //Windows 8 API to enable touch keyboard to monitor for focus tracking in this WPF application try { InputPanelConfiguration cp = new InputPanelConfiguration(); IInputPanelConfiguration icp = cp as IInputPanelConfiguration; if (icp != null) { icp.EnableFocusTracking(); } } catch { } foreach (Button bs in ClassETC_fun.FindVisualChildren <Button>(this)) { bs.Click += Button_Click; } xProduct.Focus(); ClassCustomerDisplay.hi(); status_message.Text += Environment.NewLine + "--------------------------------" + Environment.NewLine + "Caisse : " + ClassGlobalVar.nameTicket + Environment.NewLine + "Post : " + ClassGlobalVar.numberTicket + Environment.NewLine + "Nom d'usager : " + ClassGlobalVar.user + Environment.NewLine + Environment.NewLine + "--------------------------------" + Environment.NewLine + "La clé d'ouverture générale : " + ClassGlobalVar.TicketWindowG + Environment.NewLine + "La clé d'ouverture local : " + ClassGlobalVar.TicketWindow + Environment.NewLine; foreach (GridSplitter gs in ClassETC_fun.FindVisualChildren <GridSplitter>(this)) { gs.IsEnabled = ClassGlobalVar.gridModif; } }