본문 바로가기

전체 글280

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.
WPF 체크박스 글자 색 변경 체크박스의 글자는 아래와 같이 내용과 같은 방식으로 추가를 한다. 색상은 Attribute 중의 Foreground를 이용한다. 내용 선택 글자색은 흰색으로 되고 글자 내용은 '내용 선택'으로 처리가 된다. 2021. 6. 7.
WPF 동적으로 Margin 변경 버튼이나 Grid 등의 Margin을 동적으로 변경하는 방법 btn.Margin = new System.Windows.Thickness{ Left = 10 }; 또는 아래와 같이 btn.Margin = new System.Windows.Thickness{ Left = 10, Top = 0, Right = 10, Bottom = 0 }; https://docs.microsoft.com/ko-kr/dotnet/desktop/wpf/advanced/how-to-set-margins-of-elements-and-controls?view=netframeworkdesktop-4.8 2021. 6. 7.