Comments (7)
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.
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.
@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.
@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.
from avalonia.
AvaloniaApplication1.zip
Sorry , I uploaded again.
from avalonia.
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)
- Publish: The "CompileAvaloniaXamlTask" task failed unexpectedly. HOT 1
- New proposal: Support fullscreen mode across multiple screens. HOT 3
- Objects Render Outside of Window When Maximized HOT 1
- Browser not starting HOT 2
- When DatePicker was chosen once , respond SPACE key even it is not focused
- WindowIcon does not dispose or release GDI objects properly
- Crash when opening window at startup on Windows Server Core HOT 2
- Add LineHeight property to AutoCompleteBox HOT 2
- Menu & Flyout Rendering Artifacts HOT 9
- Abnormal display of controls within Grid HOT 5
- NumericUpDown not showing numeric-only keyboard on android HOT 6
- Dynamically-created menu items with commands do not work HOT 4
- Add FilterIndex to StroageFile when getting files from FilePicker HOT 2
- Error publishing NativeAOT win x86 with .NET 9 HOT 1
- Can't edit cells of datagrid with DataGridCollectionView in ItemsSource HOT 1
- Bindings uses only "dynamic" properties when DataGrid item inherited from IReflectableType HOT 2
- Cant edit DataGrid cell, bound to "dynamic" item property, implementer by IReflectableType
- when set `{x:Null}` to any control's `FontFamily` property, application will crashed HOT 4
- BackgroundSizing Inner/Outer do not work like Center when CornerRadius is very large (i.e. 999) HOT 5
- DataContext value in DevTools displayed as null if type of value inherited from System.ComponentModel.Component HOT 3
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 avalonia.