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
995
display image in datacard
posted

Hi

I need to display an image located on the local drive within a datacard.

 

Here is my existing xaml

 

<

igDP:XamDataPresenter Name="myDataPresenter" Grid.Row="1" BindToSampleData="True" AutoFit="True">

   <igDP:XamDataPresenter.FieldSettings>

         <igDP:FieldSettings AllowRecordFiltering="True" FilterClearButtonVisibility="Visible" FilterOperandUIType="Combo" FilterOperatorDefaultValue="Contains" FilterStringComparisonType="CaseInsensitive" AllowEdit="False" AllowGroupBy="False" />

           </igDP:XamDataPresenter.FieldSettings>

           <igDP:XamDataPresenter.FieldLayoutSettings>

               <igDP:FieldLayoutSettings AutoGenerateFields="False"/>

           </igDP:XamDataPresenter.FieldLayoutSettings>

 <igDP:XamDataPresenter.FieldLayouts>

               <igDP:FieldLayout Key="myLayout">

                 <igDP:FieldLayout.Fields>

                       <igDP:Field Name="ExerciseTitle" Label="ExerciseTitle" Height="Auto" Width="240"/>

                       <igDP:Field Name="ExerciseText" Label="ExerciseText" Height="200" Width="240"/>

                       <igDP:Field Name="Difficulty" Label="Difficulty" Height="Auto" Width="240"/>

                       <igDP:Field Name="Tags" Label="Tags" Height="Auto" Width="240"/>

                       <igDP:Field Name="ExerciseID" Label="ExerciseID" Height="0" Width="0"/>

                   </igDP:FieldLayout.Fields>

               </igDP:FieldLayout>

           </igDP:XamDataPresenter.FieldLayouts>

 <igDP:XamDataPresenter.View>

               <igDP:CardView>

                   <igDP:CardView.ViewSettings>

                       <igDP:CardViewSettings AutoFitCards="HorizontallyAndVertically" HeaderPath="ExerciseID" ShouldCollapseEmptyCells="True" />

                   </igDP:CardView.ViewSettings>

               </igDP:CardView>

           </igDP:XamDataPresenter.View>

       </igDP:XamDataPresenter>

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello,

     

    Thank you for your post. I have been looking into it and I can suggest you see the sample from the Feature Browser under xamDataCards / Style / Custom Card Layout section, where it is show how to display image in the Control. Please let me know if this helps you or you need further assistance on this matter.

     

    Looking forward for your reply.

Children