Hi,
I've a question to the Fieldchooser (in my case of the XamDataCard).
1. My XamDataCard has three Fieldlayouts I've defined. If I open the Fieldchooser I see all the three Layout in the combobox at the top. What I want is, if I switch in the combobx to another layout, the layout of the underlying XamDataCard shall be changed also. How can I do this?
2. The Property XamDataCards.dataCard.FieldLayoutSettings.HeaderPrefixAreaDisplayMode takes no effect, if I set the value to HeaderPrefixAreaDisplayMode.FieldChooserButton. Is it possible to place a FieldChooserButton in a XamDataCard?
thanks and greets....Marco
The button which you need to add to the CardViewCard template is the following:
<Button Name="btnShowFieldChooser" Command="{x:Static igDP:DataPresenterCommands.ShowFieldChooser}" CommandTarget="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type igDP:XamDataCards}}}" Grid.Row="3">Show FieldChooser</Button>
Regards,
Ivan
Hi Ivan,
ok, I understand. Thank you for your answer!
Anybody ani idea to solve my first problem?
thanks and greets...
Marco
Hi Marco,
I'll try to answer your second question.
The HeaderPrefixArea is not visible in XamDataCards control. That is why HeaderPrefixAreaDisplayMode has no effect. But there is something you can do to show the FieldChooser. You can retemplate the DataCard itself to add a button to each card. Or you could retemplate the whole XamDataCards control and add a button there. In both cases specify a command binding to that button. You need the ShowFieldChooser command. Then if you click the button the field chooser should appear.
Hope this helps.