IWinPhoneRefreshCustomizer.BarColor Property

Specifies the color of the WinPhone refreshing bar.

Namespace: DevExpress.Mobile.DataGrid.Theme

Assembly: DevExpress.Mobile.Grid.v18.1.dll

Declaration

Color BarColor { get; set; }
Property BarColor As Color

Property Value

Type Description
Xamarin.Forms.Color

A Xamarin.Forms.Color object specifying the color of the WinPhone refreshing bar.

Examples

This example demonstrates how to customize a color of an indicator (icon or bar) shown when GridControl refreshes cell data.

Grid_RefreshingIndicators

To change the color of a refresh indicator, perform the steps below.

  1. Activate a grid's pull-to-refresh functionality. For this purpose, assign true to the GridControl.IsPullToRefreshEnabled property.
  2. Use the ThemeBase class's properties to access customizers used to change an indicator's color on different mobile platforms. In this example, the following customizers are used.

  3. Apply the customization by calling the ThemeManager.RefreshTheme method.
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" 
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 
             x:Class="RefreshCustomizers.MainPage"
             xmlns:dxGrid="clr-namespace:DevExpress.Mobile.DataGrid;assembly=DevExpress.Mobile.Grid.v15.2">
      <ContentPage.Padding>
        <OnPlatform x:TypeArguments="Thickness" iOS="0, 20, 0, 0" />
    </ContentPage.Padding>

    <dxGrid:GridControl x:Name="grid" ItemsSource="{Binding Orders}" 
                         NewItemRowVisibility = "false" 
                        SortMode = "Multiple" AutoFilterPanelVisibility="true"
                        IsPullToRefreshEnabled = "true" >
         <dxGrid:GridControl.Columns>
             <dxGrid:TextColumn FieldName="Product.Name" Caption = "Product" Width = "170"
                                SortOrder = "Descending" SortIndex = "0"/>
             <dxGrid:NumberColumn FieldName="Product.UnitPrice" Caption = "Price" DisplayFormat="C0"/>
             <dxGrid:NumberColumn FieldName="Quantity" 
                                  SortOrder = "Ascending" SortIndex = "1"/>
             <dxGrid:NumberColumn FieldName="Total" 
                                  UnboundType="Integer" UnboundExpression="[Quantity] * [Product.UnitPrice]" 
                                  DisplayFormat="C0" IsReadOnly="True"/>
             <dxGrid:DateColumn FieldName="Date" DisplayFormat="d" />
             <dxGrid:SwitchColumn FieldName="Shipped"/>
         </dxGrid:GridControl.Columns>

         <dxGrid:GridControl.GroupSummaries>
            <dxGrid:GridColumnSummary FieldName="Total" Type="Max"/>
        </dxGrid:GridControl.GroupSummaries>

        <dxGrid:GridControl.TotalSummaries>
            <dxGrid:GridColumnSummary FieldName="Total" Type="Sum" 
                                      DisplayFormat= "Total: {0:C0}"/>
        </dxGrid:GridControl.TotalSummaries>
    </dxGrid:GridControl>
</ContentPage>

See Also