Hi,
I'm having a CardView control with a custom item template + a custom edit template
In those template, when I'm adding a SfRating (read only in item template & modifiable in edit template), I'm having the following exception, at run time when editing:
An unhandled exception of type 'System.InvalidOperationException' occurred in PresentationCore.dll
Additional information: The specified Visual and this Visual do not share a common ancestor, so there is no valid transformation between the two Visuals.
Edit template:
<syncfusion:CardView.EditItemTemplate>
<DataTemplate>
<ListBox ScrollViewer.HorizontalScrollBarVisibility="Disabled">
<ListBoxItem>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Rating" VerticalAlignment="Center" />
<sfInput:SfRating
Value="{Binding Rating, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
ItemsCount="5"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Precision="Half"
ShowToolTip="True" />
</StackPanel>
</ListBoxItem>
</ListBox>
</DataTemplate>
</syncfusion:CardView.EditItemTemplate>
& the item template
<syncfusion:CardView.ItemTemplate>
<DataTemplate>
<ListBox ScrollViewer.HorizontalScrollBarVisibility="Disabled">
<ListBoxItem>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Rating" VerticalAlignment="Center"/>
<sfInput:SfRating
Value="{Binding Rating, Mode=OneWay}"
ItemsCount="5"
IsReadOnly="True"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Precision="Half" ShowToolTip="False" />
</StackPanel>
</ListBoxItem>
</ListBox>
</DataTemplate>
</syncfusion:CardView.ItemTemplate>