diff options
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/NotificationItems/MessageNotificationItemView.xaml')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/NotificationItems/MessageNotificationItemView.xaml | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/NotificationItems/MessageNotificationItemView.xaml b/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/NotificationItems/MessageNotificationItemView.xaml index b049dc108..fa26bce83 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/NotificationItems/MessageNotificationItemView.xaml +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/NotificationItems/MessageNotificationItemView.xaml @@ -49,7 +49,18 @@ </Style> </touch:TouchIcon.Style> </touch:TouchIcon> - <TextBlock VerticalAlignment="Center" Margin="10 0 0 0" Text="{Binding Message}"></TextBlock> + <TextBlock VerticalAlignment="Center" Margin="10 0 0 0" Text="{Binding Message}" TextTrimming="CharacterEllipsis"> + <TextBlock.Style> + <Style TargetType="TextBlock"> + <Setter Property="TextWrapping" Value="NoWrap"></Setter> + <Style.Triggers> + <DataTrigger Binding="{Binding IsExpanded}" Value="True"> + <Setter Property="TextWrapping" Value="Wrap"></Setter> + </DataTrigger> + </Style.Triggers> + </Style> + </TextBlock.Style> + </TextBlock> </DockPanel> </ContentControl> </UserControl> |
