Skip to content

Commit

Permalink
Merge pull request #55 from Haacked/fixDescription
Browse files Browse the repository at this point in the history
CommitVertexView changes
  • Loading branch information
haacked committed May 30, 2013
2 parents f798977 + c907472 commit 310a4df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class InverseBooleanToVisibilityConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return (!(bool)value) ? Visibility.Visible : Visibility.Hidden;
return (!(bool)value) ? Visibility.Visible : Visibility.Collapsed;
}

public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Expand Down
4 changes: 2 additions & 2 deletions SeeGitApp/Views/CommitVertexView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@
</Style>
</Expander.Style>
<StackPanel Orientation="Vertical">
<TextBlock Text="{Binding Message}" Foreground="White" TextWrapping="Wrap" MaxWidth="100" />
<TextBlock Text="{Binding Description}" Foreground="White" TextWrapping="Wrap" Visibility="{Binding DescriptionShown, Converter={StaticResource BooleanToVisibilityConverter}}" />
<TextBlock Text="{Binding Message}" Foreground="White" TextWrapping="Wrap" MaxWidth="150" Visibility="{Binding DescriptionShown, Converter={StaticResource InverseBooleanToVisibilityConverter}}" />
<TextBlock Text="{Binding Description}" Foreground="White" TextWrapping="Wrap" MaxWidth="250" Visibility="{Binding DescriptionShown, Converter={StaticResource BooleanToVisibilityConverter}}" />
</StackPanel>
</Expander>
</Border>
Expand Down

0 comments on commit 310a4df

Please sign in to comment.