전체 글300 C# 코드 스타일 옵션 변경 MSVS 2019를 사용하는데 Interface 자동 생성을 하면 람다 스타일로 생성이 된다. 람다를 잘 모르거나 직관적으로 소스를 보고 싶을 때 람다 스타일은 눈에 잘 익지 않는 개발자들이 있을 것이다. 이럴 경우 이 부분을 옵션으로 변경을 할 수가 있다. 도구 - 옵션 - 텍스트 편집기 - C# - 코드 스타일 Tools - Option - Text Editor - C# - Code Style 1) 기본 설정 상태 아래와 같이 '메서드에 식 본문 사용' 기본 설정이 '가능한 경우'로 되어 있다. 이렇게 되어 있으면 람다로 생성이 된다. 2) 일반 표시 방식으로 변경 '안 함'으로 변경을 하면 람다로 표시되지 않는다. 예문이 바로 아래에 표시가 되니 사용자에 맞게 수정을 해서 사용하면 된다. 아직 나도.. 2022. 3. 14. Telerik RadRibbonView Example (리본바 메뉴 예제) Telerik을 리본바 메뉴 윈도우를 만들어 보았다. 홈페이지의 Getting Started를 보면 쉽게 만들수 있지만 나처럼 WPF, Telerik 초보자를 위해서 만드는 과정을 정리해 본다. 잊으면 나중에 다시 볼 수 있도록~ https://docs.telerik.com/devtools/wpf/controls/radribbonview/gettingstarted WPF RibbonView | Getting Started | Telerik UI for WPF This tutorial will walk you through the creation of a sample application that contains RadRibbonView. In order to use the RadRibbonView con.. 2022. 1. 19. WPF 툴바 만들기 1. 툴바 Document https://docs.telerik.com/devtools/wpf/controls/radtoolbar/getting-started WPF ToolBar | Getting Started | Telerik UI for WPF docs.telerik.com 2. Toolbar에 이미지를 넣기 샘플 코드 3. Resouces Image 화면에 표시하기 위해서 icon 이미지의 속성의 빌드 작업에 'Resouece'가 있어야 화면에 표시가 된다. 맨 처음에는 '없음'으로 되어져 있다. 2021. 12. 26. Telerik Menu 추가 1. Telerik Menu 추가 Document https://docs.telerik.com/devtools/wpf/controls/radmenu/getting-started#add-radmenu WPF Menu | Getting Started | Telerik UI for WPF docs.telerik.com Document를 확인해 보니 메뉴를 추가할 때 Blend를 사용한다. Blend를 사용해본 적이 없는데 관련 내용은 MSDN을 보고 참고 했다. https://docs.microsoft.com/ko-kr/visualstudio/xaml-tools/creating-a-ui-by-using-blend-for-visual-studio?view=vs-2022 Blend for Visual Studio.. 2021. 12. 21. Hierarchical RadGridView Example https://docs.telerik.com/devtools/wpf/controls/radgridview/hierarchical-gridview/basic-hierarchies WPF DataGrid | Basic Hierarchies | Telerik UI for WPF Controls / RadGridView / Hierarchical GridView RadGridView allows you to display hierarchical data in the form of nested grid views. To do so you have to define a table definition for each subset of data you want to display. Such a definition ca.. 2021. 9. 2. RadTreeListView Example https://docs.telerik.com/devtools/wpf/controls/radtreelistview/radtreeliestview-getting-started#radtreelistview-vs-radgridview WPF TreeListView | Getting Started | Telerik UI for WPF This article will guide you through the process of creating a sample application with RadTreeListView. You should use the RadTreeListView control to display hierarchical data in a tabular format. In order to achieve.. 2021. 9. 2. C# Idle 상태 체크 using System; using System.Runtime.InteropServices; namespace BlahBlah { public static class IdleTimeDetector { [DllImport("user32.dll")] static extern bool GetLastInputInfo(ref LASTINPUTINFO plii); public static IdleTimeInfo GetIdleTimeInfo() { int systemUptime = Environment.TickCount, lastInputTicks = 0, idleTicks = 0; LASTINPUTINFO lastInputInfo = new LASTINPUTINFO(); lastInputInfo.cbSize = (.. 2021. 7. 31. WPF MVVM TextBox KeyDown Event WPF로 MVVM 패턴을 이용해서 TextBox의 KeyDown 이벤트를 확인해서 검색이나 다른 기능을 실행 시키기 위해서 처리하는 방법을 검색해서 만들어 보았다. 프로젝트에 Notifier.cs와 DelegateCommnad.cs를 추가한다. ViewModel.cs를 만들어 DataContext에 연결한다. MainWindow.xaml에는 TextBox 하나를 추가했다. http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc=" MainWindow.xaml.cs에서 DataContext 연결을 한다. public partial c.. 2021. 7. 20. WPF TextBox에 float 바인딩 해서 소수점이 입력되지 않는 문제 WPF를 이용해서 TextBox에 Float이나 Double 값을 입력 하려고 했는데 소스점이 입력되지 않는 문제가 확인되었다. 이것 저것 검색한 결과 아래와 같은 정보를 찾아서 수정을 진행했다. https://stackoverflow.com/questions/14600842/bind-textbox-to-float-value-unable-to-input-dot-comma/14600905#14600905 Bind textbox to float value. Unable to input dot / comma When I try to input a DOT or a COMMA in a textbox, for example 1.02 or 83,33 the textbox prevents me to input such.. 2021. 7. 9. 이전 1 ··· 6 7 8 9 10 11 12 ··· 34 다음