Skip to content

Commit

Permalink
Added tooltips to status bars (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibvhefe authored and Luka Grabarevic committed Mar 30, 2017
1 parent a8e1ae8 commit ae833ef
Showing 1 changed file with 35 additions and 24 deletions.
59 changes: 35 additions & 24 deletions BuildsAppReborn.Client/Views/BuildsStatusView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,30 +111,41 @@

</Grid>

<!-- Build history -->
<ItemsControl Grid.Row="1"
Grid.Column="0"
Margin="1 10 0 10"
HorizontalContentAlignment="Stretch"
VerticalContentAlignment="Stretch"
Background="Transparent"
BorderBrush="Transparent"
BorderThickness="0"
ItemsSource="{Binding PreviousBuilds}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel Orientation="Horizontal" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid Width="10"
Margin="0 0 3 0"
Background="{Binding Build.Status,
Converter={StaticResource BuildStatusToSolidColorBrushForegroundConverter}}" />
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
<!-- Build history -->
<ItemsControl Grid.Row="1"
Grid.Column="0"
Margin="1 10 0 10"
HorizontalContentAlignment="Stretch"
VerticalContentAlignment="Stretch"
Background="Transparent"
BorderBrush="Transparent"
BorderThickness="0"
ItemsSource="{Binding PreviousBuilds}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel Orientation="Horizontal" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid Width="10"
Margin="0 0 3 0"
Background="{Binding Build.Status,
Converter={StaticResource BuildStatusToSolidColorBrushForegroundConverter}}">
<Grid.ToolTip>
<TextBlock>
<TextBlock.Text>
<MultiBinding StringFormat=" {0} ({1} ago)">
<Binding Path="Build.Requester.DisplayName"/>
<Binding Path="BuildTime" Converter="{StaticResource BuildTimeToElapsedTimeConverter}"/>
</MultiBinding>
</TextBlock.Text>
</TextBlock>
</Grid.ToolTip>
</Grid>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>

<!-- current build status with icon and text and date -->
<Grid Grid.Row="1" Grid.Column="1">
Expand Down

0 comments on commit ae833ef

Please sign in to comment.