Browse Source
Decompile string resources in .resources TreeNodes and show them in a table.
pull/226/head
Decompile string resources in .resources TreeNodes and show them in a table.
pull/226/head

4 changed files with 87 additions and 0 deletions
-
20ILSpy/Controls/ResourceStringTable.xaml
-
36ILSpy/Controls/ResourceStringTable.xaml.cs
-
6ILSpy/ILSpy.csproj
-
25ILSpy/TreeNodes/ResourceNodes/ResourcesFileTreeNode.cs
@ -0,0 +1,20 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<UserControl |
|||
x:Class="ICSharpCode.ILSpy.Controls.ResourceStringTable" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:controls="clr-namespace:ICSharpCode.ILSpy.Controls"> |
|||
<ListView |
|||
Name="resourceListView"> |
|||
<ListView.View> |
|||
<GridView |
|||
AllowsColumnReorder="False"> |
|||
<GridView.Columns> |
|||
<GridViewColumn |
|||
Header="Resource id" |
|||
DisplayMemberBinding="{Binding Key}" /> |
|||
<GridViewColumn |
|||
Header="Resource value" |
|||
DisplayMemberBinding="{Binding Value}" /> |
|||
</GridView.Columns> |
|||
</GridView> |
|||
</ListView.View> |
|||
</ListView> |
|||
</UserControl> |
@ -0,0 +1,36 @@ |
|||
/* |
|||
* Created by SharpDevelop. |
|||
* User: Ronny Klier |
|||
* Date: 31.05.2011 |
|||
* Time: 00:13 |
|||
* |
|||
* To change this template use Tools | Options | Coding | Edit Standard Headers. |
|||
*/ |
|||
using System; |
|||
using System.Collections; |
|||
using System.Text; |
|||
using System.Windows; |
|||
using System.Windows.Controls; |
|||
using System.Windows.Data; |
|||
using System.Windows.Documents; |
|||
using System.Windows.Input; |
|||
using System.Windows.Media; |
|||
|
|||
namespace ICSharpCode.ILSpy.Controls |
|||
{ |
|||
/// <summary>
|
|||
/// Interaction logic for ResourceStringTable.xaml
|
|||
/// </summary>
|
|||
public partial class ResourceStringTable : UserControl |
|||
{ |
|||
public ResourceStringTable(IEnumerable strings) |
|||
{ |
|||
InitializeComponent(); |
|||
// set size to fit decompiler window
|
|||
// TODO: there should be a more transparent way to do this
|
|||
MaxWidth = MainWindow.Instance.mainPane.ActualWidth-20; |
|||
MaxHeight = MainWindow.Instance.mainPane.ActualHeight-100; |
|||
resourceListView.ItemsSource = strings; |
|||
} |
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue