Xamarin.Forms UI Controls - Building the Logify Client App (Part 5)

Mobile Team Blog
21 November 2019

This is the fifth blog post in the "Building the Logify Client App" series. If you have not followed the series in its entirety, please use the following links to review our previous posts.

NOTE: At present, DevExpress Xamarin.Forms UI controls ship as part of our Universal Subscription. We expect to release a Xamarin-only product subscription in our v19.2 release cycle.

In our previous blog post, we detailed our four-tab layout and why we chose this UI metaphor for the Logify client app. To recap – though we prefer simple navigation options, complex apps often require more advanced navigation logic.

As you know, we used the DevExpress DrawerPage within the Logify client to deliver the best possible user experience. This control incorporates a navigation side menu panel and is a good option if you need to incorporate additional UI elements, such as folders or filter selectors.

Filter View – Our Implementation

Logify allows users to purchase multiple subscriptions and each subscription can include multiple development teams. An account holder can belong to single team within a given subscription or to multiple teams across multiple subscriptions.

As you can see in the screenshot above, the Logify Mobile client includes built-in filters to restrict incoming crash/exception report traffic based on subscription, team, app name, and report status. The reason for these filters is quite simple – without a way to filter information and restrict results by app and status, Logify’s report list would be overwhelming.

Of course, we could have created a user interface that allows users to apply filters within the results grid itself (without using the filter panel), but we felt that it’s best to apply to filter before data is displayed. This approach allows us to reduce HTTP traffic between server and client.

The application filter itself uses the DevExpress Xamarin DataGrid with a single DataTemplate column. The cell within the column consists of a Xamarin Forms grid with a couple of cells. These cells contain the app name and selection indicator.

The status filter uses Xamarin.Forms FlexLayout with BindableLayout for binding the status ItemTemplate. You can review the full markup using this link.

<?xml version="1.0" encoding="UTF-8"?>
  <Grid Grid.Row="0" HeightRequest="28" Margin="24,0" IsVisible="{Binding Source={x:Static vm:SubscriptionsViewModel.Instance}, Path=IsMultiItems}">
    <Label Grid.Column="0" Text="SUBSCRIPTION" FontAttributes="Bold"/>
    <controls:PickerView Grid.Column="1" Title="SUBSCRIPTION" ItemsSource="{Binding Source={x:Static vm:SubscriptionsViewModel.Instance}, Path=Items}"
SelectedItem="{Binding Source={x:Static vm:SubscriptionsViewModel.Instance}, Path=SelectedItem, Mode=TwoWay}"/>
  <BoxView Grid.Row="2" Color="{DynamicResource FiltersStatusItemBorderColor}"/>
  <StackLayout Grid.Row="3">
      <Label Grid.Row="0" Style="{StaticResource FilterLabelsBoldStyle}" FontAttributes="Bold" Text="APPLICATIONS"/>
        RowTapCommand="{Binding ApplicationTapCommand}"
        ItemsSource="{Binding Applications}">
                <Grid HeightRequest="30">
                    Text="{Binding Item.Name}"
                    TextColor="{Binding Item.Selected, Converter={StaticResource selectedToLabelColorConverter}}"/>
                    ForegroundColor="{Binding Item.Selected, Converter={StaticResource selectedToIconColorConverter}}"/>
      <BoxView Grid.Row="0" Color="{DynamicResource FiltersStatusItemBorderColor}"/>
      <Label Text="STATUS FILTER" FontAttributes="Bold"/>
      <ScrollView Grid.Row="2">
        <FlexLayout BindableLayout.ItemsSource="{Binding Statuses}">
            <DataTemplate x:DataType="vm:StatusInfo">
                Status="{Binding Status}"
                IsSelected="{Binding Selected}"
                SelectedChangedCommand="{Binding BindingContext.SelectedChangedCommand,
Source={x:Reference reportsFilterView}}"/>

DrawerPage – Our Implementation

The DevExpress DrawerPage control offers flexible appearance and size customization options for its UI elements. You can customize popover behavior, on-screen location (display the DrawerPage on the left, right, top, or bottom) and appearance (for example, DrawerPage allows you to enable shadow and customize its appearance). Additionally, our DrawerPage control looks much the same on both mobile platforms.

To use the DrawerPage, we first add the control to the DrawerReportsFilterView. We then set the DrawerContent and MainContent properties of the DrawerPage class instance. DrawerContent holds the contents of the slide drawer, and MainContent is responsible for main page content.

<?xml version="1.0" encoding="UTF-8"?>
    <views:ReportsFilterView x:Name="reportsFilterView" />
            <AbsoluteLayout HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
              <Label AbsoluteLayout.LayoutBounds="1,1,1,1" AbsoluteLayout.LayoutFlags="All" Text="REPORTS" FontAttributes="Bold" VerticalOptions="Center" HorizontalOptions="Center" />
              <StackLayout AbsoluteLayout.LayoutBounds="1,0.5,40,24" AbsoluteLayout.LayoutFlags="PositionProportional">
                  <TapGestureRecognizer Tapped="Handle_FilterButtonClicked" />
                <editors:IconView ImageSource="Filter.svg" ForegroundColor="{DynamicResource TitleIconColor}" WidthRequest="24" HeightRequest="24" HorizontalOptions="End">
                    <OnPlatform x:TypeArguments="Thickness" Android="0,0,16,0" iOS="0,0,4,0" />

DrawerPage Customization

As you might expect, we now need to customize the DrawerPage so it mirrors our design. We set DrawerPosition to the right side of the screen and specify DrawerBehavior (in our case, we need to push the contents of the main page to the side). We also need to specify DrawerWidth and DrawerContentHeight. You can review the full markup using this link.

In our next post, we’ll show you how we customized the app’s Report Detail view and how you can leverage our Xamarin Data Grid to deliver some amazing user experiences.

Application Source Code

For those who’ve been wondering...we will share the source code for the Logify Mobile client once we’ve completed this blog post series. Should you have any questions in the interim, please post your comments below.

FREE DevExpress Xamarin UI Controls

Deliver high-impact native mobile apps with our feature-rich Data Grid, Scheduler, Chart, TabView, Editors, and utility controls. Reserve your free copy today!
Awesome! I'm so looking forward to this application for its purpose and to be able to view and learn from the source code is even better! 
22 November 2019
Marcello Rutter (AKA Mr. Dev)
Marcello Rutter (AKA Mr. Dev)
Waiting for getting the source code for the Logify Mobile client, thank you!
12 December 2019
Julian Bobbett 1


Any news about the source code for the complete application? In August you wrote it would be released with 19.2. I've looked on GitHub but cannot find it.


2 February 2020

Please login or register to post comments.