BoldSign®Effortlessly integrate e-signatures into your app with the BoldSign® API. Create a sandbox account!
Hello,
I have a CardView which uses the following two StaticResources:
<Style x:Key="CardViewItemStyle" TargetType="{x:Type syncfusion:CardViewItem}">
<Setter Property="Header" Value="{Binding BeamID.IdealValue}"></Setter>
<Setter Property="Width" Value="400"/>
</Style>
<Style x:Key="Style1" TargetType="{x:Type syncfusion:CardView}" >
<Setter Property="ItemsPanel">
<Setter.Value>
<ItemsPanelTemplate>
<syncfusion:CardViewPanel Orientation="{Binding Path=Orientation, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type syncfusion:CardView}}}" />
</ItemsPanelTemplate>
</Setter.Value>
</Setter>
</Style>
The CardView
<syncfusion:CardView SelectedItem="{Binding SelectedBeam, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ItemsSource="{Binding Beams, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnSourceUpdated=True}" Grid.Row="1" IsEditing="True" Style="{StaticResource Style1}" ItemContainerStyle="{StaticResource CardViewItemStyle}" ShowHeader="False" Orientation="Horizontal" IsEnabled="{Binding ProtocolLoaded}">
... CardView Contents ...
</syncfusion:CardView>
This CardView does not show up in the MaterialDark Theme applied to the rest of the controls, Please let me know how to correct this.
Cheers,
Jordan
Hi Jonathan,
You can be able to achieve the “Setting Width Manually loses the Theme” requirement by using style based on theme in the sample. You can find the sample from the below link,
Sample: https://www.syncfusion.com/downloads/support/forum/172327/ze/CardViewIssue-1677142541io games
Please check the sample code and let us know your concerns. We are happy to assist you.
Regards,
Sudharsan
Thank you! Did it.