Skip to content

Commit

Permalink
Merge pull request #82 from AvaloniaUtils/avalonia11.2
Browse files Browse the repository at this point in the history
Fix proper routed events generic type
  • Loading branch information
SKProCH authored Jan 4, 2025
2 parents a898cdf + eec31f0 commit a3e80cb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 24 deletions.
4 changes: 2 additions & 2 deletions DialogHost.Avalonia/DialogHost.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ public class DialogHost : ContentControl {
/// <summary>
/// Identifies the <see cref="DialogOpened"/> routed event.
/// </summary>
public static readonly RoutedEvent DialogOpenedEvent =
public static readonly RoutedEvent<DialogOpenedEventArgs> DialogOpenedEvent =
RoutedEvent.Register<DialogHost, DialogOpenedEventArgs>(nameof(DialogOpened), RoutingStrategies.Bubble);

/// <summary>
/// Identifies the <see cref="DialogClosing"/> routed event.
/// </summary>
public static readonly RoutedEvent DialogClosingEvent =
public static readonly RoutedEvent<DialogClosingEventArgs> DialogClosingEvent =
RoutedEvent.Register<DialogHost, DialogClosingEventArgs>(nameof(DialogClosing), RoutingStrategies.Bubble);

/// <summary>
Expand Down
46 changes: 24 additions & 22 deletions DialogHost.Demo/DialogHost.Demo.csproj
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<RootNamespace>DialogHostDemo</RootNamespace>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<Folder Include="Models\" />
<AvaloniaResource Include="Assets\**" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Avalonia" Version="11.1.3" />
<PackageReference Include="Avalonia.Desktop" Version="11.1.3" />
<PackageReference Include="Avalonia.Diagnostics" Version="11.1.3" />
<PackageReference Include="Avalonia.ReactiveUI" Version="11.1.3" />
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.1.3" />
<PackageReference Include="Material.Icons.Avalonia" Version="2.1.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DialogHost.Avalonia\DialogHost.Avalonia.csproj" />
</ItemGroup>
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<RootNamespace>DialogHostDemo</RootNamespace>
<IsPackable>false</IsPackable>

<AvaloniaVersion>11.2.3</AvaloniaVersion>
</PropertyGroup>
<ItemGroup>
<Folder Include="Models\"/>
<AvaloniaResource Include="Assets\**"/>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Avalonia" Version="$(AvaloniaVersion)"/>
<PackageReference Include="Avalonia.Desktop" Version="$(AvaloniaVersion)"/>
<PackageReference Include="Avalonia.Diagnostics" Version="$(AvaloniaVersion)"/>
<PackageReference Include="Avalonia.ReactiveUI" Version="$(AvaloniaVersion)"/>
<PackageReference Include="Avalonia.Themes.Fluent" Version="$(AvaloniaVersion)"/>
<PackageReference Include="Material.Icons.Avalonia" Version="2.1.0"/>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DialogHost.Avalonia\DialogHost.Avalonia.csproj"/>
</ItemGroup>
</Project>

0 comments on commit a3e80cb

Please sign in to comment.