Skip to content

Commit

Permalink
Merge branch 'devel'
Browse files Browse the repository at this point in the history
  • Loading branch information
kekyo committed May 15, 2024
2 parents 3e9cd00 + 1c1432e commit 4fd1070
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion playground/EpoxyHello.Avalonia11/Views/MainWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:epoxy="clr-namespace:Epoxy;assembly=Epoxy.Core"
xmlns:epoxy="https://github.com/kekyo/Epoxy"
xmlns:viewmodels="clr-namespace:EpoxyHello.Avalonia11.ViewModels"
xmlns:converters="clr-namespace:EpoxyHello.Avalonia11.Views.Converters"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
Expand Down
7 changes: 2 additions & 5 deletions src/Epoxy.Avalonia11/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,5 @@

using Avalonia.Metadata;

// TODO: In 0.10.0, Avalonia XAML designer cause
// "XamlException: 'Unable to resolve type'" error when use XML namespace alias.
// Related?: https://github.com/AvaloniaUI/Avalonia/issues/3592
//[assembly: XmlnsDefinition("https://github.com/kekyo/Epoxy", "Epoxy")]
//[assembly: XmlnsPrefix("https://github.com/kekyo/Epoxy", "epoxy")]
[assembly: XmlnsDefinition("https://github.com/kekyo/Epoxy", "Epoxy")]
[assembly: XmlnsPrefix("https://github.com/kekyo/Epoxy", "epoxy")]
7 changes: 2 additions & 5 deletions src/Epoxy.Core.Avalonia11/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,5 @@
[assembly: InternalsVisibleTo("Epoxy")]
[assembly: InternalsVisibleTo("FSharp.Epoxy")]

// TODO: In 0.10.0, Avalonia XAML designer cause
// "XamlException: 'Unable to resolve type'" error when use XML namespace alias.
// Related?: https://github.com/AvaloniaUI/Avalonia/issues/3592
//[assembly: XmlnsDefinition("https://github.com/kekyo/Epoxy", "Epoxy")]
//[assembly: XmlnsPrefix("https://github.com/kekyo/Epoxy", "epoxy")]
[assembly: XmlnsDefinition("https://github.com/kekyo/Epoxy", "Epoxy")]
[assembly: XmlnsPrefix("https://github.com/kekyo/Epoxy", "epoxy")]
7 changes: 5 additions & 2 deletions src/Epoxy.Core/EventBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,13 @@ static Event()
{
EventNameProperty.Changed.Subscribe(
new AnonymousObserver<AvaloniaPropertyChangedEventArgs<string>>(e =>
((Event)e.Sender).OnEventNamePropertyChanged(e.OldValue, e.NewValue)));
((Event)e.Sender).OnEventNamePropertyChanged(
e.OldValue.HasValue ? e.OldValue.Value : null,
e.NewValue.HasValue ? e.NewValue.Value : null)));
CommandProperty.Changed.Subscribe(
new AnonymousObserver<AvaloniaPropertyChangedEventArgs<ICommand>>(e =>
((Event)e.Sender).OnCommandPropertyChanged(e.NewValue)));
((Event)e.Sender).OnCommandPropertyChanged(
e.NewValue.HasValue ? e.NewValue.Value : null)));
}
#else
/// <summary>
Expand Down

0 comments on commit 4fd1070

Please sign in to comment.