資源簡(jiǎn)介
WPF開發(fā)的用戶鍵盤支持復(fù)合按鍵
代碼片段和文件信息
using?HeBianGu.Product.UserControls.SystemKeyBoard;
using?System;
using?System.Collections.Generic;
using?System.Configuration;
using?System.Data;
using?System.Diagnostics;
using?System.Linq;
using?System.Threading.Tasks;
using?System.Windows;
namespace?HeBianGu.Product.KeyBoard
{
????///?
????///?App.xaml?的交互邏輯
????///?
????public?partial?class?App?:?Application
????{
????????public?App()
????????{
????????????DispatcherUnhandledException?+=?App_DispatcherUnhandledException;
????????????AppDomain.CurrentDomain.UnhandledException?+=?CurrentDomain_UnhandledException;
????????}
????????void?App_DispatcherUnhandledException(object?sender?System.Windows.Threading.DispatcherUnhandledExceptionEventArgs?e)
????????{
????????????Application.Current.Dispatcher.Invoke(()?=>?MessageBox.Show(e.Exception.Message));
????????????e.Handled?=?true;
????????}
????????void?CurrentDomain_UnhandledException(object?sender?UnhandledExceptionEventArgs?e)
????????{
????????????Exception?error?=?(Exception)e.Exceptionobject;
????????????Application.Current.Dispatcher.Invoke(()?=>?MessageBox.Show(“當(dāng)前應(yīng)用程序遇到一些問題,該操作已經(jīng)終止,請(qǐng)進(jìn)行重試,如果問題繼續(xù)存在,請(qǐng)聯(lián)系管理員“?“意外的操作“));
????????}
????????protected?override?void?onstartup(StartupEventArgs?e)
????????{
????????????Process?thisProc?=?Process.GetCurrentProcess();
????????????var?p?=?Process.GetProcessesByName(thisProc.ProcessName);
????????????if?(p.Length?>?1)
????????????{
????????????????Environment.Exit(0);
????????????????return;
????????????}
????????????KeyBoardWindow.ShowDefault(()=>?Environment.Exit(0));
????????}
????}
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-07-16?03:17??WPF-SystemKeyboard-master\
?????文件??????????66??2019-07-16?03:17??WPF-SystemKeyboard-master\.gitattributes
?????文件????????4994??2019-07-16?03:17??WPF-SystemKeyboard-master\.gitignore
?????目錄???????????0??2019-07-16?03:17??WPF-SystemKeyboard-master\Document\
?????文件??????875620??2019-07-16?03:17??WPF-SystemKeyboard-master\Document\屏幕鍵盤.gif
?????文件??????124919??2019-07-16?03:17??WPF-SystemKeyboard-master\Document\屏幕鍵盤.png
?????文件?????????368??2019-07-16?03:17??WPF-SystemKeyboard-master\README.md
?????目錄???????????0??2019-07-16?03:17??WPF-SystemKeyboard-master\Solution\
?????目錄???????????0??2019-07-16?03:17??WPF-SystemKeyboard-master\Solution\hebiangu\
?????文件????????2100??2019-07-16?03:17??WPF-SystemKeyboard-master\Solution\hebiangu\HeBianGu.Product.SystemKeyBoard.sln
?????目錄???????????0??2019-07-16?03:17??WPF-SystemKeyboard-master\Source\
?????目錄???????????0??2019-07-16?03:17??WPF-SystemKeyboard-master\Source\Application\
?????目錄???????????0??2019-07-16?03:17??WPF-SystemKeyboard-master\Source\Application\HeBianGu.Product.KeyBoard\
?????文件?????????182??2019-07-16?03:17??WPF-SystemKeyboard-master\Source\Application\HeBianGu.Product.KeyBoard\App.config
?????文件?????????353??2019-07-16?03:17??WPF-SystemKeyboard-master\Source\Application\HeBianGu.Product.KeyBoard\App.xaml
?????文件????????1702??2019-07-16?03:17??WPF-SystemKeyboard-master\Source\Application\HeBianGu.Product.KeyBoard\App.xaml.cs
?????文件????????3841??2019-07-16?03:17??WPF-SystemKeyboard-master\Source\Application\HeBianGu.Product.KeyBoard\FuncButtonControl.xaml
?????文件????????9286??2019-07-16?03:17??WPF-SystemKeyboard-master\Source\Application\HeBianGu.Product.KeyBoard\FuncButtonControl.xaml.cs
?????文件????????6331??2019-07-16?03:17??WPF-SystemKeyboard-master\Source\Application\HeBianGu.Product.KeyBoard\HeBianGu.Product.KeyBoard.csproj
?????目錄???????????0??2019-07-16?03:17??WPF-SystemKeyboard-master\Source\Application\HeBianGu.Product.KeyBoard\Image\
?????文件????????1281??2019-07-16?03:17??WPF-SystemKeyboard-master\Source\Application\HeBianGu.Product.KeyBoard\Image\Backspace.png
?????文件????????2522??2019-07-16?03:17??WPF-SystemKeyboard-master\Source\Application\HeBianGu.Product.KeyBoard\Image\按下.png
?????文件????????2728??2019-07-16?03:17??WPF-SystemKeyboard-master\Source\Application\HeBianGu.Product.KeyBoard\Image\按下1.png
?????文件????????2646??2019-07-16?03:17??WPF-SystemKeyboard-master\Source\Application\HeBianGu.Product.KeyBoard\Image\按下2.5.png
?????文件????????2626??2019-07-16?03:17??WPF-SystemKeyboard-master\Source\Application\HeBianGu.Product.KeyBoard\Image\按下2.png
?????文件????????3264??2019-07-16?03:17??WPF-SystemKeyboard-master\Source\Application\HeBianGu.Product.KeyBoard\Image\按下5.5.png
?????文件????????2525??2019-07-16?03:17??WPF-SystemKeyboard-master\Source\Application\HeBianGu.Product.KeyBoard\Image\按鈕1.png
?????文件????????2750??2019-07-16?03:17??WPF-SystemKeyboard-master\Source\Application\HeBianGu.Product.KeyBoard\Image\按鈕2.5.png
?????文件????????2777??2019-07-16?03:17??WPF-SystemKeyboard-master\Source\Application\HeBianGu.Product.KeyBoard\Image\按鈕2.png
?????文件????????3336??2019-07-16?03:17??WPF-SystemKeyboard-master\Source\Application\HeBianGu.Product.KeyBoard\Image\按鈕5.5.png
?????文件???????45342??2019-07-16?03:17??WPF-SystemKeyboard-master\Source\Application\HeBianGu.Product.KeyBoard\Image\按鈕間距.png
............此處省略33個(gè)文件信息
評(píng)論
共有 條評(píng)論