Browse Source

Merge pull request #2802 from andrewcrawley/pdbgen-progress-reporting

pull/2810/head
Siegfried Pammer 3 years ago committed by GitHub
parent
commit
e0c5b20a26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ICSharpCode.Decompiler.PowerShell/GetDecompiledProjectCmdlet.cs
  2. 1
      ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj
  3. 58
      ICSharpCode.Decompiler.Tests/PdbGenerationTestRunner.cs
  4. 4
      ICSharpCode.Decompiler.Tests/TestCases/PdbGen/CustomPdbId.xml
  5. 44
      ICSharpCode.Decompiler.Tests/TestCases/PdbGen/ProgressReporting.xml
  6. 20
      ICSharpCode.Decompiler/CSharp/ProjectDecompiler/WholeProjectDecompiler.cs
  7. 26
      ICSharpCode.Decompiler/DebugInfo/PortablePdbWriter.cs
  8. 48
      ICSharpCode.Decompiler/DecompilationProgress.cs
  9. 1
      ICSharpCode.Decompiler/ICSharpCode.Decompiler.csproj
  10. 4
      ILSpy/Commands/GeneratePdbContextMenuEntry.cs
  11. 9
      ILSpy/DecompilationOptions.cs
  12. 1
      ILSpy/Languages/CSharpLanguage.cs
  13. 6
      ILSpy/MainWindow.xaml.cs
  14. 39
      ILSpy/TextView/DecompilerTextView.cs
  15. 19
      ILSpy/TextView/DecompilerTextView.xaml

4
ICSharpCode.Decompiler.PowerShell/GetDecompiledProjectCmdlet.cs

@ -33,8 +33,8 @@ namespace ICSharpCode.Decompiler.PowerShell @@ -33,8 +33,8 @@ namespace ICSharpCode.Decompiler.PowerShell
lock (syncObject)
{
completed++;
progress = new ProgressRecord(1, "Decompiling " + fileName, $"Completed {completed} of {value.TotalNumberOfFiles}: {value.Status}") {
PercentComplete = (int)(completed * 100.0 / value.TotalNumberOfFiles)
progress = new ProgressRecord(1, "Decompiling " + fileName, $"Completed {completed} of {value.TotalUnits}: {value.Status}") {
PercentComplete = (int)(completed * 100.0 / value.TotalUnits)
};
}
}

1
ICSharpCode.Decompiler.Tests/ICSharpCode.Decompiler.Tests.csproj

@ -312,6 +312,7 @@ @@ -312,6 +312,7 @@
</ItemGroup>
<ItemGroup>
<Content Include="TestCases\PdbGen\ProgressReporting.xml" />
<Content Include="TestCases\PdbGen\ForLoopTests.xml" />
<Content Include="TestCases\PdbGen\CustomPdbId.xml" />
<Content Include="TestCases\PdbGen\HelloWorld.xml" />

58
ICSharpCode.Decompiler.Tests/PdbGenerationTestRunner.cs

@ -1,5 +1,4 @@ @@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection.Metadata;
@ -9,13 +8,10 @@ using System.Text; @@ -9,13 +8,10 @@ using System.Text;
using System.Xml.Linq;
using ICSharpCode.Decompiler.CSharp;
using ICSharpCode.Decompiler.CSharp.OutputVisitor;
using ICSharpCode.Decompiler.DebugInfo;
using ICSharpCode.Decompiler.Metadata;
using ICSharpCode.Decompiler.Tests.Helpers;
using ICSharpCode.Decompiler.TypeSystem;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.DiaSymReader.Tools;
using NUnit.Framework;
@ -72,6 +68,60 @@ namespace ICSharpCode.Decompiler.Tests @@ -72,6 +68,60 @@ namespace ICSharpCode.Decompiler.Tests
}
}
[Test]
public void ProgressReporting()
{
// Generate a PDB for an assembly and validate that the progress reporter is called with reasonable values
(string peFileName, string pdbFileName) = CompileTestCase(nameof(ProgressReporting));
var moduleDefinition = new PEFile(peFileName);
var resolver = new UniversalAssemblyResolver(peFileName, false, moduleDefinition.Metadata.DetectTargetFrameworkId(), null, PEStreamOptions.PrefetchEntireImage);
var decompiler = new CSharpDecompiler(moduleDefinition, resolver, new DecompilerSettings());
var lastFilesWritten = 0;
var totalFiles = -1;
Action<DecompilationProgress> reportFunc = progress => {
if (totalFiles == -1)
{
// Initialize value on first call
totalFiles = progress.TotalUnits;
}
Assert.AreEqual(progress.TotalUnits, totalFiles);
Assert.AreEqual(progress.UnitsCompleted, lastFilesWritten + 1);
lastFilesWritten = progress.UnitsCompleted;
};
using (FileStream pdbStream = File.Open(Path.Combine(TestCasePath, nameof(ProgressReporting) + ".pdb"), FileMode.OpenOrCreate, FileAccess.ReadWrite))
{
pdbStream.SetLength(0);
PortablePdbWriter.WritePdb(moduleDefinition, decompiler, new DecompilerSettings(), pdbStream, noLogo: true, progress: new TestProgressReporter(reportFunc));
pdbStream.Position = 0;
var metadataReader = MetadataReaderProvider.FromPortablePdbStream(pdbStream).GetMetadataReader();
var generatedPdbId = new BlobContentId(metadataReader.DebugMetadataHeader.Id);
}
Assert.AreEqual(totalFiles, lastFilesWritten);
}
private class TestProgressReporter : IProgress<DecompilationProgress>
{
private Action<DecompilationProgress> reportFunc;
public TestProgressReporter(Action<DecompilationProgress> reportFunc)
{
this.reportFunc = reportFunc;
}
public void Report(DecompilationProgress value)
{
reportFunc(value);
}
}
private void TestGeneratePdb([CallerMemberName] string testName = null)
{
const PdbToXmlOptions options = PdbToXmlOptions.IncludeEmbeddedSources | PdbToXmlOptions.ThrowOnError | PdbToXmlOptions.IncludeTokens | PdbToXmlOptions.ResolveTokens | PdbToXmlOptions.IncludeMethodSpans;

4
ICSharpCode.Decompiler.Tests/TestCases/PdbGen/CustomPdbId.xml

@ -1,11 +1,11 @@ @@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<symbols>
<files>
<file id="1" name="ICSharpCode.Decompiler.Tests.TestCases.PdbGen\HelloWorld.cs" language="C#" checksumAlgorithm="SHA256"><![CDATA[using System;
<file id="1" name="ICSharpCode.Decompiler.Tests.TestCases.PdbGen\CustomPdbId.cs" language="C#" checksumAlgorithm="SHA256"><![CDATA[using System;
namespace ICSharpCode.Decompiler.Tests.TestCases.PdbGen;
public class HelloWorld
public class CustomPdbId
{
public static void Main(string[] args)
{

44
ICSharpCode.Decompiler.Tests/TestCases/PdbGen/ProgressReporting.xml

@ -0,0 +1,44 @@ @@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<symbols>
<files>
<file id="1" name="ICSharpCode.Decompiler.Tests.TestCases.PdbGen\ProgressReporting.cs" language="C#" checksumAlgorithm="SHA256">
<![CDATA[using System;
namespace ICSharpCode.Decompiler.Tests.TestCases.PdbGen;
public class ProgressReporting
{
public static void Main(string[] args)
{
Console.ReadKey();
Console.WriteLine("Hello World!");
Console.ReadKey();
}
}
public class Class1
{
public static void Test()
{
Console.WriteLine("Class1");
}
}
public class Class2
{
public static void Test()
{
Console.WriteLine("Class2");
}
}
public class Class3
{
public static void Test()
{
Console.WriteLine("Class3");
}
}
]]></file>
</files>
</symbols>

20
ICSharpCode.Decompiler/CSharp/ProjectDecompiler/WholeProjectDecompiler.cs

@ -223,8 +223,8 @@ namespace ICSharpCode.Decompiler.CSharp.ProjectDecompiler @@ -223,8 +223,8 @@ namespace ICSharpCode.Decompiler.CSharp.ProjectDecompiler
return Path.Combine(dir, file);
}
}, StringComparer.OrdinalIgnoreCase).ToList();
int total = files.Count;
var progress = ProgressIndicator;
var progressReporter = ProgressIndicator;
var progress = new DecompilationProgress { TotalUnits = files.Count, Title = "Exporting project..." };
DecompilerTypeSystem ts = new DecompilerTypeSystem(module, AssemblyResolver, Settings);
Parallel.ForEach(
Partitioner.Create(files, loadBalance: true),
@ -253,7 +253,9 @@ namespace ICSharpCode.Decompiler.CSharp.ProjectDecompiler @@ -253,7 +253,9 @@ namespace ICSharpCode.Decompiler.CSharp.ProjectDecompiler
throw new DecompilerException(module, $"Error decompiling for '{file.Key}'", innerException);
}
}
progress?.Report(new DecompilationProgress(total, file.Key));
progress.Status = file.Key;
Interlocked.Increment(ref progress.UnitsCompleted);
progressReporter?.Report(progress);
});
return files.Select(f => ("Compile", f.Key)).Concat(WriteAssemblyInfo(ts, cancellationToken));
}
@ -705,16 +707,4 @@ namespace ICSharpCode.Decompiler.CSharp.ProjectDecompiler @@ -705,16 +707,4 @@ namespace ICSharpCode.Decompiler.CSharp.ProjectDecompiler
return TargetServices.DetectTargetFramework(module).Moniker != null;
}
}
public readonly struct DecompilationProgress
{
public readonly int TotalNumberOfFiles;
public readonly string Status;
public DecompilationProgress(int total, string status = null)
{
this.TotalNumberOfFiles = total;
this.Status = status ?? "";
}
}
}

26
ICSharpCode.Decompiler/DebugInfo/PortablePdbWriter.cs

@ -28,6 +28,7 @@ using System.Reflection.Metadata.Ecma335; @@ -28,6 +28,7 @@ using System.Reflection.Metadata.Ecma335;
using System.Reflection.PortableExecutable;
using System.Security.Cryptography;
using System.Text;
using System.Threading;
using ICSharpCode.Decompiler.CSharp;
using ICSharpCode.Decompiler.CSharp.OutputVisitor;
@ -49,7 +50,14 @@ namespace ICSharpCode.Decompiler.DebugInfo @@ -49,7 +50,14 @@ namespace ICSharpCode.Decompiler.DebugInfo
return file.Reader.ReadDebugDirectory().Any(entry => entry.Type == DebugDirectoryEntryType.CodeView);
}
public static void WritePdb(PEFile file, CSharpDecompiler decompiler, DecompilerSettings settings, Stream targetStream, bool noLogo = false, BlobContentId? pdbId = null)
public static void WritePdb(
PEFile file,
CSharpDecompiler decompiler,
DecompilerSettings settings,
Stream targetStream,
bool noLogo = false,
BlobContentId? pdbId = null,
IProgress<DecompilationProgress> progress = null)
{
MetadataBuilder metadata = new MetadataBuilder();
MetadataReader reader = file.Metadata;
@ -72,10 +80,24 @@ namespace ICSharpCode.Decompiler.DebugInfo @@ -72,10 +80,24 @@ namespace ICSharpCode.Decompiler.DebugInfo
return Path.Combine(ns, WholeProjectDecompiler.CleanUpFileName(typeName.Name) + ".cs");
}
foreach (var sourceFile in reader.GetTopLevelTypeDefinitions().GroupBy(BuildFileNameFromTypeName))
var sourceFiles = reader.GetTopLevelTypeDefinitions().GroupBy(BuildFileNameFromTypeName).ToList();
DecompilationProgress currentProgress = new() {
TotalUnits = sourceFiles.Count,
UnitsCompleted = 0,
Title = "Generating portable PDB..."
};
foreach (var sourceFile in sourceFiles)
{
// Generate syntax tree
var syntaxTree = decompiler.DecompileTypes(sourceFile);
if (progress != null)
{
currentProgress.UnitsCompleted++;
progress.Report(currentProgress);
}
if (!syntaxTree.HasChildren)
continue;

48
ICSharpCode.Decompiler/DecompilationProgress.cs

@ -0,0 +1,48 @@ @@ -0,0 +1,48 @@
// Copyright (c) 2022 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
#nullable enable
namespace ICSharpCode.Decompiler
{
/// <summary>
/// Information used for (optional) progress reporting by the decompiler.
/// </summary>
public struct DecompilationProgress
{
/// <summary>
/// The total number of units to process. If set to a value &lt;= 0, an indeterminate progress bar is displayed.
/// </summary>
public int TotalUnits;
/// <summary>
/// The number of units currently completed. Should be a positive number.
/// </summary>
public int UnitsCompleted;
/// <summary>
/// Optional information displayed alongside the progress bar.
/// </summary>
public string? Status;
/// <summary>
/// Optional custom title for the operation.
/// </summary>
public string? Title;
}
}

1
ICSharpCode.Decompiler/ICSharpCode.Decompiler.csproj

@ -90,6 +90,7 @@ @@ -90,6 +90,7 @@
<Compile Include="CSharp\Annotations.cs" />
<Compile Include="CSharp\CallBuilder.cs" />
<Compile Include="CSharp\CSharpLanguageVersion.cs" />
<Compile Include="DecompilationProgress.cs" />
<Compile Include="NRTAttributes.cs" />
<Compile Include="PartialTypeInfo.cs" />
<Compile Include="CSharp\ProjectDecompiler\IProjectFileWriter.cs" />

4
ILSpy/Commands/GeneratePdbContextMenuEntry.cs

@ -75,12 +75,14 @@ namespace ICSharpCode.ILSpy @@ -75,12 +75,14 @@ namespace ICSharpCode.ILSpy
Docking.DockWorkspace.Instance.RunWithCancellation(ct => Task<AvalonEditTextOutput>.Factory.StartNew(() => {
AvalonEditTextOutput output = new AvalonEditTextOutput();
Stopwatch stopwatch = Stopwatch.StartNew();
options.CancellationToken = ct;
using (FileStream stream = new FileStream(fileName, FileMode.OpenOrCreate, FileAccess.Write))
{
try
{
var decompiler = new CSharpDecompiler(file, assembly.GetAssemblyResolver(), options.DecompilerSettings);
PortablePdbWriter.WritePdb(file, decompiler, options.DecompilerSettings, stream);
decompiler.CancellationToken = ct;
PortablePdbWriter.WritePdb(file, decompiler, options.DecompilerSettings, stream, progress: options.Progress);
}
catch (OperationCanceledException)
{

9
ILSpy/DecompilationOptions.cs

@ -19,6 +19,7 @@ @@ -19,6 +19,7 @@
using System;
using System.Threading;
using ICSharpCode.Decompiler;
using ICSharpCode.ILSpy.Options;
using ICSharpCode.ILSpyX;
@ -55,6 +56,14 @@ namespace ICSharpCode.ILSpy @@ -55,6 +56,14 @@ namespace ICSharpCode.ILSpy
/// </remarks>
public CancellationToken CancellationToken { get; set; }
/// <summary>
/// Gets the progress reporter.
/// </summary>
/// <remarks>
/// If decompilers do not implement progress reporting, an indeterminate wait bar is displayed.
/// </remarks>
public IProgress<DecompilationProgress> Progress { get; set; }
/// <summary>
/// Gets the settings for the decompiler.
/// </summary>

1
ILSpy/Languages/CSharpLanguage.cs

@ -404,6 +404,7 @@ namespace ICSharpCode.ILSpy @@ -404,6 +404,7 @@ namespace ICSharpCode.ILSpy
options.DecompilerSettings.UseSdkStyleProjectFormat = false;
}
var decompiler = new ILSpyWholeProjectDecompiler(assembly, options);
decompiler.ProgressIndicator = options.Progress;
return decompiler.DecompileProject(module, options.SaveAsProjectDirectory, new TextOutputWriter(output), options.CancellationToken);
}
else

6
ILSpy/MainWindow.xaml.cs

@ -105,7 +105,11 @@ namespace ICSharpCode.ILSpy @@ -105,7 +105,11 @@ namespace ICSharpCode.ILSpy
public DisplaySettings CurrentDisplaySettings { get; internal set; }
public DecompilationOptions CreateDecompilationOptions() => new DecompilationOptions(CurrentLanguageVersion, CurrentDecompilerSettings, CurrentDisplaySettings);
public DecompilationOptions CreateDecompilationOptions()
{
var decompilerView = DockWorkspace.Instance.ActiveTabPage.Content as IProgress<DecompilationProgress>;
return new DecompilationOptions(CurrentLanguageVersion, CurrentDecompilerSettings, CurrentDisplaySettings) { Progress = decompilerView };
}
public MainWindow()
{

39
ILSpy/TextView/DecompilerTextView.cs

@ -70,7 +70,7 @@ namespace ICSharpCode.ILSpy.TextView @@ -70,7 +70,7 @@ namespace ICSharpCode.ILSpy.TextView
/// Manages the TextEditor showing the decompiled code.
/// Contains all the threading logic that makes the decompiler work in the background.
/// </summary>
public sealed partial class DecompilerTextView : UserControl, IDisposable, IHaveState
public sealed partial class DecompilerTextView : UserControl, IDisposable, IHaveState, IProgress<DecompilationProgress>
{
readonly ReferenceElementGenerator referenceElementGenerator;
readonly UIElementGenerator uiElementGenerator;
@ -540,18 +540,26 @@ namespace ICSharpCode.ILSpy.TextView @@ -540,18 +540,26 @@ namespace ICSharpCode.ILSpy.TextView
#endregion
#region RunWithCancellation
/// <summary>
/// Switches the GUI into "waiting" mode, then calls <paramref name="taskCreation"/> to create
/// the task.
/// When the task completes without being cancelled, the <paramref name="taskCompleted"/>
/// callback is called on the GUI thread.
/// When the task is cancelled before completing, the callback is not called; and any result
/// of the task (including exceptions) are ignored.
/// </summary>
[Obsolete("RunWithCancellation(taskCreation).ContinueWith(taskCompleted) instead")]
public void RunWithCancellation<T>(Func<CancellationToken, Task<T>> taskCreation, Action<Task<T>> taskCompleted)
public void Report(DecompilationProgress value)
{
double v = (double)value.UnitsCompleted / value.TotalUnits;
Dispatcher.BeginInvoke(DispatcherPriority.Normal, delegate {
progressBar.IsIndeterminate = !double.IsFinite(v);
progressBar.Value = v * 100.0;
progressTitle.Text = !string.IsNullOrWhiteSpace(value.Title) ? value.Title : Properties.Resources.Decompiling;
progressText.Text = value.Status;
progressText.Visibility = !string.IsNullOrWhiteSpace(progressText.Text) ? Visibility.Visible : Visibility.Collapsed;
var taskBar = MainWindow.Instance.TaskbarItemInfo;
if (taskBar != null)
{
taskBar.ProgressState = System.Windows.Shell.TaskbarItemProgressState.Normal;
taskBar.ProgressValue = v;
}
if (this.DataContext is TabPageModel model)
{
RunWithCancellation(taskCreation).ContinueWith(taskCompleted, CancellationToken.None, TaskContinuationOptions.NotOnCanceled, TaskScheduler.FromCurrentSynchronizationContext());
model.Title = progressTitle.Text;
}
});
}
/// <summary>
@ -566,7 +574,10 @@ namespace ICSharpCode.ILSpy.TextView @@ -566,7 +574,10 @@ namespace ICSharpCode.ILSpy.TextView
waitAdorner.Visibility = Visibility.Visible;
// Work around a WPF bug by setting IsIndeterminate only while the progress bar is visible.
// https://github.com/icsharpcode/ILSpy/issues/593
progressTitle.Text = Properties.Resources.Decompiling;
progressBar.IsIndeterminate = true;
progressText.Text = null;
progressText.Visibility = Visibility.Collapsed;
waitAdorner.BeginAnimation(OpacityProperty, new DoubleAnimation(0, 1, new Duration(TimeSpan.FromSeconds(0.5)), FillBehavior.Stop));
var taskBar = MainWindow.Instance.TaskbarItemInfo;
if (taskBar != null)
@ -605,6 +616,8 @@ namespace ICSharpCode.ILSpy.TextView @@ -605,6 +616,8 @@ namespace ICSharpCode.ILSpy.TextView
currentCancellationTokenSource = null;
waitAdorner.Visibility = Visibility.Collapsed;
progressBar.IsIndeterminate = false;
progressText.Text = null;
progressText.Visibility = Visibility.Collapsed;
var taskBar = MainWindow.Instance.TaskbarItemInfo;
if (taskBar != null)
{
@ -828,6 +841,7 @@ namespace ICSharpCode.ILSpy.TextView @@ -828,6 +841,7 @@ namespace ICSharpCode.ILSpy.TextView
return RunWithCancellation(
delegate (CancellationToken ct) { // creation of the background task
context.Options.CancellationToken = ct;
context.Options.Progress = this;
decompiledNodes = context.TreeNodes;
return DecompileAsync(context, outputLengthLimit);
})
@ -1091,6 +1105,7 @@ namespace ICSharpCode.ILSpy.TextView @@ -1091,6 +1105,7 @@ namespace ICSharpCode.ILSpy.TextView
{
bool originalProjectFormatSetting = context.Options.DecompilerSettings.UseSdkStyleProjectFormat;
context.Options.EscapeInvalidIdentifiers = true;
context.Options.Progress = this;
AvalonEditTextOutput output = new AvalonEditTextOutput {
EnableHyperlinks = true,
Title = string.Join(", ", context.TreeNodes.Select(n => n.Text))

19
ILSpy/TextView/DecompilerTextView.xaml

@ -20,8 +20,7 @@ @@ -20,8 +20,7 @@
folding:FoldingMargin.FoldingMarkerBackgroundBrush="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"
folding:FoldingMargin.SelectedFoldingMarkerBackgroundBrush="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"
folding:FoldingMargin.FoldingMarkerBrush="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"
folding:FoldingMargin.SelectedFoldingMarkerBrush="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
>
folding:FoldingMargin.SelectedFoldingMarkerBrush="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}">
<ae:TextEditor.Resources>
<!-- prevent App-wide button style from applying to the buttons in the search box -->
<Style TargetType="{x:Type Button}">
@ -78,11 +77,19 @@ @@ -78,11 +77,19 @@
</ae:TextEditor.Template>
</ae:TextEditor>
<Border Name="waitAdorner" Background="{StaticResource waitAdornerBackgoundBrush}" Visibility="Collapsed">
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock FontSize="14pt" Text="{x:Static properties:Resources.Decompiling}"/>
<ProgressBar Name="progressBar" Height="16" Margin="0, 4" />
<Button Click="CancelButton_Click" HorizontalAlignment="Center" Content="{x:Static properties:Resources.Cancel}"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="2*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="1" VerticalAlignment="Center">
<TextBlock Name="progressTitle" FontSize="14pt" Text="{x:Static properties:Resources.Decompiling}" Margin="3"/>
<ProgressBar Name="progressBar" Height="16" />
<TextBlock Name="progressText" Visibility="Collapsed" Margin="3" />
<Button Click="CancelButton_Click" HorizontalAlignment="Center" Margin="3" Content="{x:Static properties:Resources.Cancel}"/>
</StackPanel>
</Grid>
</Border>
</Grid>
</Border>

Loading…
Cancel
Save