<commit_before>﻿<UserControl
    x:Class="Kliva.Controls.ActivityDetailControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Kliva.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:maps="using:Windows.UI.Xaml.Controls.Maps"
    xmlns:converters="using:Kliva.Converters"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400"
    DataContext="{Binding ActivityDetail, Source={StaticResource Locator}}">

    <UserControl.Resources>
        <converters:DistanceUnitToStringConverter x:Key="DistanceUnitToStringConverter" />
        <converters:SpeedUnitToStringConverter x:Key="SpeedUnitToStringConverter" />
        <converters:SecondsToTimeStringConverter x:Key="SecondsToTimeStringConverter" />
    </UserControl.Resources>
    
    <Grid>
        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup x:Name="VisualStateGroup">
                <VisualState x:Name="Mobile">
                    <VisualState.StateTriggers>
                        <AdaptiveTrigger MinWindowWidth="320" />
                    </VisualState.StateTriggers>
                    <VisualState.Setters>
                        <Setter Target="ActivityDetailCommandBar.Visibility" Value="Collapsed" />
                    </VisualState.Setters>
                </VisualState>
                <VisualState x:Name="Desktop">
                    <VisualState.StateTriggers>
                        <AdaptiveTrigger MinWindowWidth="720" />
                    </VisualState.StateTriggers>
                    <VisualState.Setters>
                        <Setter Target="ActivityDetailCommandBar.Visibility" Value="Visible" />
                    </VisualState.Setters>
                </VisualState>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>
        <RelativePanel>
            <TextBlock x:Name="ActivityName"
                       Text="{x:Bind ViewModel.SelectedActivity.Name, Mode=OneWay}"
                       TextWrapping="WrapWholeWords" MaxLines="2"
                       Margin="10,0,10,0"
                       RelativePanel.AlignTopWithPanel="True" RelativePanel.AlignLeftWithPanel="True" RelativePanel.AlignRightWithPanel="True" />
            
            <maps:MapControl x:Name="ActivityMap"
                             Margin="0,10,0,10"
                             Height="225"
                             RelativePanel.Below="ActivityName"
                             RelativePanel.AlignLeftWithPanel="True" RelativePanel.AlignRightWithPanel="True" />

            <CommandBar x:Name="ActivityDetailCommandBar"
                        Style="{StaticResource CommandBarWithoutMoreStyle}"
                        RelativePanel.Below="ActivityMap"
                        RelativePanel.AlignLeftWithPanel="True" RelativePanel.AlignRightWithPanel="True">
                <CommandBar.Content>
                    <StackPanel Orientation="Horizontal">
                        <AppBarButton Icon="Like"
                                      Visibility="{x:Bind ViewModel.SelectedActivity.HasKudoed, Mode=OneWay, Converter={StaticResource InverseBooleanToVisibilityConverter}}"
                                      Command="{x:Bind ViewModel.KudosCommand}"/>
                        <AppBarButton Icon="Message" />
                    </StackPanel>
                </CommandBar.Content>
            </CommandBar>
            <Pivot x:Name="ActivityPivot"
                   RelativePanel.Below="ActivityDetailCommandBar"
                   RelativePanel.AlignLeftWithPanel="True" RelativePanel.AlignRightWithPanel="True" >
                <PivotItem x:Name="StatisticsPivot" Header="statistics">
                    <RelativePanel>
                        <!-- DISTANCE BLOCK -->
                        <TextBlock x:Name="DistanceLabelTextBlock"
                                   Text="distance"
                                   MinWidth="125"
                                   RelativePanel.AlignTopWithPanel="True"
                                   RelativePanel.AlignLeftWithPanel="True"/>
                        <TextBlock x:Name="DistanceFormattedTextBlock"
                                   MinWidth="125"
                                   RelativePanel.RightOf="DistanceLabelTextBlock">
                            <Run Text="{x:Bind ViewModel.SelectedActivity.DistanceFormatted, Mode=OneWay}" />
                            <Run Text="{x:Bind ViewModel.SelectedActivity.DistanceUnit, Mode=OneWay, Converter={StaticResource DistanceUnitToStringConverter}}"/>
                        </TextBlock>
                        <TextBlock x:Name="DistanceFormattedLabelTextBlock"
                                   Text="total distance"
                                   RelativePanel.Below="DistanceFormattedTextBlock"
                                   RelativePanel.AlignLeftWith="DistanceFormattedTextBlock" />

                        <!-- SPEED BLOCK -->
                        <TextBlock x:Name="SpeedLabelTextBlock"
                                   Text="speed"
                                   Margin="0,20,0,0"
                                   RelativePanel.Below="DistanceFormattedLabelTextBlock"
                                   RelativePanel.AlignLeftWithPanel="True" />
                        <TextBlock x:Name="SpeedAverageFormattedTextBlock"
                                   Margin="0,20,0,0"
                                   MinWidth="125"
                                   RelativePanel.RightOf="SpeedLabelTextBlock"
                                   RelativePanel.AlignLeftWith="DistanceFormattedTextBlock"
                                   RelativePanel.AlignTopWith="SpeedLabelTextBlock">
                            <Run Text="{x:Bind ViewModel.SelectedActivity.AverageSpeedFormatted, Mode=OneWay}" />
                            <Run Text="{x:Bind ViewModel.SelectedActivity.SpeedUnit, Mode=OneWay, Converter={StaticResource SpeedUnitToStringConverter}}" />
                        </TextBlock>
                        <TextBlock x:Name="SpeedAverageFormattedLabelTextBlock"
                                   Text="average"
                                   RelativePanel.Below="SpeedAverageFormattedTextBlock"
                                   RelativePanel.AlignLeftWith="SpeedAverageFormattedTextBlock" />

                        <TextBlock x:Name="SpeedMaxFormattedTextBlock"                                   
                                   Margin="0,20,0,0"                                   
                                   RelativePanel.RightOf="SpeedAverageFormattedTextBlock"
                                   RelativePanel.AlignTopWith="SpeedLabelTextBlock">
                            <Run Text="{x:Bind ViewModel.SelectedActivity.MaxSpeedFormatted, Mode=OneWay}" />
                            <Run Text="{x:Bind ViewModel.SelectedActivity.SpeedUnit, Mode=OneWay, Converter={StaticResource SpeedUnitToStringConverter}}" />
                        </TextBlock>
                        <TextBlock x:Name="SpeedMaxFormattedLabelTextBlock"
                                   Text="max"
                                   Margin="0,0,0,0"
                                   RelativePanel.Below="SpeedMaxFormattedTextBlock"
                                   RelativePanel.AlignLeftWith="SpeedMaxFormattedTextBlock" />
                        
                        <!-- TIME BLOCK -->
                        <TextBlock x:Name="TimeLabelTextBlock"
                                   Text="time"
                                   Margin="0,20,0,0"
                                   RelativePanel.Below="SpeedAverageFormattedLabelTextBlock"
                                   RelativePanel.AlignLeftWithPanel="True" />
                        <TextBlock x:Name="TimeMovingFormattedTextBlock"
                                   Text="{x:Bind ViewModel.SelectedActivity.MovingTime, Mode=OneWay, Converter={StaticResource SecondsToTimeStringConverter}}"
                                   Margin="0,20,0,0"
                                   MinWidth="125"
                                   RelativePanel.RightOf="TimeLabelTextBlock"
                                   RelativePanel.AlignLeftWith="DistanceFormattedTextBlock"
                                   RelativePanel.AlignTopWith="TimeLabelTextBlock" />
                        <TextBlock x:Name="TimeMovingFormattedLabelTextBlock"
                                   Text="moving time"
                                   RelativePanel.Below="TimeMovingFormattedTextBlock"
                                   RelativePanel.AlignLeftWith="TimeMovingFormattedTextBlock" />
                        
                        <!-- ELEVATION BLOCK -->
                        <TextBlock x:Name="ElevationLabelTextBlock"
                                   Text="elevation"
                                   Margin="0,20,0,0"
                                   RelativePanel.Below="TimeMovingFormattedLabelTextBlock"
                                   RelativePanel.AlignLeftWithPanel="True" />
                        <TextBlock x:Name="ElevationGainFormattedTextBlock"                                   
                                   Margin="0,20,0,0"
                                   MinWidth="125"
                                   RelativePanel.RightOf="ElevationLabelTextBlock"
                                   RelativePanel.AlignLeftWith="DistanceFormattedTextBlock"
                                   RelativePanel.AlignTopWith="ElevationLabelTextBlock">
                            <Run Text="{x:Bind ViewModel.SelectedActivity.ElevationGainFormatted, Mode=OneWay}" />
                            <Run Text="{x:Bind ViewModel.SelectedActivity.ElevationUnit, Mode=OneWay, Converter={StaticResource DistanceUnitToStringConverter}}" />
                        </TextBlock>
                        <TextBlock x:Name="ElevationGainFormattedLabelTextBlock"
                                   Text="gain"
                                   RelativePanel.Below="ElevationGainFormattedTextBlock"
                                   RelativePanel.AlignLeftWith="ElevationGainFormattedTextBlock" />                        
                        
                        <!-- HEART RATE BLOCK -->
                        <TextBlock x:Name="HeartRateLabelTextBlock"
                                   Text="heart rate"
                                   Margin="0,20,0,0"
                                   RelativePanel.Below="ElevationGainFormattedLabelTextBlock"
                                   RelativePanel.AlignLeftWithPanel="True" />
                        <TextBlock x:Name="HeartRateAverageFormattedTextBlock"
                                   Margin="0,20,0,0"
                                   MinWidth="125"
                                   RelativePanel.RightOf="HeartRateLabelTextBlock"
                                   RelativePanel.AlignLeftWith="DistanceFormattedTextBlock"
                                   RelativePanel.AlignTopWith="HeartRateLabelTextBlock">
                            <Run Text="{x:Bind ViewModel.SelectedActivity.AverageHeartrate, Mode=OneWay}" />
                            <Run Text="bpm" />
                        </TextBlock>
                        <TextBlock x:Name="HeartRateAverageFormattedLabelTextBlock"
                                   Text="average"
                                   RelativePanel.Below="HeartRateAverageFormattedTextBlock"
                                   RelativePanel.AlignLeftWith="HeartRateAverageFormattedTextBlock" />

                        <TextBlock x:Name="HeartRateMaxFormattedTextBlock"                                   
                                   Margin="0,20,0,0"                                   
                                   RelativePanel.RightOf="HeartRateAverageFormattedTextBlock"
                                   RelativePanel.AlignTopWith="HeartRateLabelTextBlock">
                            <Run Text="{x:Bind ViewModel.SelectedActivity.MaxHeartrate, Mode=OneWay}" />
                            <Run Text="bpm" />
                        </TextBlock>
                        <TextBlock x:Name="HeartRateMaxFormattedLabelTextBlock"
                                   Text="max"
                                   Margin="0,0,0,0"
                                   RelativePanel.Below="HeartRateMaxFormattedTextBlock"
                                   RelativePanel.AlignLeftWith="HeartRateMaxFormattedTextBlock" />
                    </RelativePanel>
                </PivotItem>
                <PivotItem x:Name="SegmentsPivot" Header="segments"
                           Visibility="{x:Bind ViewModel.HasSegments, Mode=OneWay, Converter={StaticResource BooleanToVisibilityConverter}}">
                </PivotItem>
                <PivotItem x:Name="KudosPivot" Header="kudos">
                    <ListView x:Name="ActivityKudosList"
                              ItemsSource="{x:Bind ViewModel.Kudos, Mode=OneWay}"
                              ItemTemplate="{StaticResource KudosListItemTemplate}" />
                </PivotItem>
                <PivotItem x:Name="CommentsPivot" Header="comments">
                    <ListView x:Name="ActivityCommentsList"
                              ItemsSource="{x:Bind ViewModel.Comments, Mode=OneWay}"
                              ItemTemplate="{StaticResource CommentsListItemTemplate}"/>
                </PivotItem>
                <PivotItem x:Name="PhotosPivot" Header="photos"
                           Visibility="{x:Bind ViewModel.HasPhotos, Mode=OneWay, Converter={StaticResource BooleanToVisibilityConverter}}">
                    
                </PivotItem>
            </Pivot>
        </RelativePanel>
    </Grid>
</UserControl>
<commit_msg>Set ActivityDetail pivot as stretch in RP<commit_after>﻿<UserControl
    x:Class="Kliva.Controls.ActivityDetailControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Kliva.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:maps="using:Windows.UI.Xaml.Controls.Maps"
    xmlns:converters="using:Kliva.Converters"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400"
    DataContext="{Binding ActivityDetail, Source={StaticResource Locator}}">

    <UserControl.Resources>
        <converters:DistanceUnitToStringConverter x:Key="DistanceUnitToStringConverter" />
        <converters:SpeedUnitToStringConverter x:Key="SpeedUnitToStringConverter" />
        <converters:SecondsToTimeStringConverter x:Key="SecondsToTimeStringConverter" />
    </UserControl.Resources>
    
    <Grid>
        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup x:Name="VisualStateGroup">
                <VisualState x:Name="Mobile">
                    <VisualState.StateTriggers>
                        <AdaptiveTrigger MinWindowWidth="320" />
                    </VisualState.StateTriggers>
                    <VisualState.Setters>
                        <Setter Target="ActivityDetailCommandBar.Visibility" Value="Collapsed" />
                    </VisualState.Setters>
                </VisualState>
                <VisualState x:Name="Desktop">
                    <VisualState.StateTriggers>
                        <AdaptiveTrigger MinWindowWidth="720" />
                    </VisualState.StateTriggers>
                    <VisualState.Setters>
                        <Setter Target="ActivityDetailCommandBar.Visibility" Value="Visible" />
                    </VisualState.Setters>
                </VisualState>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>
        <RelativePanel>
            <TextBlock x:Name="ActivityName"
                       Text="{x:Bind ViewModel.SelectedActivity.Name, Mode=OneWay}"
                       TextWrapping="WrapWholeWords" MaxLines="2"
                       Margin="10,0,10,0"
                       RelativePanel.AlignTopWithPanel="True" RelativePanel.AlignLeftWithPanel="True" RelativePanel.AlignRightWithPanel="True" />
            
            <maps:MapControl x:Name="ActivityMap"
                             Margin="0,10,0,10"
                             Height="225"
                             RelativePanel.Below="ActivityName"
                             RelativePanel.AlignLeftWithPanel="True" RelativePanel.AlignRightWithPanel="True" />

            <CommandBar x:Name="ActivityDetailCommandBar"
                        Style="{StaticResource CommandBarWithoutMoreStyle}"
                        RelativePanel.Below="ActivityMap"
                        RelativePanel.AlignLeftWithPanel="True" RelativePanel.AlignRightWithPanel="True">
                <CommandBar.Content>
                    <StackPanel Orientation="Horizontal">
                        <AppBarButton Icon="Like"
                                      Visibility="{x:Bind ViewModel.SelectedActivity.HasKudoed, Mode=OneWay, Converter={StaticResource InverseBooleanToVisibilityConverter}}"
                                      Command="{x:Bind ViewModel.KudosCommand}"/>
                        <AppBarButton Icon="Message" />
                    </StackPanel>
                </CommandBar.Content>
            </CommandBar>
            <Pivot x:Name="ActivityPivot"
                   RelativePanel.Below="ActivityDetailCommandBar"
                   RelativePanel.AlignLeftWithPanel="True" RelativePanel.AlignRightWithPanel="True" RelativePanel.AlignBottomWithPanel="True">
                <PivotItem x:Name="StatisticsPivot" Header="statistics">
                    <RelativePanel>
                        <!-- DISTANCE BLOCK -->
                        <TextBlock x:Name="DistanceLabelTextBlock"
                                   Text="distance"
                                   MinWidth="125"
                                   RelativePanel.AlignTopWithPanel="True"
                                   RelativePanel.AlignLeftWithPanel="True"/>
                        <TextBlock x:Name="DistanceFormattedTextBlock"
                                   MinWidth="125"
                                   RelativePanel.RightOf="DistanceLabelTextBlock">
                            <Run Text="{x:Bind ViewModel.SelectedActivity.DistanceFormatted, Mode=OneWay}" />
                            <Run Text="{x:Bind ViewModel.SelectedActivity.DistanceUnit, Mode=OneWay, Converter={StaticResource DistanceUnitToStringConverter}}"/>
                        </TextBlock>
                        <TextBlock x:Name="DistanceFormattedLabelTextBlock"
                                   Text="total distance"
                                   RelativePanel.Below="DistanceFormattedTextBlock"
                                   RelativePanel.AlignLeftWith="DistanceFormattedTextBlock" />

                        <!-- SPEED BLOCK -->
                        <TextBlock x:Name="SpeedLabelTextBlock"
                                   Text="speed"
                                   Margin="0,20,0,0"
                                   RelativePanel.Below="DistanceFormattedLabelTextBlock"
                                   RelativePanel.AlignLeftWithPanel="True" />
                        <TextBlock x:Name="SpeedAverageFormattedTextBlock"
                                   Margin="0,20,0,0"
                                   MinWidth="125"
                                   RelativePanel.RightOf="SpeedLabelTextBlock"
                                   RelativePanel.AlignLeftWith="DistanceFormattedTextBlock"
                                   RelativePanel.AlignTopWith="SpeedLabelTextBlock">
                            <Run Text="{x:Bind ViewModel.SelectedActivity.AverageSpeedFormatted, Mode=OneWay}" />
                            <Run Text="{x:Bind ViewModel.SelectedActivity.SpeedUnit, Mode=OneWay, Converter={StaticResource SpeedUnitToStringConverter}}" />
                        </TextBlock>
                        <TextBlock x:Name="SpeedAverageFormattedLabelTextBlock"
                                   Text="average"
                                   RelativePanel.Below="SpeedAverageFormattedTextBlock"
                                   RelativePanel.AlignLeftWith="SpeedAverageFormattedTextBlock" />

                        <TextBlock x:Name="SpeedMaxFormattedTextBlock"                                   
                                   Margin="0,20,0,0"                                   
                                   RelativePanel.RightOf="SpeedAverageFormattedTextBlock"
                                   RelativePanel.AlignTopWith="SpeedLabelTextBlock">
                            <Run Text="{x:Bind ViewModel.SelectedActivity.MaxSpeedFormatted, Mode=OneWay}" />
                            <Run Text="{x:Bind ViewModel.SelectedActivity.SpeedUnit, Mode=OneWay, Converter={StaticResource SpeedUnitToStringConverter}}" />
                        </TextBlock>
                        <TextBlock x:Name="SpeedMaxFormattedLabelTextBlock"
                                   Text="max"
                                   Margin="0,0,0,0"
                                   RelativePanel.Below="SpeedMaxFormattedTextBlock"
                                   RelativePanel.AlignLeftWith="SpeedMaxFormattedTextBlock" />
                        
                        <!-- TIME BLOCK -->
                        <TextBlock x:Name="TimeLabelTextBlock"
                                   Text="time"
                                   Margin="0,20,0,0"
                                   RelativePanel.Below="SpeedAverageFormattedLabelTextBlock"
                                   RelativePanel.AlignLeftWithPanel="True" />
                        <TextBlock x:Name="TimeMovingFormattedTextBlock"
                                   Text="{x:Bind ViewModel.SelectedActivity.MovingTime, Mode=OneWay, Converter={StaticResource SecondsToTimeStringConverter}}"
                                   Margin="0,20,0,0"
                                   MinWidth="125"
                                   RelativePanel.RightOf="TimeLabelTextBlock"
                                   RelativePanel.AlignLeftWith="DistanceFormattedTextBlock"
                                   RelativePanel.AlignTopWith="TimeLabelTextBlock" />
                        <TextBlock x:Name="TimeMovingFormattedLabelTextBlock"
                                   Text="moving time"
                                   RelativePanel.Below="TimeMovingFormattedTextBlock"
                                   RelativePanel.AlignLeftWith="TimeMovingFormattedTextBlock" />
                        
                        <!-- ELEVATION BLOCK -->
                        <TextBlock x:Name="ElevationLabelTextBlock"
                                   Text="elevation"
                                   Margin="0,20,0,0"
                                   RelativePanel.Below="TimeMovingFormattedLabelTextBlock"
                                   RelativePanel.AlignLeftWithPanel="True" />
                        <TextBlock x:Name="ElevationGainFormattedTextBlock"                                   
                                   Margin="0,20,0,0"
                                   MinWidth="125"
                                   RelativePanel.RightOf="ElevationLabelTextBlock"
                                   RelativePanel.AlignLeftWith="DistanceFormattedTextBlock"
                                   RelativePanel.AlignTopWith="ElevationLabelTextBlock">
                            <Run Text="{x:Bind ViewModel.SelectedActivity.ElevationGainFormatted, Mode=OneWay}" />
                            <Run Text="{x:Bind ViewModel.SelectedActivity.ElevationUnit, Mode=OneWay, Converter={StaticResource DistanceUnitToStringConverter}}" />
                        </TextBlock>
                        <TextBlock x:Name="ElevationGainFormattedLabelTextBlock"
                                   Text="gain"
                                   RelativePanel.Below="ElevationGainFormattedTextBlock"
                                   RelativePanel.AlignLeftWith="ElevationGainFormattedTextBlock" />                        
                        
                        <!-- HEART RATE BLOCK -->
                        <TextBlock x:Name="HeartRateLabelTextBlock"
                                   Text="heart rate"
                                   Margin="0,20,0,0"
                                   RelativePanel.Below="ElevationGainFormattedLabelTextBlock"
                                   RelativePanel.AlignLeftWithPanel="True" />
                        <TextBlock x:Name="HeartRateAverageFormattedTextBlock"
                                   Margin="0,20,0,0"
                                   MinWidth="125"
                                   RelativePanel.RightOf="HeartRateLabelTextBlock"
                                   RelativePanel.AlignLeftWith="DistanceFormattedTextBlock"
                                   RelativePanel.AlignTopWith="HeartRateLabelTextBlock">
                            <Run Text="{x:Bind ViewModel.SelectedActivity.AverageHeartrate, Mode=OneWay}" />
                            <Run Text="bpm" />
                        </TextBlock>
                        <TextBlock x:Name="HeartRateAverageFormattedLabelTextBlock"
                                   Text="average"
                                   RelativePanel.Below="HeartRateAverageFormattedTextBlock"
                                   RelativePanel.AlignLeftWith="HeartRateAverageFormattedTextBlock" />

                        <TextBlock x:Name="HeartRateMaxFormattedTextBlock"                                   
                                   Margin="0,20,0,0"                                   
                                   RelativePanel.RightOf="HeartRateAverageFormattedTextBlock"
                                   RelativePanel.AlignTopWith="HeartRateLabelTextBlock">
                            <Run Text="{x:Bind ViewModel.SelectedActivity.MaxHeartrate, Mode=OneWay}" />
                            <Run Text="bpm" />
                        </TextBlock>
                        <TextBlock x:Name="HeartRateMaxFormattedLabelTextBlock"
                                   Text="max"
                                   Margin="0,0,0,0"
                                   RelativePanel.Below="HeartRateMaxFormattedTextBlock"
                                   RelativePanel.AlignLeftWith="HeartRateMaxFormattedTextBlock" />
                    </RelativePanel>
                </PivotItem>
                <PivotItem x:Name="SegmentsPivot" Header="segments"
                           Visibility="{x:Bind ViewModel.HasSegments, Mode=OneWay, Converter={StaticResource BooleanToVisibilityConverter}}">
                </PivotItem>
                <PivotItem x:Name="KudosPivot" Header="kudos">
                    <ListView x:Name="ActivityKudosList"
                              ItemsSource="{x:Bind ViewModel.Kudos, Mode=OneWay}"
                              ItemTemplate="{StaticResource KudosListItemTemplate}" />
                </PivotItem>
                <PivotItem x:Name="CommentsPivot" Header="comments">
                    <ListView x:Name="ActivityCommentsList"
                              ItemsSource="{x:Bind ViewModel.Comments, Mode=OneWay}"
                              ItemTemplate="{StaticResource CommentsListItemTemplate}"/>
                </PivotItem>
                <PivotItem x:Name="PhotosPivot" Header="photos"
                           Visibility="{x:Bind ViewModel.HasPhotos, Mode=OneWay, Converter={StaticResource BooleanToVisibilityConverter}}">
                    
                </PivotItem>
            </Pivot>
        </RelativePanel>
    </Grid>
</UserControl>

{'fraction_non_alphanumeric': 0.08395184488085515, 'fraction_numerical': 0.008523029937142655, 'mean_word_length': 1.3592493297587132, 'pattern_counts': {'":': 0, '<': 201, '<?xml version=': 0, '>': 201, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 16}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 148, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '968969', 'n_tokens_mistral': 6742, 'n_tokens_neox': 5930, 'n_words': 683}