728x90
반응형
▶ MainWindow.xaml
<Window x:Class="TestProject.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:s="clr-namespace:System;assembly=mscorlib"
Width="800"
Height="600"
Title="ListBox 엘리먼트 : ItemStringFormat 속성을 사용해 항목 문자열 포맷 설정하기"
FontFamily="나눔고딕코딩"
FontSize="16">
<Grid>
<ListBox
HorizontalAlignment="Center"
VerticalAlignment="Center"
Padding="10"
ItemStringFormat="MMMM d, yyyy">
<s:DateTime>2004/03/04</s:DateTime>
<s:DateTime>2004/08/09</s:DateTime>
<s:DateTime>2005/10/14</s:DateTime>
<s:DateTime>2005/04/08</s:DateTime>
</ListBox>
</Grid>
</Window>
728x90
반응형
'C# > WPF' 카테고리의 다른 글
[C#/WPF] StreamGeometry 클래스 : 호(Arc) 그리기 (0) | 2020.09.23 |
---|---|
[C#/WPF] DataTemplateSelector 엘리먼트 사용하기 (0) | 2020.09.22 |
[C#/WPF] GroupStyle 엘리먼트 : HeaderStringFormat 속성을 사용해 헤더 문자열 포맷 설정하기 (0) | 2020.09.22 |
[C#/WPF] Binding 태그 확장 : StringFormat 속성을 사용해 문자열 포맷 설정하기 (0) | 2020.09.22 |
[C#/WPF] MultiBinding 엘리먼트 : StringFormat 속성을 사용해 문자열 포맷 설정하기 (0) | 2020.09.22 |
[C#/WPF] ListBox 엘리먼트 : ItemStringFormat 속성을 사용해 항목 문자열 포맷 설정하기 (0) | 2020.09.22 |
[C#/WPF] Label 엘리먼트 : ContentStringFormat 속성을 사용해 컨텐트 포맷 문자열 설정하기 (0) | 2020.09.22 |
[C#/WPF] TabControl 엘리먼트 : ContentStringFormat 속성을 사용해 컨텐트 포맷 문자열 설정하기 (0) | 2020.09.22 |
[C#/WPF] Dispatcher 클래스 : CheckAccess 메소드를 사용해 메인 스레드 여부 구하기 (0) | 2020.09.21 |
[C#/WPF] EasingDoubleKeyFrame 엘리먼트 : EasingFunction 속성에서 CubicEase/BounceEase 객체 사용하기 (0) | 2020.09.20 |
[C#/WPF] EasingPointKeyFrame 엘리먼트 : EasingFunction 속성에서 CubicEase/BounceEase 객체 사용하기 (0) | 2020.09.20 |
댓글을 달아 주세요