[카테고리:] WPF
-
How to Style a WPF Checkbox in a Simple Way
In this post, we will look at how to style a WPF Checkbox control in a simple way. Creating a Custom Style for Checkbox To create a custom style for Checkbox, we need to define a Style element in XAML with a key that we can use to apply the style to our Checkbox control.…
-
WPF DataConverter: bool to image, bool to visibility
WPF에서 데이터 컨버터(DataConverter)는 데이터 소스에서 UI 컨트롤로 전달되는 데이터의 형식을 변환하는 데 사용됩니다. 이번 글에서는 bool to image, bool to visibility 등 몇 가지 예시 코드를 통해 데이터 컨버터의 사용 방법을 알아보겠습니다. bool to image 데이터 컨버터 UI 컨트롤에서 이미지를 사용할 때, 데이터 소스에서 전달되는 데이터가 bool 형식일 경우 해당 데이터를 이미지로 변환하는 컨버터를 만들…