Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You should add the resource into one of the control that is inside the <code>DataTemplate</code>, instead of in the <code>DataTemplate</code> itself:</p> <pre><code>&lt;DataTemplate x:Key="ContentDetail"&gt; &lt;StackPanel Orientation="Horizontal" Height="500" &gt; &lt;StackPanel.Resources&gt; &lt;Storyboard x:Key="StoryCallLogOn"&gt; &lt;ThicknessAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Margin)" Storyboard.TargetName="gridCallLog"&gt; &lt;EasingThicknessKeyFrame KeyTime="0" Value="0,0,10,23.04"/&gt; &lt;EasingThicknessKeyFrame KeyTime="0:0:0.6" Value="0,0,10,200"/&gt; &lt;/ThicknessAnimationUsingKeyFrames&gt; &lt;ThicknessAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Margin)" Storyboard.TargetName="borderCallLog"&gt; &lt;EasingThicknessKeyFrame KeyTime="0" Value="0,402,10,23.04"/&gt; &lt;EasingThicknessKeyFrame KeyTime="0:0:0.6" Value="0,225,10,23.04"/&gt; &lt;/ThicknessAnimationUsingKeyFrames&gt; &lt;/Storyboard&gt; &lt;/StackPanel.Resources&gt; &lt;Border Margin="10,5,0,10" BorderBrush="Transparent" CornerRadius="3" BorderThickness="1" Width="1050"&gt; &lt;StackPanel Margin="5,5,9,5" Orientation="Horizontal"&gt; &lt;dx:DXTabControl Width="850" Margin="5,5,0,0"&gt; &lt;dx:DXTabItem Header="Call Log"&gt; &lt;StackPanel&gt; &lt;dxg:GridControl x:Name="gridCallLog" Height="400" ItemsSource="{Binding ElementName=MainStack,Path=DataContext.CallLog}" dx:ThemeManager.ThemeName="Office2010Blue" Margin="0,0,10,0" SelectedItem="{Binding ElementName=MainStack,Path=DataContext.SelectedCallLog,UpdateSourceTrigger=PropertyChanged}" &gt; &lt;dxg:GridControl.Columns &gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload