Hi,
In IG WPF 15.1, the merged cells is missing in attachment. I must say that's make user confused. How can i make the merged cells like IG WPF 12.1 style which have black border and white background?
Hi Brandon,
If you would like to modify the IG theme, changing the default style settings for that it will be the correct approach. Thank you for sharing. It will be helpful for other community members as well.
Hi Maria,
I've found merged cells style in themes files. So i removed the background and set the border thickness to "1". It's works correctly.
<!-- ********************************* MergedContentControl Style ********************************* --> <Style TargetType="igPrim:MergedContentControl"> <Setter Property="FontSize" Value="11" /> <Setter Property="Foreground" Value="{StaticResource MergedContentCellForegroundBrush}" /> <Setter Property="BorderThickness" Value="1" /> <Setter Property="Padding" Value="4" /> <Setter Property="HorizontalContentAlignment" Value="Left" /> <Setter Property="VerticalContentAlignment" Value="Top" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="igPrim:MergedContentControl"> <Border x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"> <Grid> <ContentPresenter VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" /> </Grid> </Border> </ControlTemplate> </Setter.Value> </Setter> </Style>
Thanks anyway.
Thanks for you reply. Yes ,this default style is nearly what i want. but i still want to using black themes in my solution.
Like below snapshot, this is IG WPF 12.1 style. Can you help me update 15.1 themes file to achieve it?
Thanks,
Brandon
Hello Brandon,
It seems that on the screenshot you have shared the XamGrid control has the IG theme set. This will result in having a grey background for the merged cells by default. If you are using the default theme instead the cells has white background and darker borders which seems to be the behavior you are trying to achieve. In the attached sample project there is a line that set the IG theme which is commented. You can test setting the theme and removing it by comment in and out the line and let me know if the default theme is what you are looking for.