Comments (4)
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.
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.
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.
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)
- Use stringbuilder instead of adding to string HOT 4
- Make variables readonly HOT 3
- Update unit tests
- Update UI on feature samples
- Fix code scanning alert - Useless upcast
- Fix code scanning alert - Useless upcast
- Fix code scanning alert - Inefficient use of ContainsKey
- Fix code scanning alert - Inefficient use of ContainsKey
- Fix code scanning alert - Nested 'if' statements can be combined
- Fix code scanning alert - Nested 'if' statements can be combined
- Fix code scanning alert - Nested 'if' statements can be combined
- Fix code scanning alert - Nested 'if' statements can be combined
- Xamarin Forms version
- Caliburn Micro 4.0.212 doesn't update row data in ViewModel HOT 1
- Parser.Parse (DependencyObject target, String text) exception HOT 3
- Why cal:View.Context is object and not string?
- DisplayRootViewForAsync throws System.InvalidOperationException HOT 1
- Nullable enable is missing HOT 2
- MAUI Support Status Update HOT 2
- MAUI Navigation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caliburn.micro.