I'm trying to use the Transition Control with the RadPanel.. but I get this error
Specified element is already the logical child of another element. Disconnect it first.
Any ideas what I'm doing wrong?
thanks
<Grid VerticalAlignment="Stretch" Grid.Row="1" Margin="3,10,3,3">
<telerik:RadTransitionControl x:Name="TransitionControl"
Grid.RowSpan="2" Grid.ColumnSpan="2" Grid.Row="1" Grid.Column="0"
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
Content="{Binding SelectedItem, ElementName=radPanelBar}"
Duration="10">
</telerik:RadTransitionControl>
<Border BorderBrush="#000000" BorderThickness="1" Background="#d5d8dc" Margin="0 0 0 0">
<telerik:RadPanelBar VerticalAlignment="Stretch" x:Name="radPanelBar" telerikControls:StyleManager.Theme="Windows7" ExpandMode="Multiple">
<telerik:RadPanelBarItem IsExpanded="True" BorderBrush="#FF000019">
<telerik:RadPanelBarItem.Header>
<StackPanel Orientation="Horizontal" Margin="0 ,-3,0,0">
<Image Source="/CRM;component/Images/clipboard.png" Margin="0,2,0,0" Height="32" Width="32" />
<TextBlock Text="Training Sheet" FontFamily="Verdana" Foreground="Blue" FontSize="14" Margin="5 4 5 5" />
</StackPanel>
</telerik:RadPanelBarItem.Header>
10 Answers, 1 is accepted
When you bind the Content of RadTransitionControl to a SelectedItem of ItemsControl, this means that RadTransitionControl will try to place the SelectedItem in its Context and this item will have two references to two different controls, which is not supported in Silverlight framework.
Please do not hesitate to contact us if you require any further information.
Kind regards,George
the Telerik team
I'm trying to do this in WPF...
any ideas?
thanks
This is not supported in WPF, neither. It's framework limitation, too.
I would suggest you to get the selected item using Selected event handler of RadPanelBar control. Then, you could clone the selected RadPanelBarItem using XamlWriter and pass the cloned object to the Context of the transition control.
I hope this helps! Please do not hesitate to contact us if you require any further information.
George
the Telerik team
I don't understand...
How can you use the Transition Control with the Tab or Panel ?
thanks again
Attached you can find a sample that illustrates the use of XamlWriter. I hope this helps.
As long I am not quite sure that I understand what you want to achieve, I will ask you for your feedback. Let me know if this sample suits your needs. If it doesn't, please, describe your scenario in details.
I will be glad to assist you further.
Kind regards,
George
the Telerik team
What I'm try to do is - have some cool effects when the current tab comes into view or when you switch panels or tabs.
thanks
Could you please give us some more details about these effects? If we know what you will need to do will be able to assist you better to achieve it.
Best wishes,Miroslav Nedyalkov
the Telerik team
have some cool effects when the current tab comes into view or when you switch panels or tabs.
You could refer to this blog post, which I think is exactly what you are trying to achieve.
Please let us know if you need further help.
Sincerely yours,
Konstantina
the Telerik team
I assume the same can be used for WPF