mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
R2R was the only legacy plugin still keeping the solution-level build red (27 errors against the Avalonia tree). Port mirrors the four-corner substitution used for the rest of the rewrite: Assisted-by: Claude:claude-opus-4-7:Claude Codepull/3755/head
10 changed files with 134 additions and 75 deletions
@ -1,29 +0,0 @@
@@ -1,29 +0,0 @@
|
||||
<UserControl x:Class="ICSharpCode.ILSpy.ReadyToRun.ReadyToRunOptionPage" |
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
xmlns:properties="clr-namespace:ILSpy.ReadyToRun.Properties" |
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" d:DesignHeight="500" d:DesignWidth="500" mc:Ignorable="d" |
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
xmlns:readyToRun="clr-namespace:ICSharpCode.ILSpy.ReadyToRun" |
||||
d:DataContext="{d:DesignInstance readyToRun:ReadyToRunOptionsViewModel}"> |
||||
<Grid> |
||||
<Grid.ColumnDefinitions> |
||||
<ColumnDefinition /> |
||||
<ColumnDefinition /> |
||||
</Grid.ColumnDefinitions> |
||||
<Grid.RowDefinitions> |
||||
<RowDefinition Height="Auto" /> |
||||
<RowDefinition Height="Auto" /> |
||||
<RowDefinition Height="Auto" /> |
||||
<RowDefinition Height="Auto" /> |
||||
</Grid.RowDefinitions> |
||||
<TextBlock Margin="3" Text="{x:Static properties:Resources.DisassemblyFormat}" /> |
||||
<ComboBox Grid.Row="0" Grid.Column="1" Margin="3" ItemsSource="{Binding Options.DisassemblyFormats}" SelectedItem="{Binding Options.DisassemblyFormat}" /> |
||||
<TextBlock Grid.Row="1" Grid.Column="0" Margin="3" Text="{x:Static properties:Resources.ShowStackUnwindInfo}"/> |
||||
<CheckBox Grid.Row="1" Grid.Column="1" Margin="3" IsChecked="{Binding Options.IsShowUnwindInfo}" /> |
||||
<TextBlock Grid.Row="2" Margin="3" Text="{x:Static properties:Resources.ShowDebugInfo}"/> |
||||
<CheckBox Grid.Row="2" Grid.Column="1" Margin="3" IsChecked="{Binding Options.IsShowDebugInfo}" /> |
||||
<TextBlock Grid.Row="3" Margin="3" Text="{x:Static properties:Resources.ShowGCInfo}"/> |
||||
<CheckBox Grid.Row="3" Grid.Column="1" Margin="3" IsChecked="{Binding Options.IsShowGCInfo}" /> |
||||
</Grid> |
||||
</UserControl> |
||||
@ -0,0 +1,33 @@
@@ -0,0 +1,33 @@
|
||||
<UserControl xmlns="https://github.com/avaloniaui" |
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
xmlns:vm="using:ICSharpCode.ILSpy.ReadyToRun" |
||||
xmlns:res="using:ILSpy.ReadyToRun.Properties" |
||||
mc:Ignorable="d" d:DesignWidth="500" d:DesignHeight="300" |
||||
x:Class="ICSharpCode.ILSpy.ReadyToRun.ReadyToRunOptionsView" |
||||
x:DataType="vm:ReadyToRunOptionsViewModel"> |
||||
<Grid Margin="6" ColumnDefinitions="Auto,*" RowSpacing="6" ColumnSpacing="6" |
||||
RowDefinitions="Auto,Auto,Auto,Auto"> |
||||
<TextBlock Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" |
||||
Text="{x:Static res:Resources.DisassemblyFormat}" /> |
||||
<ComboBox Grid.Row="0" Grid.Column="1" HorizontalAlignment="Stretch" |
||||
ItemsSource="{Binding Options.DisassemblyFormats}" |
||||
SelectedItem="{Binding Options.DisassemblyFormat, Mode=TwoWay}" /> |
||||
|
||||
<TextBlock Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" |
||||
Text="{x:Static res:Resources.ShowStackUnwindInfo}" /> |
||||
<CheckBox Grid.Row="1" Grid.Column="1" |
||||
IsChecked="{Binding Options.IsShowUnwindInfo, Mode=TwoWay}" /> |
||||
|
||||
<TextBlock Grid.Row="2" Grid.Column="0" VerticalAlignment="Center" |
||||
Text="{x:Static res:Resources.ShowDebugInfo}" /> |
||||
<CheckBox Grid.Row="2" Grid.Column="1" |
||||
IsChecked="{Binding Options.IsShowDebugInfo, Mode=TwoWay}" /> |
||||
|
||||
<TextBlock Grid.Row="3" Grid.Column="0" VerticalAlignment="Center" |
||||
Text="{x:Static res:Resources.ShowGCInfo}" /> |
||||
<CheckBox Grid.Row="3" Grid.Column="1" |
||||
IsChecked="{Binding Options.IsShowGCInfo, Mode=TwoWay}" /> |
||||
</Grid> |
||||
</UserControl> |
||||
@ -0,0 +1,33 @@
@@ -0,0 +1,33 @@
|
||||
// Copyright (c) 2018 Siegfried Pammer
|
||||
//
|
||||
// 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.
|
||||
|
||||
using global::Avalonia.Controls; |
||||
using global::Avalonia.Markup.Xaml; |
||||
|
||||
namespace ICSharpCode.ILSpy.ReadyToRun |
||||
{ |
||||
public partial class ReadyToRunOptionsView : UserControl |
||||
{ |
||||
public ReadyToRunOptionsView() |
||||
{ |
||||
InitializeComponent(); |
||||
} |
||||
|
||||
void InitializeComponent() => AvaloniaXamlLoader.Load(this); |
||||
} |
||||
} |
||||
Loading…
Reference in new issue