Comments (5)
INCC needs to be on the UI thread. Using their ObservableList<T>
works fine. It's only an issue with the INotifyCollectionChangedSynchronizedView<T>
. Their WPF sample shows using BindingOperations.EnableCollectionSynchronization
, so not being on the UI thread seems to be a possible scenario. I would have expected an exception or log message on Verbose, but I don't seem to get either.
from avalonia.
I saw it, but I don't need to synchronize across thread (at least not right now), so I thought this is optional. ObservableList<T>
don't have INCC, so INotifyCollectionChangedSynchronizedView<T>
is the only option here if I want to keep using this.
from avalonia.
Can you please file a minimum sample? I'll not explore a random file renamer as that could be harmful to my machine.
from avalonia.
Hi, this name "DumbRenamer" is a project I just started, despite the solution name, there is not much code, and not much going on, that's why I upload it, and it's without any dll or built binary.
But I understand your concern. Here are the some sample code files in a zip (.cs file and .axaml files are not directly allowed somehow)
PS: CommunityToolkit.Mvvm package and ObservableCollections package from "https://github.com/Cysharp/ObservableCollections" are required.
from avalonia.
You need the Dispather if you update things from a Task.
private async Task ChangeValue()
{
await Task.Delay(1000);
Dispatcher.UiThread.Post(() => { TestInt = 10 });
ExecutePreview();
}
from avalonia.
Related Issues (20)
- EXC_BAD_ACCESS (SIGSEGV) on macOS HOT 4
- styled property not working on UserControl HOT 3
- IndexOutOfRangeException thrown when TextBlock text contains certain characters and TextTrimming is CharacterEllipsis
- Avalonia 11.1 beta2 crashes on start with SkiaSharp 3.0 on Ubuntu Linux HOT 1
- Unable to set window size on MVVM template with d:DesignWidth and d:DesignHeight HOT 4
- Outdated online API reference documentation HOT 1
- Rendering specific text crashes the application HOT 6
- 希望能出个支持预览OFD或ODF文件的内置控件 HOT 1
- Low performance compared to WPF HOT 7
- Application crashes when switching tabs HOT 3
- Add a mono spaced font to Avalonia.Fonts.Inter
- Add Font Features, Languages, and Name IDs on GlyphTypeface HOT 1
- Border BoxShadow only works with BackgroundSizing=CenterBorder HOT 4
- Source generators should annotate generated types/members with `[GeneratedCode]`
- Grid SharedSizeGroup not working HOT 1
- Browser doesn't launch the application by default (and can't use debugger) HOT 1
- Text on browser can be blurry, based on window size HOT 2
- Android white screen after exiting using physical back button HOT 5
- `DispatcherTimer.Tick` can be executed when the timer is not running HOT 1
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.