분류 전체보기
-
[WPF] MutexC#/WPF 2024. 4. 17. 11:25
Mutex mutex = null; private void Duplicate_execution(string mutexName) { try { mutex = new Mutex(false, mutexName); } catch (Exception ex) { MessageBox.Show(ex.Message + "\n\n" + ex.StackTrace + "\n\n" + "Application Exiting…", "Exception thrown"); Application.Current.Shutdown(); } if (!mutex.WaitOne(0, false)) { MessageBox.Show($"{mutexName}Service already started.", "Error", MessageBoxButton.O..
-
-
-
[DX_WPF] HamburgerMenuDevExpress/DX_WPF 2024. 4. 15. 15:43
Content에 넣어주고CompactOverlayStateThreshold="NaN" 하면필때 Layout 조정 적용 됨. StackPanel로도 가능 MVVM Support TemplateSelector 따로 빼서 ResourceDirectory에 넣기. https://docs.devexpress.com/WPF/119474/controls-and-libraries/windows-modern-ui/hamburger-menu/mvvm-support WPF Hamburger Menu: MVVM Support | WPF Controls | DevExpress DocumentationThe Hamburger Menu allows you to implement the MVVM desi..
-
[WPF] System.Windows.FormsC#/WPF 2024. 4. 9. 11:52
https://stackoverflow.com/questions/72058558/how-can-i-add-system-windows-forms-to-wpf-application-when-adding-via-reference How can I add System.Windows.Forms to WPF application when adding via reference/Depenency doesn't work? Following every guide everywhere: Step 1: Step 2: it works! Huzzah! Except that it doesn't. Instead I get yellow triangles: This project is tiny for now because I only j..
-
[WPF] static MainC#/WPF 2024. 4. 9. 11:36
WPF 는 static Main 자동 생성. 임의 생성 방법. https://stackoverflow.com/questions/2694680/no-main-in-wpf No Main() in WPF? I am a beginner when it comes to programming but I was sure that one of the universal rules was that a program starts with Main(). I do not see one when I create a WPF project. Is Main() simply named stackoverflow.com Class Libary 프로젝트에서 Windows Application으로 실행하려는 경우