WPF TextBlock에 다중 바인딩으로 글자 표현하는 방법
Code/C#2019. 3. 11. 10:25
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | xmlns:p="clr-namespace:CLM.Properties" <Button VerticalAlignment="Top" Grid.Column="1" Style="{StaticResource ResourceKey=roundbutton}" Command="{Binding EVCommand_PolicyManageWindow}"> <ItemsControl Style="{StaticResource ResourceKey=CustomGrid}" > <Image Grid.Row="0" Source="../Resource/Images/Icons/MenuIcon/02.png" Style="{StaticResource ResourceKey=CustomImage}" /> <TextBlock Grid.Row="1" Style="{StaticResource ResourceKey=CustomTextBlock}" > <TextBlock.Text> <MultiBinding StringFormat="{}{0} {1}"> <Binding Source="{x:Static p:Resources.정책}" /> <Binding Source="{x:Static p:Resources.관리}" /> </MultiBinding> </TextBlock.Text> </TextBlock> </ItemsControl> </Button> | cs |
'Code > C#' 카테고리의 다른 글
WPF Combobox 선택 이벤트, old 값이 나올때 (0) | 2019.03.19 |
---|---|
WPF C#으로 UserControll을 바로 다이얼로그 화면으로 출력 하고 싶을때 (0) | 2019.03.12 |
WPF XAML로 다른 클래스 라이브러리에 있는 xaml 참조하는 방법 (0) | 2019.03.12 |
Mvvm이란 무엇인가 (0) | 2019.02.28 |
[WPF] DelegateCommand 사용법 (0) | 2019.02.20 |