Skip to content

Commit

Permalink
Added TextBlock with assembly path in tab comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
salem84 committed Oct 15, 2018
1 parent 5f5eeac commit a5e0b8b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 23 deletions.
50 changes: 27 additions & 23 deletions UI/JustAssembly/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,36 +227,40 @@
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>

<localViews:CodeViewer Grid.Column="1"
SyntaxHighlighting="C#"
IsReadOnly="True"
SourceCode="{Binding LeftSourceCode}"
BackgroundRenderer="{Binding LeftSourceCode.BackgroundRenderer}"
ShowLineNumbers="True"
VerticalOffset="{Binding VerticalOffset, Mode=TwoWay}"
VerticalScrollBarVisibility="Hidden"
HorizontalOffsetPercent="{Binding HorizontalOffsetPercent, Mode=TwoWay}"
VisibleLines ="{Binding VisibleLines, Mode=TwoWay}"
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"/>
<localViews:CodeViewer SyntaxHighlighting="C#"
IsReadOnly="True"
SourceCode="{Binding LeftSourceCode}"
BackgroundRenderer="{Binding LeftSourceCode.BackgroundRenderer}"
ShowLineNumbers="True"
VerticalOffset="{Binding VerticalOffset, Mode=TwoWay}"
VerticalScrollBarVisibility="Hidden"
HorizontalOffsetPercent="{Binding HorizontalOffsetPercent, Mode=TwoWay}"
VisibleLines ="{Binding VisibleLines, Mode=TwoWay}"
ScrollingLimit="{Binding ScrollingLimit, Mode=TwoWay}"
FontSize="{Binding FontSize, Mode=TwoWay}" />
</StackPanel>

<GridSplitter Grid.Column="2"
Width="6"
HorizontalAlignment="Center"
VerticalAlignment="Stretch" />

<localViews:CodeViewer Grid.Column="3"
SyntaxHighlighting="C#"
IsReadOnly="True"
SourceCode="{Binding RightSourceCode}"
BackgroundRenderer="{Binding RightSourceCode.BackgroundRenderer}"
ShowLineNumbers="True"
VerticalOffset="{Binding VerticalOffset, Mode=TwoWay}"
HorizontalOffsetPercent="{Binding HorizontalOffsetPercent, Mode=TwoWay}"
VisibleLines ="{Binding VisibleLines, Mode=TwoWay}"
ScrollingLimit="{Binding ScrollingLimit, Mode=TwoWay}"
FontSize="{Binding FontSize, Mode=TwoWay}" />
<StackPanel Grid.Column="3">
<TextBlock Text="{Binding RightSourceCode.AssemblyPath}" Background="#EFEFEF" Margin="15,5,0,0" FontStyle="Italic"/>
<localViews:CodeViewer SyntaxHighlighting="C#"
IsReadOnly="True"
SourceCode="{Binding RightSourceCode}"
BackgroundRenderer="{Binding RightSourceCode.BackgroundRenderer}"
ShowLineNumbers="True"
VerticalOffset="{Binding VerticalOffset, Mode=TwoWay}"
HorizontalOffsetPercent="{Binding HorizontalOffsetPercent, Mode=TwoWay}"
VisibleLines ="{Binding VisibleLines, Mode=TwoWay}"
ScrollingLimit="{Binding ScrollingLimit, Mode=TwoWay}"
FontSize="{Binding FontSize, Mode=TwoWay}" />

</StackPanel>
<localViews:SideSummary Grid.Column="0"
LeftSourceCode="{Binding LeftSourceCode}"
RightSourceCode="{Binding RightSourceCode}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ public bool HighlighMember
}
}

public string AssemblyPath
{
get
{
return memberMetadata?.AssemblyPath;
}
}

public override string ToString()
{
return sourceCode;
Expand Down

0 comments on commit a5e0b8b

Please sign in to comment.