private void MainMenuType_MouseClick(object sender, MouseEventArgs e) { string strKeybrd = @"C:\Program Files\Common Files\microsoft shared\ink\TabTip.exe"; _touchKyBrd = Process.Start(strKeybrd); //System.Diagnostics.Process.Start(strKeybrd); //System.Diagnostics.Process.Start("osk.exe"); myPaint.ImportText("New", new FontFamily("Microsoft YaHei UI")); //new FontFamily(FontTypeCB.SelectedItem.ToString()); PaintMenuPnl.Children.Remove(myMainMenu); PaintMenuPnl.Children.Add(myTypeMenu); BackImgPnl.Visibility = System.Windows.Visibility.Visible; AlignImgPnl.Visibility = System.Windows.Visibility.Visible; myTypeMenu.SetFocus(); }
private void AddImgBtn_MouseDown(object sender, MouseButtonEventArgs e) { string tmpStr = GetString(TypeEB); myPaint.ImportText(tmpStr, TypeEB.FontFamily); }