Skip to content

Commit

Permalink
Updated Avalonia
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes authored Oct 27, 2020
1 parent 04869d0 commit e56c62d
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 21 deletions.
2 changes: 1 addition & 1 deletion build/Avalonia.AvaloniaEdit.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Avalonia.AvaloniaEdit" Version="0.10.0-preview1" />
<PackageReference Include="Avalonia.AvaloniaEdit" Version="0.10.0-preview6" />
<PackageReference Include="System.Collections.Immutable" Version="1.6.0" />
<PackageReference Include="System.Xml.ReaderWriter" Version="4.3.1" />
</ItemGroup>
Expand Down
3 changes: 1 addition & 2 deletions build/Avalonia.Desktop.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Avalonia.Desktop" Version="0.10.0-preview5" />
<PackageReference Include="Avalonia.Angle.Windows.Natives" Version="2.1.0.2019013001" />
<PackageReference Include="Avalonia.Desktop" Version="0.10.0-preview6" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion build/Avalonia.Diagnostics.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Avalonia.Diagnostics" Version="0.10.0-preview5" />
<PackageReference Include="Avalonia.Diagnostics" Version="0.10.0-preview6" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion build/Avalonia.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Avalonia" Version="0.10.0-preview5" />
<PackageReference Include="Avalonia" Version="0.10.0-preview6" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion build/Base.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<VersionPrefix>0.10.0</VersionPrefix>
<VersionSuffix>preview5</VersionSuffix>
<VersionSuffix>preview6</VersionSuffix>
<Authors>Wiesław Šoltés</Authors>
<Company>Wiesław Šoltés</Company>
<Description>A docking layout system.</Description>
Expand Down
2 changes: 1 addition & 1 deletion build/ReactiveUI.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="reactiveui" Version="10.3.6" />
<PackageReference Include="reactiveui" Version="11.5.17" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion samples/AvaloniaDemo.Debug/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ private static void Main(string[] args)
public static AppBuilder BuildAvaloniaApp()
=> AppBuilder.Configure<App>()
.UsePlatformDetect()
.LogToDebug();
.LogToTrace();
}
}
2 changes: 1 addition & 1 deletion samples/AvaloniaDemo.Perspectives/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ private static void Main(string[] args)
public static AppBuilder BuildAvaloniaApp()
=> AppBuilder.Configure<App>()
.UsePlatformDetect()
.LogToDebug();
.LogToTrace();
}
}
2 changes: 1 addition & 1 deletion samples/AvaloniaDemo.Static/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ private static void Main(string[] args)
public static AppBuilder BuildAvaloniaApp()
=> AppBuilder.Configure<App>()
.UsePlatformDetect()
.LogToDebug();
.LogToTrace();
}
}
2 changes: 1 addition & 1 deletion samples/AvaloniaDemo/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ private static void Main(string[] args)
public static AppBuilder BuildAvaloniaApp()
=> AppBuilder.Configure<App>()
.UsePlatformDetect()
.LogToDebug();
.LogToTrace();
}
}
6 changes: 5 additions & 1 deletion samples/AvaloniaDemo/Views/DragAndDropView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ private void Drop(object? sender, DragEventArgs e)
{
if (_DropState != null)
{
_DropState.Text = string.Join(Environment.NewLine, e.Data.GetFileNames());
var values = e.Data.GetFileNames();
if (values is {})
{
_DropState.Text = string.Join(Environment.NewLine, values);
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion samples/Notepad/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ private static void Main(string[] args)
public static AppBuilder BuildAvaloniaApp()
=> AppBuilder.Configure<App>()
.UsePlatformDetect()
.LogToDebug();
.LogToTrace();
}
}
15 changes: 8 additions & 7 deletions samples/Notepad/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,19 +207,20 @@ public void Drop(object? sender, DragEventArgs e)
if (e.Data.Contains(DataFormats.FileNames))
{
var result = e.Data.GetFileNames();

foreach (var path in result)
if (result is {})
{
if (!string.IsNullOrEmpty(path))
foreach (var path in result)
{
var untitledFileViewModel = OpenFileViewModel(path);
if (untitledFileViewModel != null)
if (!string.IsNullOrEmpty(path))
{
AddFileViewModel(untitledFileViewModel);
var untitledFileViewModel = OpenFileViewModel(path);
if (untitledFileViewModel != null)
{
AddFileViewModel(untitledFileViewModel);
}
}
}
}

e.Handled = true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion samples/ProportionalStackPanelDemo/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ private static void Main(string[] args)
public static AppBuilder BuildAvaloniaApp()
=> AppBuilder.Configure<App>()
.UsePlatformDetect()
.LogToDebug();
.LogToTrace();
}
}

0 comments on commit e56c62d

Please sign in to comment.