Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #24251 |

    Hi all,
    Sorry about the principant question..
    But how do I apply a theme to the DataGridControl?
    O would like to use the ones inside the DataGrid Assembly like Luna and others.
    Thanks for your time.
    Ricardo

    Imported from legacy forums. Posted by Ricardo (had 480 views)

    User (Old forums)
    Member
    Post count: 23064

    Ricardo, you can do it 3 ways:
    1. Set the theme in definition of DataGridControl. Ex:
    <xcdg:DataGridControl x:Name=”OrdersGrid”
    ItemsSource=”{Binding Source={StaticResource cvs_orders}}”
    View=”CardView.Aero.NormalColor”/>

    2. Set theme in View Definition:
    <xcdg:DataGridControl x:Name=”OrdersGrid”
    ItemsSource=”{Binding Source={StaticResource cvs_orders}}”>
    <xcdg:DataGridControl.View>
    <xcdg:CardView>
    <xcdg:CardView.Theme>
    <xcdg:AeroNormalColorTheme/>
    </xcdg:CardView.Theme>
    </xcdg:CardView>
    </xcdg:DataGridControl.View>
    </xcdg:DataGridControl>

    3. Create a style for your DataGridControl:
    <Style TargetType=”{x:Type xcdg:TableView}”>
    <Setter Property=”GroupLevelIndicatorWidth” Value=”20″/>
    <Setter Property=”HorizontalGridLineThickness” Value=”2″/>
    <Setter Property=”HorizontalGridLineBrush” Value=”{DynamicResource Brush_1_005}”/>
    <Setter Property=”Theme” Value=”Luna.Metallic”/>
    <Setter Property=”ShowRowSelectorPane” Value=”False”/>
    <Setter Property=”VerticalGridLineThickness” Value=”0″/>
    </Style>

    Good luck! Lena

    Imported from legacy forums. Posted by Lena (had 2656 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.