ItemsControl inside of DockPanel

2 posts, 0 answers
  1. Tyler
    Tyler avatar
    32 posts
    Member since:
    Jun 2011

    Posted 24 Jun 2011 Link to this post

    Can the ItemsControl work inside of the DockPanel ?   I'm trying to have the dice animimate a doc from the left side to the right when the "Saved" property changes.

    <telerikPrimitives:RadDockPanel x:Name="radDockPanel" LastChildFill="True" Background="Red"
                                               IsAnimated="True" AnimationDuration="0:0:0.5">
                   <ItemsControl ItemsSource="{Binding CurrentDice}" HorizontalAlignment="Left">
                               <Button Width="100" Height="100" BorderThickness="0" Background="{StaticResource diceBrush}" 
                                       Tag="{Binding Index}"  Content="{Binding FaceValue, Converter={StaticResource diceConverter}}"
                                       telerikPrimitives:RadDockPanel.Dock="{Binding Saved, Converter={StaticResource dockConverter}}">
                                       <i:EventTrigger EventName="Click">
                                           <cmd:EventToCommand Command="{Binding Source={StaticResource vm}, Path=SaveDiceCommand }"
                                       PassEventArgsToCommand="true" />
  2. Deyan
    Deyan avatar
    2026 posts

    Posted 30 Jun 2011 Link to this post

    Hello Tyler,

    Generally you should be able to put an ItemsControl in a DockPanel. If you, however, experience any difficulties in doing so, we would kindly like to ask you to prepare a sample project that demonstrates the scenario so that we can directly take a look at it and see how we can help.

    Please note that you will have to open a new support ticket in order to be able to attach your project.

    Thanks for your time.

    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. DevCraft banner
Back to Top