Giter Club home page Giter Club logo

Comments (7)

grokys avatar grokys commented on June 16, 2024

Hi @29654761 - I've tried to reproduce your problem but unfortunately I don't have enough information to be able to do so. For example, the #PART_Frame control that is the source of your command isn't included in your example code.

Would you be able to create a minimal repro in the form of a GitHub repository or a .zip file that I can run?

In addition are you seeing any binding errors being logged?

from avalonia.

29654761 avatar 29654761 commented on June 16, 2024

I Created a new project and copy code, but it works ok.
The raw project is created from old version, I tried to figure out the diffence,
I found out remove the below line in csproj file can work fine.

<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>

from avalonia.

timunie avatar timunie commented on June 16, 2024

@29654761 that means you are having a DataContext issue most likely. You may need to cast or sprcify x:DataType

See: https://docs.avaloniaui.net/docs/basics/data/data-binding/compiled-bindings

Note

If you upload a minimal sample and we verify it is an issue, I'll reopen this issue.

from avalonia.

29654761 avatar 29654761 commented on June 16, 2024

AvaloniaApplication1.zip

@timunie This minimal sample can reproduce the issue.

@29654761 that means you are having a DataContext issue most likely. You may need to cast or sprcify x:DataType

See: https://docs.avaloniaui.net/docs/basics/data/data-binding/compiled-bindings

Note

If you upload a minimal sample and we verify it is an issue, I'll reopen this issue.

from avalonia.

rabbitism avatar rabbitism commented on June 16, 2024

image

from avalonia.

29654761 avatar 29654761 commented on June 16, 2024

AvaloniaApplication1.zip
Sorry , I uploaded again.

from avalonia.

timunie avatar timunie commented on June 16, 2024

The repo is great. Points out, it works if:

  • I use ReflectionBinding
  • of I use an ICommand instead of void
  • or I consume the void from outside the Popup.

No clue why, but maybe @grokys has an idea where to look at. No priorty issue, as we have enough ways to make the same thing working.

from avalonia.

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.