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

11 posts, 0 answers
  1. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 24 Aug 2010 Link to this post

    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>

     

  2. George
    Admin
    George avatar
    1332 posts

    Posted 27 Aug 2010 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 27 Aug 2010 Link to this post

    Hi..
    I'm trying to do this in WPF...
    any ideas?
    thanks
  5. George
    Admin
    George avatar
    1332 posts

    Posted 31 Aug 2010 Link to this post

    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
  6. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 31 Aug 2010 Link to this post

    Hi..
    I don't understand...
    How can you use the Transition Control with the Tab or Panel ?
    thanks again
  7. George
    Admin
    George avatar
    1332 posts

    Posted 01 Sep 2010 Link to this post

    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
  8. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 01 Sep 2010 Link to this post

    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
  9. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 06 Sep 2010 Link to this post

    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
  10. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 06 Sep 2010 Link to this post

    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.
  11. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 09 Sep 2010 Link to this post

    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
  12. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 09 Sep 2010 Link to this post

    Great.. thanks...
    I assume the same can be used for WPF
Back to Top
UI for WPF is Visual Studio 2017 Ready