This question is locked. New answers and comments are not allowed.
I'm using the databound JumpList where a background worker thread gets info from a web service which might contain a comment field. There is a textblock in the JumpList, comment, which has its visiblity set to collapsed when there isn't a comment and is visible when there is text. It starts off without text and collaspsed however when a comment arrives, it doesn't resize and show the comment.
The Jump List and its datatemplate:
<DataTemplate x:Key="DeviceDetailsTemplate"> <Wp7Client_UserControls:Device DataContext="{Binding}"/> </DataTemplate> <telerikDataControls:RadJumpList x:Name="DevicesJumpList" ItemTemplate="{StaticResource DeviceDetailsTemplate}"> <telerikDataControls:RadJumpList.GroupDescriptors> <telerikData:PropertyGroupDescriptor PropertyName="RoomName"/> </telerikDataControls:RadJumpList.GroupDescriptors> </telerikDataControls:RadJumpList>And here is the Device that is referenced by the Data Template:
<UserControl x:Class="Wp7Client.UserControls.Device" mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="160" d:DataContext="{d:DesignData /SampleData/DeviceSampleData.xaml}"> <Border x:Name="LayoutRoot" BorderBrush="Maroon" CornerRadius="4" BorderThickness="1"> <StackPanel Margin="-1"> <TextBlock Margin="0" Padding="0" Text="{Binding Name}" TextWrapping="Wrap" /> <Border BorderBrush="{Binding StateIndicatorColor}" BorderThickness="2"> <ProgressBar IsIndeterminate="{Binding IsBusy}" Height="4"/> </Border> <TextBlock x:Name="DeviceCategory" TextWrapping="Wrap" Text="{Binding CategoryName}" /> <Grid x:Name="DevicePanel" Visibility="Collapsed" Width="480" /> <TextBlock x:Name="Comment" Visibility="{Binding CommentVisibility, Converter={StaticResource BooleanToVisiblityConverter}}" TextWrapping="Wrap" Text="{Binding Comment}" Foreground="#FF461B0D"/> </StackPanel> </Border> </UserControl>It is possible to have the elements in the JumpList resize when elements within a stackpanel have their visiblity changed from collapsed to visible?
TIA,
George