1FriendlyDoge
✅ Run code in main thread after Task.Run completed?
Hello, I have a long running void function that I execute in a separate thread by calling
Task.Run(MyFunction)
. Now how could I run another function in the main thread when this one ends? Do I need to make an event or something? What are the common approaches to this?48 replies
❔ Issue with NotifyCanExecuteChangedFor from MVVM CommunityTK
The problem occurs in my view model (Avalonia MVVM), I set a variable
and try to run my function
whenever the text in to box is changed, it never executes though. Anyone has an idea what the issue is?
This is how I use the binding in my xaml
39 replies
Overlay (Not clickable and selectable window on top of fullscreen window) in WPF
So I basically want to make a transparent window that has a custom usercontrol (for example a dot inside of it) and display it TopMost. The only issue is that I can click it and then the fullscreen app loses focus, is there any way to prevent this? I already tried things like
Focusable="False"
and even DLL imports like SetWindowLong(hwnd, GWL_EXSTYLE, extendedStyle | WS_EX_TRANSPARENT);
, but nothing seems to work.2 replies