Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added TextBlock with assembly path in tab comparison #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

salem84
Copy link
Contributor

@salem84 salem84 commented Oct 15, 2018

issue #22

Copy link
Contributor

@atdimitrov atdimitrov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not work well with paths longer than the width of the source code viewer - the text is just cut off. Since good solution to this would cost a lot of time I would suggest adding a tooltip when hovered and add ellipsis if it does not fit. Wrapping to multiple lines is not a solution here because:

  • it can take a lot of screen space if the application is resized to very narrow window
  • both paths should be equal in height, which can be somewhat difficult to achieve. This is needed because the source code should match line by line.

ScrollingLimit="{Binding ScrollingLimit, Mode=TwoWay}"
FontSize="{Binding FontSize, Mode=TwoWay}" />
<StackPanel Grid.Column="1">
<TextBlock Text="{Binding LeftSourceCode.AssemblyPath}" Background="#EFEFEF" Margin="15,5,0,0" FontStyle="Italic"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The design part looks a bit strange and asymmetrical. I would suggest replacing the margin with Padding="5". It should look a lot cleaner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants