This is a migrated thread and some comments may be shown as answers.

Specified element is already the logical child of another element. Disconnect it first.

10 Answers 322 Views
TransitionControl
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 24 Aug 2010, 10:48 PM
Hi..
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

Sort by
0
George
Telerik team
answered on 27 Aug 2010, 02:38 PM
Hello Jon,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jon
Top achievements
Rank 1
answered on 27 Aug 2010, 03:41 PM
Hi..
I'm trying to do this in WPF...
any ideas?
thanks
0
George
Telerik team
answered on 31 Aug 2010, 03:17 PM
Hello Jon,

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.

Greetings,
George
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jon
Top achievements
Rank 1
answered on 31 Aug 2010, 04:24 PM
Hi..
I don't understand...
How can you use the Transition Control with the Tab or Panel ?
thanks again
0
George
Telerik team
answered on 01 Sep 2010, 12:52 PM
Hi Jon,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jon
Top achievements
Rank 1
answered on 01 Sep 2010, 12:55 PM
Thanks..
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
0
Miroslav Nedyalkov
Telerik team
answered on 06 Sep 2010, 09:47 AM
Hi Jon,

 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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jon
Top achievements
Rank 1
answered on 06 Sep 2010, 01:17 PM
When you click on a 'new' tab - tab changes or a diff panel is selected...

 have some cool effects when the current tab comes into view or when you switch panels or tabs.
0
Konstantina
Telerik team
answered on 09 Sep 2010, 01:01 PM
Hello Jon,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jon
Top achievements
Rank 1
answered on 09 Sep 2010, 02:44 PM
Great.. thanks...
I assume the same can be used for WPF
Tags
TransitionControl
Asked by
Jon
Top achievements
Rank 1
Answers by
George
Telerik team
Jon
Top achievements
Rank 1
Miroslav Nedyalkov
Telerik team
Konstantina
Telerik team
Share this question
or