Updated Avalonia
This commit is contained in:
Родитель
5133231425
Коммит
006bedf8cd
|
@ -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.Desktop" Version="0.7.0" />
|
||||
<PackageReference Include="Avalonia.Desktop" Version="0.7.1-build989-beta" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="SharpDX" Version="4.0.1" />
|
||||
|
@ -10,10 +10,10 @@
|
|||
<PackageReference Include="SharpDX.DXGI" Version="4.0.1" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="SkiaSharp" Version="1.60.0" />
|
||||
<PackageReference Include="Avalonia.Skia.Linux.Natives" Version="1.60.0.1" />
|
||||
<PackageReference Include="SkiaSharp" Version="1.68.0" />
|
||||
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="1.68.0" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Serilog.Sinks.Trace" Version="2.1.0" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
@ -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" Version="0.7.0" />
|
||||
<PackageReference Include="Avalonia" Version="0.7.1-build989-beta" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Serilog" Version="2.5.0" />
|
||||
|
@ -11,4 +11,4 @@
|
|||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
<DependentUpon>%(Filename)</DependentUpon>
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="**\*.xaml">
|
||||
<AvaloniaResource Include="**\*.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
</AvaloniaResource>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
<!-- Copyright (c) Wiesław Šoltés. All rights reserved. -->
|
||||
<!-- Licensed under the MIT license. See LICENSE file in the project root for full license information. -->
|
||||
<Application xmlns="https://github.com/avaloniaui">
|
||||
<Application.Styles>
|
||||
<StyleInclude Source="resm:Avalonia.Themes.Default.DefaultTheme.xaml?assembly=Avalonia.Themes.Default"/>
|
||||
<StyleInclude Source="resm:Avalonia.Themes.Default.Accents.BaseLight.xaml?assembly=Avalonia.Themes.Default"/>
|
||||
</Application.Styles>
|
||||
<Application x:Class="SimpleWavSplitter.Avalonia.App"
|
||||
xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<Application.Styles>
|
||||
<StyleInclude Source="avares://Avalonia.Themes.Default/DefaultTheme.xaml"/>
|
||||
<StyleInclude Source="avares://Avalonia.Themes.Default/Accents/BaseLight.xaml"/>
|
||||
</Application.Styles>
|
||||
</Application>
|
||||
|
|
|
@ -66,7 +66,7 @@ namespace SimpleWavSplitter.Avalonia
|
|||
dlg.InitialDirectory = textOutputPath.Text;
|
||||
}
|
||||
|
||||
var result = await dlg.ShowAsync();
|
||||
var result = await dlg.ShowAsync(this);
|
||||
if (!string.IsNullOrWhiteSpace(result))
|
||||
{
|
||||
textOutputPath.Text = result;
|
||||
|
@ -80,7 +80,7 @@ namespace SimpleWavSplitter.Avalonia
|
|||
dlg.Filters.Add(new FileDialogFilter() { Name = "All Files", Extensions = { "*" } });
|
||||
dlg.AllowMultiple = true;
|
||||
|
||||
var result = await dlg.ShowAsync();
|
||||
var result = await dlg.ShowAsync(this);
|
||||
if (result != null)
|
||||
{
|
||||
_wavFileSplitter.GetWavHeader(result, text => textOutput.Text = text);
|
||||
|
@ -94,7 +94,7 @@ namespace SimpleWavSplitter.Avalonia
|
|||
dlg.Filters.Add(new FileDialogFilter() { Name = "All Files", Extensions = { "*" } });
|
||||
dlg.AllowMultiple = true;
|
||||
|
||||
var result = await dlg.ShowAsync();
|
||||
var result = await dlg.ShowAsync(this);
|
||||
if (result != null)
|
||||
{
|
||||
await _wavFileSplitter.SplitWavFiles(
|
||||
|
|
Загрузка…
Ссылка в новой задаче