Skip to content

Conversation

@wieslawsoltes
Copy link
Owner

Summary

  • sample page demonstrating ObservableTriggerBehavior
  • show new page in sample tabs

Testing

  • dotnet test --no-build --verbosity quiet (fails: dotnet: command not found)

@wieslawsoltes wieslawsoltes requested a review from Copilot May 20, 2025 15:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new sample page demonstrating the ObservableTriggerBehavior, which subscribes to an IObservable and executes actions on new values. Key changes include:

  • Introducing the ObservableTriggerBehavior class in the core library.
  • Creating a sample view (XAML and code-behind) to showcase the behavior usage.
  • Updating the README and main view to include the new sample page.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/Avalonia.Xaml.Interactions.Custom/Core/ObservableTriggerBehavior.cs New behavior class that subscribes to an observable and executes actions when a new value is emitted.
samples/BehaviorsTestApplication/Views/ReactiveUI/ObservableTriggerBehaviorView.axaml.cs Code-behind for the sample view demonstrating the new behavior.
samples/BehaviorsTestApplication/Views/ReactiveUI/ObservableTriggerBehaviorView.axaml XAML sample showcasing the behavior with bindings and an action.
samples/BehaviorsTestApplication/Views/MainView.axaml Updated to include a new tab for the ObservableTriggerBehavior sample.
README.md Documentation updated with an entry for ObservableTriggerBehavior.

@wieslawsoltes wieslawsoltes merged commit ab9c3ed into master May 20, 2025
13 checks passed
@wieslawsoltes wieslawsoltes deleted the codex/enhance-reactiveui-behaviors-and-triggers branch May 20, 2025 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants