Skip to content

Commit e6900ee

Browse files
authored
Update Avalonia to 0.10 RC (#25)
* Update Avalonia to Release Candidate * Fix Obsolote warnings
1 parent e48896d commit e6900ee

File tree

11 files changed

+40
-17
lines changed

11 files changed

+40
-17
lines changed

Source/Examples/Avalonia/AvaloniaExamples/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static void Main(string[] args)
3434
AppBuilder.Configure<App>()
3535
.UsePlatformDetect()
3636
#if DEBUG
37-
.LogToDebug()
37+
.LogToTrace()
3838
#endif
3939
.StartWithClassicDesktopLifetime(args);
4040
}

Source/Examples/Avalonia/AvaloniaExamples/AvaloniaExamples.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<ItemGroup>
1313
<PackageReference Include="JetBrains.Annotations" Version="11.0.0" />
1414
<ProjectReference Include="..\..\..\OxyPlot.Avalonia\OxyPlot.Avalonia.csproj" />
15-
<PackageReference Include="Avalonia.Desktop" Version="0.10.0-preview1" />
16-
<PackageReference Include="Avalonia.Diagnostics" Version="0.10.0-preview1" />
15+
<PackageReference Include="Avalonia.Desktop" Version="0.10.0-rc1" />
16+
<PackageReference Include="Avalonia.Diagnostics" Version="0.10.0-rc1" />
1717
</ItemGroup>
1818
</Project>

Source/Examples/Avalonia/AvaloniaExamples/MainWindow.xaml.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ private void ListBoxMouseDoubleClick(object sender, RoutedEventArgs e)
6767
{
6868
var window = example.Create();
6969
window.Icon = this.Icon;
70-
window.Show();
71-
70+
window.Show(this);
7271
}
7372
}
7473

Source/Examples/Avalonia/ExampleBrowser/ExampleBrowser.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
</AvaloniaResource>
1313
</ItemGroup>
1414
<ItemGroup>
15-
<PackageReference Include="Avalonia.Desktop" Version="0.10.0-preview1" />
16-
<PackageReference Include="Avalonia.Diagnostics" Version="0.10.0-preview1" />
15+
<PackageReference Include="Avalonia.Desktop" Version="0.10.0-rc1" />
16+
<PackageReference Include="Avalonia.Diagnostics" Version="0.10.0-rc1" />
1717
<PackageReference Include="OxyPlot.Core" Version="2.0.0" />
1818
<PackageReference Include="OxyPlot.ExampleLibrary" Version="2.0.0" />
1919
</ItemGroup>

Source/Examples/Avalonia/ExampleBrowser/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ public static void Main(string[] args) => BuildAvaloniaApp()
1414
public static AppBuilder BuildAvaloniaApp()
1515
=> AppBuilder.Configure<App>()
1616
.UsePlatformDetect()
17-
.LogToDebug();
17+
.LogToTrace();
1818
}
1919
}

Source/Examples/Avalonia/MemoryTest/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static void Main(string[] args)
3434
AppBuilder.Configure<App>()
3535
.UsePlatformDetect()
3636
#if DEBUG
37-
.LogToDebug()
37+
.LogToTrace()
3838
#endif
3939
.StartWithClassicDesktopLifetime(args);
4040
}

Source/Examples/Avalonia/MemoryTest/MemoryTest.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<ItemGroup>
1313
<PackageReference Include="JetBrains.Annotations" Version="11.0.0" />
1414
<ProjectReference Include="..\..\..\OxyPlot.Avalonia\OxyPlot.Avalonia.csproj" />
15-
<PackageReference Include="Avalonia.Desktop" Version="0.10.0-preview1" />
16-
<PackageReference Include="Avalonia.Diagnostics" Version="0.10.0-preview1" />
15+
<PackageReference Include="Avalonia.Desktop" Version="0.10.0-rc1" />
16+
<PackageReference Include="Avalonia.Diagnostics" Version="0.10.0-rc1" />
1717
</ItemGroup>
1818
</Project>

Source/Examples/Avalonia/SimpleDemo/SimpleDemo.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<PackageReference Include="JetBrains.Annotations" Version="11.0.0" />
1414
<ProjectReference Include="..\..\..\OxyPlot.Avalonia\OxyPlot.Avalonia.csproj" />
1515
<PackageReference Include="Serilog.Sinks.Trace" Version="2.1.0" />
16-
<PackageReference Include="Avalonia.Desktop" Version="0.10.0-preview1" />
17-
<PackageReference Include="Avalonia.Diagnostics" Version="0.10.0-preview1" />
16+
<PackageReference Include="Avalonia.Desktop" Version="0.10.0-rc1" />
17+
<PackageReference Include="Avalonia.Diagnostics" Version="0.10.0-rc1" />
1818
</ItemGroup>
1919
</Project>

Source/OxyPlot.Avalonia/OxyPlot.Avalonia.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</PropertyGroup>
1616
<ItemGroup>
1717
<EmbeddedResource Include="**\*.xaml;Assets\*" Exclude="bin\**;obj\**;**\*.xproj;packages\**;@(EmbeddedResource)" />
18-
<PackageReference Include="Avalonia" Version="0.10.0-preview1" />
18+
<PackageReference Include="Avalonia" Version="0.10.0-rc1" />
1919
<PackageReference Include="OxyPlot.Core" Version="2.0.0" />
2020
</ItemGroup>
2121
</Project>

Source/OxyPlot.Avalonia/PlotBase.Events.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ protected override void OnPointerPressed(PointerPressedEventArgs e)
110110
}
111111

112112
Focus();
113-
((TopLevel)this.VisualRoot).PlatformImpl.MouseDevice.Capture(this);
113+
e.Pointer.Capture(this);
114114

115115
// store the mouse down point, check it when mouse button is released to determine if the context menu should be shown
116116
mouseDownPoint = e.GetPosition(this).ToScreenPoint();
@@ -147,7 +147,7 @@ protected override void OnPointerReleased(PointerReleasedEventArgs e)
147147

148148
var releasedArgs = (PointerReleasedEventArgs)e;
149149

150-
((TopLevel)this.VisualRoot).PlatformImpl.MouseDevice.Capture(null);
150+
e.Pointer.Capture(null);
151151

152152
e.Handled = ActualController.HandleMouseUp(this, releasedArgs.ToMouseReleasedEventArgs(this));
153153

0 commit comments

Comments
 (0)