| WPF: Setting text through triggers - Bugs and Quirks in Sisulizer - Technical Support (You need to be registered at the forum to write) - .NET, Delphi, ... - Sisulizer Localization Tool Support |
| Author | Post |
|---|
| Posted: Fri Aug 27th, 2010 10:04 am |
|
|
bikedude
Member
| Joined: | Thu Aug 20th, 2009 |
| Location: | |
| Posts: | 79 |
| Status: |
Offline
|
|
A colleague wanted me to inquire about the following XAML code:
<TextBlock>
<TextBlock.Style>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="Text" Value="My base text" />
<Style.Triggers>
<DataTrigger Binding="{Binding Path=MyCondition}" Value="False">
<Setter Property="Text" Value="My custom text" />
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock> |
"My custom text" does not show up for translation. How can we solve this?
|
|
|