Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Aug 03 21:29
    Mikolaytis commented #5762
  • Aug 03 21:28
    Mikolaytis commented #5762
  • Aug 03 16:40
    robloo commented #6318
  • Aug 03 15:43
    maxkatz6 commented #6318
  • Aug 03 15:32
    Gillibald commented #6318
  • Aug 03 15:09
    Gillibald commented #6318
  • Aug 03 15:09
    Gillibald commented #6318
  • Aug 03 15:04
    robloo commented #6318
  • Aug 03 15:01
    robloo commented #6347
  • Aug 03 14:59
    robloo commented #6318
  • Aug 03 14:32
    FG-rgb commented #4956
  • Aug 03 14:28

    maxkatz6 on master

    enable multitouch Merge branch 'master' into enab… Merge pull request #6361 from T… (compare)

  • Aug 03 14:28
    maxkatz6 closed #6361
  • Aug 03 14:12
    maxkatz6 synchronize #6361
  • Aug 03 12:54
    hlewin commented #6360
  • Aug 03 12:17
    maxkatz6 auto_merge_enabled #6361
  • Aug 03 12:11
    BaseHead commented #2239
  • Aug 03 10:17
    kekekeks commented #2239
  • Aug 03 09:42
    BaseHead commented #2239
  • Aug 03 09:40
    kekekeks commented #6360
So yes basically it is the DateTimeCreated value and also it is some if/else statement in my converter.
Daymian Tomczyk

Rgr, so your current problem is that the converter is only called upon item creation as the value in the DateTime never changes.

My initial thoughts are involving some sort of Timer that fires an event every n number of seconds which updates a property like 'timeelapsed', which then triggers the converter for the label content or something like that. There are various other solutions I'm thinking of too, just depends on what design choices you wanna make

Yes, I thought about updating data in the model first. But then I thought maybe there is some mechanism in the frontend (like some animation or trigger or something) that would let me refresh the Label showing the text so that it pulls the new string frequently. If I understand correctly your solution would actively set the Property frequently. I think that'd be my second choice if there is nothing helpful in Avalina I could use.
Paulo Aboim Pinto

@aboimpinto Hmm. I'm basing my advice on https://code.videolan.org/videolan/LibVLCSharp/-/blob/master/docs/linux-setup.md. Beyond that, I'm not sure how supported your distro is. I've got it running on Ubuntu18-x64 and Ubuntu18-ARM64.

If you can't get past that hurdle, I would advise checking documentation, then opening an issue over on LibVLCSharp's repo at https://code.videolan.org/videolan/LibVLCSharp/-/issues

with the link you provide I could see that I should have VLC installed ... after that the sample application start working ...

thanks a lot .. ;)
I will keep the chat updated with the progress of my Media Center made 100% with Avalonia and for Linux (maybe android devices too)
Daymian Tomczyk
Rgr, thanks for the update Paulo
Daymian Tomczyk
@mfriese The 'trigger', at least in WPF conventions/terminology (and while using MVVM), is most often UpdateSourceTrigger=PropertyChanged, so that necessitates that the property you are binding to be updated and implement INPC. I think most solutions are going to involve some sort of timer/event mechanism based on your requirements. Even if you were to invalidate the view and re-render, that'd be every n seconds to force a repaint
Okay, thank you for your suggestion! I think I'll try to create a new label subclass with an extra DependencyProperty and a Timer. I can then bind to the new property and let the timer do the text conversion every n seconds and write to Content Property. Thank you!
Daymian Tomczyk
Good luck, anytime
Bartosz Korczyński
Can I somehow detect when user clicks on AdornerLayer outside of any control (to hide my adorner)
Gabriel Freire
hey guys, new here
do Avalonia supports webview ? has anybody used it with Blazor ?
Alexander Gnauck
@gabrielfreire there are webviews available for Avalonia, check here:
Gabriel Freire
@agnauck thanks

Hi all.
Going through Advanced tutorial but with Visual Studio on Windows.
Found that


Also affect app titlebar.

While moving next and adding dark panel, which is

           <ExperimentalAcrylicBorder IsHitTestVisible="False">
                       MaterialOpacity="0.65" />

Found that content segment is now darkened, but titlebar is still transparent without any dark.
Going next to adding


to affect for titlebar as on provided screenshot, but found that it's working like content segment just override titlebar on windows. As result minimize, maximize and close buttons are about to be invisible screenshot of problem

Finally while going next (add button, align it to top right corner) got the problem that this button overrides titlebar buttons:
screenshot of problem
And clicking on it (as result) closing/maximizing the app window. Minimizing button is not overrided just because of content length inside button control.

Is there any way to fix that, or it's something like a bug, which should be reported to issues?

Paulo Aboim Pinto
@dmtomczyk just to tell that LibVLC is not a good option. I don't know why, but I cannot stream using the VLC in Linux. It's a problem with the playlists (I think) and is nothing to do with the wrapper ...
I think I will try my luck with MPV ... with that, I will need to start from the beginning. They aren't that much information about MPV usage with WPF ... I think I will have to dig deeper
maybe I will be able to port this https://github.com/milleniumbug/Mpv.WPF to Avalonia
if a Property is bound to DynamicResource in it's theme, is it possible to override that in a control style, or only properties tied to TemplateBinding?
Piero Castillo
is there some app/lib to transform svg to avalonia path?
@PieroCastillo Inkscape will convert to wpf xaml which is very close. For simple stuff the path can just be copied (sometimes it is inverted). There is a lib to display svg directly in Avalonia.
@PieroCastillo: there is a SVG Library that allows the usage of svg in Avalonia. I'm using that for my app
Dan Walmsley
@/all 0.10.1 has been released
1 reply
for details see:
questions and discussion:
Hey! Is it possible to change the Slider Style?
wondering did the issue of OpenGL on Windows get fixed in 0.10.1
Steven Kirk
@T1gg1 yep! what exactly do you want to change?
@hez2010 which issue exactly?
@grokys bigger for better use with touchscreens
Steven Kirk
you can change the size of the thumb by setting some resources, if that's what you mean, e.g.:
    <x:Double x:Key="SliderHorizontalThumbWidth">40</x:Double>
    <x:Double x:Key="SliderHorizontalThumbHeight">40</x:Double>
    <CornerRadius x:Key="SliderThumbCornerRadius">20</CornerRadius>
Perfect thank you!
@grokys I can not find the tickbar property. How can I set it? :(
The property, that I can resize the tickbar. Bigger lines or dots or something like this
Or that I can add numbers to the slider
Mike Ward
Can anyone point me to a quick primer on how context menu's work in .10.1? Looks like it changed to Flyout.
Mike Ward
Tried this:
            if (contextMenu is not null)
                var flyout = new Flyout {
                    Content  = contextMenu,
                    ShowMode = FlyoutShowMode.TransientWithDismissOnPointerMoveAway
                button.Flyout = flyout;
5 replies
Never mind, I got it working.
Greetings, I would like to add a small number of buttons (2 through 6) to a 'clean' window depending on other factors like the number of files of a certain type present in a specific directory. Making buttons in xaml is straigtforward but now I would like to add them with C# code. Is this possible at all?
Steven Kirk
@mike-ward you can continue to use ContentMenu, see https://github.com/AvaloniaUI/Avalonia/discussions/5820#discussioncomment-639332
basically it was deprecated a bit too eagerly
we're going to un-deprecate in 0.10.2
@aad_slingerland_twitter yes you can just create new Button objects and add them to a panel's Children collection