grokys on direct-property-metadata
Added failing data validation t… Use EnabledDataValidation from … Added API changes to ApiCompatB… (compare)
max.IsVisible = window.WindowState != WindowState.Maximized; res.IsVisible = window.WindowState == WindowState.Maximized; var windowStateChanged = window.GetPropertyChangedObservable(Window.WindowStateProperty) .Select(e => (WindowState)e.NewValue); max.Bind(Button.IsVisibleProperty, windowStateChanged.Select(ws => ws != WindowState.Maximized)); res.Bind(Button.IsVisibleProperty, windowStateChanged.Select(ws => ws == WindowState.Maximized));
I'm not sure if it's because of avalonia or visual studio. But everytime a xaml file is added it makes a bit of a mess of things in the csproj file.
yeah, this is VS :/ we should probably open an issue on the VS project system because it's really annoying
Is there a way to tell if a property is bound?
not bound as such but you can call
AvaloniaObject.IsSet() to see if the property is set. there's no API that makes a distinction between a set and bound value though
I have problem with Linux Framebuffer that the device we have it's have inverted touch by X and Y and this is the configuration of xorg conf
Section "InputClass" Identifier "evdev touchscreen catchall" MatchIsTouchscreen "on" MatchDevicePath "/dev/input/event*" Driver "evdev" Option "InvertX" "True" Option "InvertY" "True" EndSection
In case of using framebuffer the
libinput is not using xorg config anymore and it's will start independ of X server.
I found out there is a function exists in
libinput that can fix this problem.
How can I calibrate the device from the code using this function? The main problem is how can I have the
struct libinput_device * device variable?
Contentproperty binding was not showing up in the UI. Switched to a
ContentControland it works fine. Is
ContentPresenternot to be used in Avalonia? I've noticed it's not listed in the docs as a control.