by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 17:12
    grokys commented #4099
  • 16:37
    maxkatz6 synchronize #4209
  • 14:30
    grokys synchronize #4099
  • 14:30

    grokys on 3965-popup-modal-interaction

    Remove a few warnings. Remove nullable and cref warnin… Add failing tests for #3552. and 22 more (compare)

  • 14:30
    grokys commented #4099
  • 14:12
    danwalmsley synchronize #3967
  • 12:52

    jmacato on master

    Add focus-visible support with … Merge branch 'master' into feat… Merge pull request #4216 from m… (compare)

  • 12:52
    jmacato closed #4216
  • 12:37
    grokys synchronize #4216
  • 10:11

    grokys on master

    Checking for IsTabStop Merge pull request #4221 from p… (compare)

  • 10:11
    grokys closed #4221
  • 09:45
    pr8x opened #4221
  • 07:43
    grokys closed #4182
  • 07:09
    MarchingCube synchronize #4182
  • 06:32
    FoggyFinder commented #4212
  • 05:51

    jmacato on master

    Add ticks property on Slider T… Snap thumb on custom ticks when… Use AvaloniaList instead of List and 2 more (compare)

  • 05:51
    jmacato closed #4219
  • 05:51
    jmacato closed #4192
  • 01:39
    define-private-public commented #3860
  • Jul 02 22:57
    kekekeks commented #4146
Daniel Keenan
@dfkeenan
Not sure if I should embed a C# editor (RoslynPad) or just leave it watching the .csx file and continue to use VSCode.
ahopper
@ahopper
I ended up creating a WindowIconToBitmapConverter.
I had been thinking of doing the opposite and creating a vector drawing to .ico converter for my iconpacks app
Daniel Keenan
@dfkeenan
The Window.Icon property is of type WindowIcon and you can't seem to use it as an Image.Source.
Jose C Gomez
@josegomez
Hey guys sorry to ask again but any pointers on using bindings with radio buttons? I can't figure out how to bind several buttons to a single property in the model and have each radio change the value
A
Steven Kirk
@grokys
@josegomez binding the radio buttons to an enum? we don't have any particular way of doing this, you should handle it the same as WPF, e.g. https://stackoverflow.com/questions/397556/how-to-bind-radiobuttons-to-an-enum

@dfkeenan

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

Jose C Gomez
@josegomez
@grokys Not necessarily to an enum I just want the value of the radios to change the same field in the model
ir Radio1 bound to field x If checked sets x to "hi"
Radie2 bound to field x also if checked sets x to "bye"
I’ll check out the wpf suggestion
Splitwirez
@Splitwirez
...is it possible to have a selector check if a property's value is null (or non-null, for that matter)? And if so, how would one do this?
Daniel Keenan
@dfkeenan
Is there a "platform" style selector?
lorean-devries
@lorean-devries
what themes does avalonia support ?
lorean-devries
@lorean-devries
I have a WPF app built with Material Design which I wish to convert to a Avalonia UI powered app ?
Nikita Tsukanov
@kekekeks
there was an attempt to make material-like style
lorean-devries
@lorean-devries
cool beans thank you will have a look at it now
Omid Mafakher
@OmidID

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.
https://wayland.freedesktop.org/libinput/doc/latest/api/group__config.html#ga09a798f58cc601edd2797780096e9804
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?

anatolym78
@anatolym78
What 3d rendering engines i can use with AvaloniaUI?
Nikita Tsukanov
@kekekeks
@OmidID Customization has to be added to the API, for now you can just copy-paste files from https://github.com/AvaloniaUI/Avalonia/tree/master/src/Linux/Avalonia.LinuxFramebuffer/Input/LibInput and use your customized input backend
@anatolym78 Avalonia is using OpenGL(ES) internally. An OpenGL 3.2+ or OpenGL ES 2.0 context is available depending on the current platform
proper integration API is currently WIP AvaloniaUI/Avalonia#3386
anatolym78
@anatolym78
Thank you
Evgeny Kravchenko
@KydesnikEvgesha
Добрый день, подскажите, есть примеры реализации reportviewer с avalonia?
FoggyFinder
@FoggyFinder
if you haven't noticed it is a English-language chat
@KydesnikEvgesha ^^
Evgeny Kravchenko
@KydesnikEvgesha
@FoggyFinder sorry and thanks a lot
Omid Mafakher
@OmidID
@kekekeks thank you so much. I'll try and if i need help I'll ask you again. 🙏
Deadpikle
@Deadpikle
:wave: Hi there. New to Avalonia but not WPF. I've been racking my brain trying to figure out why a ContentPresenter's Content property binding was not showing up in the UI. Switched to a ContentControl and it works fine. Is ContentPresenter not to be used in Avalonia? I've noticed it's not listed in the docs as a control.
danwalmsley
@danwalmsley
ContentPresenter is like an inner control used by ContentControl
end user is supposed to use ContentControl
Deadpikle
@Deadpikle
Ah. Ok. I see. Thanks! :)
danwalmsley
@danwalmsley
unless your implementing some CustomContentControl with its own template, then you might use ContentPresenter
Steven Kirk
@grokys
that's actually the same in WPF. our ContentPresenter should work in this situation as well tbh, but it's not the really strictly the correct control. ContentControl is the right control in both WPF and Avalonia
Deadpikle
@Deadpikle
Hm. Then, since ContentPresenter didn't work as I would expect in WPF, should I file a bug for unexpected behavior? (Literally swapped ContentPresenter -> ContentControl and it worked out OK.)
...of course, unless the right answer is "Why are you using ContentPresenter and not ContentControl in WPF?" :P
Jose C Gomez
@josegomez
FormStartup.CenterOwner doesn't work for jack on Linux
is this a known issue?
Fredrik Elestedt
@elestedt
I just created a new avalonia.mvvm application for .NET Core on Windows 10 (using dotnet new avalonia.mvvm). If I then change the target framework to Core 3.0 or 3.1 - the application fails to start with an exception about skiasharp not being found. Is this a knows issue? Couldn't find a compatibility list on the website that excludes 3.0/3.1.
Nikita Tsukanov
@kekekeks
SkiaSharp.dll or libSkiaSharp.dll?
Fredrik Elestedt
@elestedt
Unhandled Exception: System.TypeInitializationException: The type initializer for 'Avalonia.Skia.TypefaceCache' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'libSkiaSharp' or one of its dependencies: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Just got the same from a published app dotnet publish -f netcoreapp2.2 -c release -r win10-x64
Feels like something with my setup - no clue about what though
Nikita Tsukanov
@kekekeks
I think it needs MSVC++ Runtime installed
danwalmsley
@danwalmsley
@kekekeks there was talk that in future release skiasharp would statically linke msvc++
Fredrik Elestedt
@elestedt
So I make a self-contained .NET Core app - but I still need to install MSVC++?
sounds reasonable
Nikita Tsukanov
@kekekeks
Does libSkiaSharp.dll exist in your publish directory?