Giter Site home page Giter Site logo

Comments (4)

nigel-sampson avatar nigel-sampson commented on May 22, 2024

I've just recreated what you've described and not seeing the error. Could you create a repo that demonstrates the error.

from caliburn.micro.

tthibodeau avatar tthibodeau commented on May 22, 2024

I was creating an example project and narrowed down when this issue appears.

The exception occurs if you have an x:Name attribute set on the element that matches a ViewModel method and use the Message.Attach="[Event Click] = [Action DoSomething()]" syntax.

Remove the x:Name attribute or change the name and the above syntax works fine.

Repo: https://github.com/tthibodeau/CMissue49.git

from caliburn.micro.

nigel-sampson avatar nigel-sampson commented on May 22, 2024

Ok, so the reason the first example didn't work was that under the covers the message conventions use Message.Attach which overwrites the one you created. The second example works because you're not using Message.Attach and the two behaviors can exist side by side.

I'd recommend making sure you don't have conflicting conventions going on.

While the convention manager checks to make sure it doesn't overwrite bindings. It may be a good idea to check that we don't overwrite existing method attachments.

I've created a more explicit issue for this.

from caliburn.micro.

tthibodeau avatar tthibodeau commented on May 22, 2024

I understand why it's happening, but I thought I'd mention it as it wasn't an issue with 1.5.2.

Thanks for looking into it!

from caliburn.micro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.