Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
165
Use XamDataCards to present nested content
posted

I want to replace the default nested content with datacards. Is this possible? how do I do the binding?

 

I have modified this bit so far from the default template "DataPresenterGeneric_Express.xaml"

<Grid

x:Name="PART_NestedContentSite"

    RenderTransform="{TemplateBinding FixedNearElementTransform}"

Grid.Row="1"

Grid.Column="1"

Visibility="Collapsed">

 

    <ContentControl

x:Name="ncpVisual"

        RenderTransform="{TemplateBinding ScrollableElementTransform}"

Opacity="0"

TextBlock.Foreground="{DynamicResource {ComponentResourceKey {x:Type igDP:XamDataGrid}, LabelForeground}}"

Margin="{TemplateBinding Padding}">

        <StackPanel>

            <Label Content="Easy" />

            <igDP:XamDataCards BindToSampleData="True" />

        </StackPanel>

    </ContentControl>

</Grid>

 

But I can't figure out what to bind the XamDataCards to? . . .