xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:context="clr-namespace:Util.Context;assembly=Util"
xmlns:business="clr-namespace:Business.Collections;assembly=Business"
xmlns:sf="http://schemas.syncfusion.com/wpf"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:enum="clr-namespace:Model.Enum;assembly=Model"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
Height="800" Width="1000"
Icon="/Cronometrarg;component/Images/IconoCronometrarg.ico"
WindowState="Maximized"
Loaded="Window_Loaded"
Closing="Window_Closing"
sf:LayoutControl.SetMetroMode="True">
<Style x:Key="myStyle" TargetType="sf:VirtualizingCellsControlChildFrame">
</Style>
...
Hi Diego,
Thank you for using Syncfusion products.
We have checked the reported issue with our sample but we are unable to reproduce the issue and it works fine in our end. Could you please check the name space and dlls are added properly in your project? We have also attached the sample and video for your reference,
VideoLink: http://www.syncfusion.com/downloads/support/directtrac/137224/VirtualizingIssue599575384.zip
Please let us know if you have any other queries.
Thank you,
Jai Ganesh S
Hi Diego,
Sorry for the inconvenience caused.
We have analyzed your query with your sample. In that you have used Grid.WPF and SfGrid.WPF dlls. These tow dlls having VirtualzingCellsControl and these controls namespace added in xmlns: sf="http://schemas.syncfusion.com/wpf". Hence the VirtualizingCellsControl is not displayed in intellisense. So could you please remove the unused dlls from the project to resolve this issue?
If you would like to use both the controls, you can refer the VirtualizingCellsControl namespace from different schema. Please refer the code snippet below,
Code Snippet [XAML]:
xmlns:SfGrid=http://schemas.syncfusion.com/wpf xmlns:Gdc=http://schemas.syncfusion.com/wpf
Window.Resources> <Style x:Name="SfGridStyle" TargetType="SfGrid:VirtualizingCellsControl"> <Setter Property="Background" Value="Red"/> </Style> <Style x:Name="GdcStyle" TargetType="Gdc:VirtualizingCellsControl"> <Setter Property="Background" Value="Blue" </Style> </Window.Resources> |
Please let us know if you need further assistance.
Thank you,
Jai Ganesh S
Hi Diego,
Sorry for the inconvenience caused.
We have analyzed your queries and please find the responses for your queries as follows:
Query 1: (The foreground property is not setted in my project)
As we updated in our last update, we are able to reproduce this issue when we load the SfDataGrid inside the DockingManager and we have created an incident under your account. We request you to follow up the incident for further updates regarding this issue. Please refer the following link:
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents
Query 2: (Other properties do not work, for example, Row Height.)
You can set the RowHeight in SfDataGrid by using RowHeight property:
Code snippet [Xaml]:
<sf:SfDataGrid x:Name="dgReaders" AutoGenerateColumns="False" RowHeight="30" ItemsSource="{Binding GDCSource}"/> |
Please let us know if you need further assistance.
Thank you,
Jai Ganesh S
Hi Soumyajit,
Thank you for the update.
Please let us know if you need further assistance on this.
Thank you,
Jai Ganesh S
Hello,
I am experiencing the same issue Diego experienced on May 28, 2015 07:00 PM.
I Have a project that reference both Syncfusion.Grid.WPF and Syncfusion.SfGrid.WPF and I try to use a style targetting the VirtualizingCellsControl.
I am using this version of the synfusion library : 19.3.0.43 .NET Core 3.1
The workaround proposed byJai Ganesh S (May 29, 2015 04:24 PM) was not successfull for me.
Here is my little test project.
Thank you for the help !
Nicolas
<Window x:Class="VirtualizingCells.MainWindow"
xmlns:syncfusion="clr-namespace:Syncfusion.UI.Xaml.Grid;assembly=Syncfusion.SfGrid.WPF"
Title="MainWindow" Height="450" Width="800">
<Window.Resources>
<!--Style for the main grid CMR-->
<Style x:Key="RowStyle" TargetType="syncfusion:VirtualizingCellsControl" >
<Style.Triggers>
<DataTrigger Binding="{Binding Path=StatusValue}" Value="True">
<Setter Property="Background" Value="Yellow"/>
<Setter Property="FontStyle" Value="Oblique"/>
</DataTrigger>
<DataTrigger Binding="{Binding Path=StatusValue}" Value="False">
<Setter Property="Background" Value="White"/>
</DataTrigger>
</Style.Triggers>
</Style>
<Style x:Key="alternatingRowStyle" TargetType="syncfusion:VirtualizingCellsControl" BasedOn="{StaticResource RowStyle}">
<Setter Property="Background">
<Setter.Value>
<SolidColorBrush Opacity="0.5" Color="Transparent" />
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Grid>
</Grid>
</Window> |
Hello Vijayarasan S ,
Thank you for the response, it works fine with this tips.
Have a nice day !
Regards,
Nicol