Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes committed Mar 22, 2023
1 parent ae3f6ff commit 49ecebd
Show file tree
Hide file tree
Showing 36 changed files with 54 additions and 166 deletions.
2 changes: 1 addition & 1 deletion build/Avalonia.Desktop.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.Desktop" Version="11.0.0-preview5" />
<PackageReference Include="Avalonia.Desktop" Version="11.0.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="11.0.0-preview5" Condition="'$(Configuration)' == 'Debug'" />
<PackageReference Include="Avalonia.Diagnostics" Version="11.0.0-preview6" Condition="'$(Configuration)' == 'Debug'" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion build/Avalonia.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="Avalonia.ReactiveUI" Version="11.0.0-preview5" />
<PackageReference Include="Avalonia.ReactiveUI" Version="11.0.0-preview6" />
</ItemGroup>
</Project>
3 changes: 2 additions & 1 deletion build/Avalonia.Themes.Fluent.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.0.0-preview5" />
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.0.0-preview6" />
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.0.0-preview6" />
</ItemGroup>
</Project>
3 changes: 2 additions & 1 deletion build/Avalonia.Themes.Simple.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Avalonia.Themes.Simple" Version="11.0.0-preview5" />
<PackageReference Include="Avalonia.Themes.Simple" Version="11.0.0-preview6" />
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.0.0-preview6" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion build/Avalonia.Web.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.Browser" Version="11.0.0-preview5" />
<PackageReference Include="Avalonia.Browser" Version="11.0.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="11.0.0-preview5" />
<PackageReference Include="Avalonia" Version="11.0.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>11.0.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
7 changes: 1 addition & 6 deletions samples/DockMvvmSample/Views/Documents/DocumentView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,10 @@

namespace DockMvvmSample.Views.Documents;

public class DocumentView : UserControl
public partial class DocumentView : UserControl
{
public DocumentView()
{
InitializeComponent();
}

private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
2 changes: 1 addition & 1 deletion samples/DockMvvmSample/Views/MainView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
mc:Ignorable="d"
d:DesignWidth="1000" d:DesignHeight="550"
x:DataType="vm:MainWindowViewModel" x:CompileBindings="True"
FontFamily="avares://Avalonia.Themes.Fluent/Assets#Inter">
FontFamily="avares://Avalonia.Fonts.Inter/Assets#Inter">
<Design.DataContext>
<vm:MainWindowViewModel />
</Design.DataContext>
Expand Down
6 changes: 1 addition & 5 deletions samples/DockMvvmSample/Views/MainView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,14 @@

namespace DockMvvmSample.Views;

public class MainView : UserControl
public partial class MainView : UserControl
{
public MainView()
{
InitializeComponent();
InitializeThemes();
InitializeMenu();
}
private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}

private void InitializeThemes()
{
Expand Down
6 changes: 3 additions & 3 deletions samples/DockMvvmSample/Views/MainWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
xmlns:views="using:DockMvvmSample.Views"
mc:Ignorable="d"
d:DesignWidth="1200" d:DesignHeight="680"
x:Name="MainWindow"
x:Name="MainWindowView"
UseLayoutRounding="True" RenderOptions.BitmapInterpolationMode="HighQuality"
WindowState="Normal" WindowStartupLocation="CenterScreen"
Background="{x:Null}"
Expand All @@ -33,8 +33,8 @@
MaterialOpacity="0.55" />
</ExperimentalAcrylicBorder.Material>
</ExperimentalAcrylicBorder>
<Panel Margin="{Binding #MainWindow.OffScreenMargin}">
<Panel Margin="{Binding #MainWindow.WindowDecorationMargin}">
<Panel Margin="{Binding #MainWindowView.OffScreenMargin}">
<Panel Margin="{Binding #MainWindowView.WindowDecorationMargin}">
<views:MainView />
</Panel>
</Panel>
Expand Down
7 changes: 1 addition & 6 deletions samples/DockMvvmSample/Views/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace DockMvvmSample.Views;

public class MainWindow : Window
public partial class MainWindow : Window
{
public MainWindow()
{
Expand All @@ -13,9 +13,4 @@ public MainWindow()
this.AttachDevTools();
#endif
}

private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,10 @@

namespace DockMvvmSample.Views;

public class ProportionalStackPanelView : UserControl
public partial class ProportionalStackPanelView : UserControl
{
public ProportionalStackPanelView()
{
InitializeComponent();
}

private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
7 changes: 1 addition & 6 deletions samples/DockMvvmSample/Views/Tools/Tool1View.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,10 @@

namespace DockMvvmSample.Views.Tools;

public class Tool1View : UserControl
public partial class Tool1View : UserControl
{
public Tool1View()
{
InitializeComponent();
}

private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
7 changes: 1 addition & 6 deletions samples/DockMvvmSample/Views/Tools/Tool2View.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,10 @@

namespace DockMvvmSample.Views.Tools;

public class Tool2View : UserControl
public partial class Tool2View : UserControl
{
public Tool2View()
{
InitializeComponent();
}

private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
7 changes: 1 addition & 6 deletions samples/DockMvvmSample/Views/Tools/Tool3View.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,10 @@

namespace DockMvvmSample.Views.Tools;

public class Tool3View : UserControl
public partial class Tool3View : UserControl
{
public Tool3View()
{
InitializeComponent();
}

private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
7 changes: 1 addition & 6 deletions samples/DockMvvmSample/Views/Tools/Tool4View.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,10 @@

namespace DockMvvmSample.Views.Tools;

public class Tool4View : UserControl
public partial class Tool4View : UserControl
{
public Tool4View()
{
InitializeComponent();
}

private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
7 changes: 1 addition & 6 deletions samples/DockMvvmSample/Views/Tools/Tool5View.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,10 @@

namespace DockMvvmSample.Views.Tools;

public class Tool5View : UserControl
public partial class Tool5View : UserControl
{
public Tool5View()
{
InitializeComponent();
}

private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
7 changes: 1 addition & 6 deletions samples/DockMvvmSample/Views/Tools/Tool6View.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,10 @@

namespace DockMvvmSample.Views.Tools;

public class Tool6View : UserControl
public partial class Tool6View : UserControl
{
public Tool6View()
{
InitializeComponent();
}

private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
7 changes: 1 addition & 6 deletions samples/DockMvvmSample/Views/Tools/Tool7View.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,10 @@

namespace DockMvvmSample.Views.Tools;

public class Tool7View : UserControl
public partial class Tool7View : UserControl
{
public Tool7View()
{
InitializeComponent();
}

private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
7 changes: 1 addition & 6 deletions samples/DockMvvmSample/Views/Tools/Tool8View.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,10 @@

namespace DockMvvmSample.Views.Tools;

public class Tool8View : UserControl
public partial class Tool8View : UserControl
{
public Tool8View()
{
InitializeComponent();
}

private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
7 changes: 1 addition & 6 deletions samples/DockMvvmSample/Views/Views/DashboardView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,10 @@

namespace DockMvvmSample.Views.Views;

public class DashboardView : UserControl
public partial class DashboardView : UserControl
{
public DashboardView()
{
InitializeComponent();
}

private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
7 changes: 1 addition & 6 deletions samples/DockMvvmSample/Views/Views/HomeView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,10 @@

namespace DockMvvmSample.Views.Views;

public class HomeView : UserControl
public partial class HomeView : UserControl
{
public HomeView()
{
InitializeComponent();
}

private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}
}
16 changes: 5 additions & 11 deletions samples/DockXamlSample/MainView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

namespace DockXamlSample;

public class MainView : UserControl
public partial class MainView : UserControl
{
private readonly IDockSerializer _serializer;
private readonly IDockState _dockState;
Expand All @@ -32,22 +32,16 @@ public MainView()

_dockState = new DockState();

var dock = this.FindControl<DockControl>("Dock");
if (dock is { })
if (Dock is { })
{
var layout = dock.Layout;
var layout = Dock.Layout;
if (layout is { })
{
_dockState.Save(layout);
}
}
}

private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
}

private List<FilePickerFileType> GetOpenOpenLayoutFileTypes()
{
return new List<FilePickerFileType>
Expand Down Expand Up @@ -83,7 +77,7 @@ private async Task OpenLayout()

var file = result.FirstOrDefault();

if (file is not null && file.CanOpenRead)
if (file is not null)
{
try
{
Expand Down Expand Up @@ -128,7 +122,7 @@ private async Task SaveLayout()
ShowOverwritePrompt = true
});

if (file is not null && file.CanOpenWrite)
if (file is not null)
{
try
{
Expand Down
Loading

0 comments on commit 49ecebd

Please sign in to comment.