Hello, first of all apologize for my bad English
There is a way that when you double-click in a card, does not increase the width of the cards?
attached are the screens before and after double-click
Hello,
Thank you for your post. I have been looking into your question and I have been trying to reproduce your issue without success. When I double-click on a card, its width does not change.
I am attaching the sample application(DataCardsWidthIssue.zip) what I have used for my tests. If possible, please modify it in order to meet exactly your scenario.
Looking forward to hearing from you.
I modified the following parameters:AutoFitCards = "Horizontally" Orientation = "Vertical" CardWidth = "100"
and changed the description of a header to: "A company that makes everything"
seems that the issue is when you double-click, automatically increases the width of the cards to fit the size of the header text
is there any way to block this behavior?
Hello Jafar,
I have been looking into your question and you can achieve the desired behavior by re-templating the DataRecordCellArea style. You can find the default styles in :
C:\Program Files (x86)\Infragistics\NetAdvantage 2013.1\WPF\DefaultStyles\DataPresenter\DataPresenterGeneric_Express.xaml
You can modify the style for the DataRecordCellArea like e.g. :
<Style TargetType="{x:Type igDP:DataRecordCellArea}">
….
<Setter Property="Template">
<igWindows:CardPanel>
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<ContentPresenter Grid.Row="0" x:Name="CellContent" Style="{TemplateBinding ForegroundStyle}" />
<DetailsControl Height="25" Grid.Row="1" />
</Grid>
</igWindows:CardPanel>
<Setter/>
</Style>
Please create a new thread for every new question different from the original one discussed in the thread.
Hi, I need to display details below the card when a user double clicks the card, I can increase the spacing between the cards vertically , is there any way to display my detail control below the card on which the user clicked, the detail control should cover the entire yinterspace between the cards in 2 rows ..
Thank you very much for your quick help
Now everything works as I wanted
Regards
Thank you for your feedback. I have been able to reproduce your scenario. The easiest way to prevent the resizing is to define a style for the ‘CardHeaderPresenter’ and to cancel the ‘PreviewMouseDoubleClick’ event like e.g. :
<Style TargetType="igDP:CardHeaderPresenter">
<EventSetter Event="PreviewMouseDoubleClick" Handler="PreviewMouseDoubleClick"></EventSetter>
…
private void PreviewMouseDoubleClick(object sender, MouseButtonEventArgs e)
{
e.Handled = true;
}
If you need any further assistance on this matter, feel free to ask.