This question is locked. New answers and comments are not allowed.
I am using a DataTemplate that has a TextBlock defined with TextWrapping="Wrap" defined. When I test this datatemplate in a normal .XAML page it displays everything fine with the TextBlock wrapping text properly. When I use this datatemplate in a RadWindow none of the textblocks wrap text properly and just go off the screen.
I should also point out that I am calling the RadWindow from within a RadJumpList ItemTap.
DataTemplate:
RadWindow XAML:
Code behind that sets stuff:
I should also point out that I am calling the RadWindow from within a RadJumpList ItemTap.
DataTemplate:
<DataTemplate x:Name="ContentTemplate"> <Border Padding="10, 10, 10, 10"> <Grid Margin="0, 0, 0, 0"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid Grid.Column="0" Margin="0, 0, 0, 0"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <StackPanel Orientation="Vertical" Grid.Row="0" Margin="0, 0, 0, 0"> <StackPanel Orientation="Horizontal"> <Image Source="{Binding ImagePath}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="8, 0, 10, 0"/> <TextBlock Text="{Binding State}" FontSize="{StaticResource PhoneFontSizeMedium}" VerticalAlignment="Center" FontWeight="SemiBold" Margin="8, 0, 8, 0" Foreground="{Binding Foreground}"/> <Rectangle VerticalAlignment="Stretch" Width="1" Fill="{StaticResource PhoneSubtleBrush}" Margin="0, 3, 8, 3"/> <TextBlock Text="{Binding ProcessId}" FontSize="15" VerticalAlignment="Center" Margin="8, 0, 8, 0" Foreground="{StaticResource PhoneSubtleBrush}"/> </StackPanel> <TextBlock Text="{Binding Caption}" TextWrapping="Wrap" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" Margin="8, 8, 8, 5"/> <TextBlock Text="{Binding Server}" TextWrapping="Wrap" FontSize="15" VerticalAlignment="Center" Margin="8, 0, 8, 0"/> <TextBlock Text="{Binding Name}" FontSize="15" VerticalAlignment="Center" Margin="8, 0, 8, 0" Foreground="{StaticResource PhoneSubtleBrush}"/> <TextBlock Text="{Binding StartMode}" FontSize="15" VerticalAlignment="Center" Margin="8, 0, 8, 0" Foreground="{StaticResource PhoneSubtleBrush}"/> <TextBlock Text="{Binding StartName}" FontSize="15" VerticalAlignment="Center" Margin="8, 0, 8, 0" Foreground="{StaticResource PhoneSubtleBrush}"/> <TextBlock Text="{Binding PathName}" TextWrapping="Wrap" FontSize="15" VerticalAlignment="Center" Margin="8, 0, 8, 0" Foreground="{StaticResource PhoneSubtleBrush}"/> <TextBlock Text="{Binding Description}" Width="Auto" TextWrapping="Wrap" FontSize="15" VerticalAlignment="Center" Margin="10, 0, 10, 0" Foreground="{StaticResource PhoneSubtleBrush}"/> </StackPanel> </Grid> </Grid> </Border> </DataTemplate> RadWindow XAML:
<telerikPrimitives:RadWindow x:Name="radWindowServiceInfo" IsFullScreen="True"> <telerikPrimitives:RadWindow.ApplicationBarInfo> <telerikPrimitives:ApplicationBarInfo ButtonClick="radWindowAppBar_ButtonClick"> <telerikPrimitives:ApplicationBarButton IconUri="/Images/back.png" Text="Back" /> </telerikPrimitives:ApplicationBarInfo> </telerikPrimitives:RadWindow.ApplicationBarInfo> </telerikPrimitives:RadWindow> Code behind that sets stuff:
Private Sub radJumpList_ItemTap(sender As Object, e As Telerik.Windows.Controls.ListBoxItemTapEventArgs) Handles RadJumpList.ItemTap If Not radWindowServiceInfo.IsOpen Then Dim jumpList As RadJumpList = sender Dim animation As New RadScaleAndMoveAnimation With radWindowServiceInfo .IsFullScreen = True .IsAnimationEnabled = True .OpenAnimation = animation .CloseAnimation = animation.CreateOpposite .PlacementTarget = radJumpList End With If appSettings.GetServicesSlimSetting Then Dim selectedItem = CType(jumpList.SelectedItem, ServiceInfoSlim) With radWindowServiceInfo .Content = selectedItem .ContentTemplate = ContentTemplateSlim .IsOpen = True End With Else Dim selectedItem = CType(jumpList.SelectedItem, ServiceInfo) With radWindowServiceInfo .Content = selectedItem .ContentTemplate = ContentTemplate .IsOpen = True End With End If End If End Sub