These are chat archives for AvaloniaUI/Avalonia

19th
Jan 2019
Kermalis
@Kermalis
Jan 19 04:54 UTC
Anyone know why I'm suddenly getting this?
image.png
I've never gotten this before
Jeremy Koritzinsky
@jkoritzinsky
Jan 19 06:16 UTC
I think we changed the name of that type a while back. Did you just upgrade?
Kermalis
@Kermalis
Jan 19 07:09 UTC
Yeah I just did, what can I do?
I've been on 0.7 since it released and now I'm using the nightly builds because they contain a fix for the numericupdown that I need
Nikita Tsukanov
@kekekeks
Jan 19 08:47 UTC
You need to recompile all of your dependencies with that version
We don't have stable API yet
Wiesław Šoltés
@wieslawsoltes
Jan 19 08:56 UTC
@jp2masa thanks! it would be nice to have some kind of theme switching mechanism built-in into AvaloniaUI, not sure how it would look like and interact with user
Kermalis
@Kermalis
Jan 19 09:43 UTC
I did try to clean the obj folder and rebuild my entire solution but it's still happening, what do you mean by recompile my dependencies with that version?
MonkAlex
@MonkAlex
Jan 19 11:29 UTC
0.7.1 released?
ahopper
@ahopper
Jan 19 11:32 UTC
@Kermalis have you replaced RepeatCount with IterationCount?
William Humphreys
@WHumphreys
Jan 19 14:06 UTC
I thought Id come see how Avalonia is getting on so I deceded to update the test app I wrote early last year. I have to say it updated fine without any real issues which is pretty cool. https://github.com/WHumphreys/Avalonia-Minesweeper-Demo
jp2masa
@jp2masa
Jan 19 18:03 UTC
@grokys thanks for fixing #2203 (#2257)! it was a bit annoying in a project I'm working on (when I have to choose a UI framework now I always choose Avalonia, a bit risky haha, but always works fine enough), the fix feels kinda hacky, but I honestly don't think there's a better solution, great job!
MonkAlex
@MonkAlex
Jan 19 18:19 UTC
Want to resize element to sibling element
<Grid RowDefinitions="10*,*">
  <Image Grid.Row="0" Name="image" Margin="75" Source="{Binding !Loaded, Converter={x:Static av:BitmapTypeConverter.Instance}}"/>
  <ProgressBar Grid.Row="1"
               MaxWidth="{Binding #image.Width}"
               HorizontalAlignment="Stretch"
               VerticalAlignment="Bottom"
               Height="20"
               IsIndeterminate="{Binding LoadingProcess.IsIndeterminate}"
               Value="{Binding LoadingProcess.Percent}"
               Maximum="1"/>
  <TextBlock Grid.Row="1"
             MaxWidth="{Binding #image.Width}"
             HorizontalAlignment="Center"
             VerticalAlignment="Bottom"
             Height="20"
             Text="{Binding LoadingProcess.Status}"/>
</Grid>
ActualWidth not failed, but and not work...
MonkAlex
@MonkAlex
Jan 19 18:32 UTC
DevTools help me, its Bounds.Width =)
Kermalis
@Kermalis
Jan 19 21:00 UTC
@ahopper How and where do I do that? I haven't used Avalonia.Animation in anything
Actually it might be the old AvaloniaGif targetting 0.7 still
Jeremy Koritzinsky
@jkoritzinsky
Jan 19 21:05 UTC
Yeah that would be it
ahopper
@ahopper
Jan 19 21:05 UTC
Strange, have you updated all of avalonia, avalonia.desktop and avalonia.reativeui(if used)
ahh
Kermalis
@Kermalis
Jan 19 21:06 UTC
Yeah that makes sense now, my views with gifs in them are the ones throwing this error in the xaml viewer
Nikita Tsukanov
@kekekeks
Jan 19 21:45 UTC
NuunETx.png
Jeremy Koritzinsky
@jkoritzinsky
Jan 19 21:50 UTC
Ooooh pretty!
I like it
Nikita Tsukanov
@kekekeks
Jan 19 21:53 UTC
The best thing is that on Linux it works pretty much out of the box
if we use ARGB visuals
I think it would be the same for OSX
Kermalis
@Kermalis
Jan 19 21:54 UTC
:thumbsup:
Nikita Tsukanov
@kekekeks
Jan 19 21:54 UTC
Unfortunately things aren't that simple with Win32
Benedikt Stebner
@Gillibald
Jan 19 21:55 UTC
Would be simple if we drop Windows 7 support
Nikita Tsukanov
@kekekeks
Jan 19 21:56 UTC
It has 33% market share on desktop, you know
Actually, there is a simple way of using window transparency that works on Vista+
But Aero (aka desktop window manager) has to be enabled
Benedikt Stebner
@Gillibald
Jan 19 21:58 UTC
Layered window kinda works with alpha blending.
Nikita Tsukanov
@kekekeks
Jan 19 21:58 UTC
For non-aero modes we'll have to fallback to layered windows
Which are terribly, terribly slow
I also don't know if we can enable GPU acceleration for them
Probably can't
Kermalis
@Kermalis
Jan 19 22:00 UTC
I'm on Win7
Nikita Tsukanov
@kekekeks
Jan 19 22:02 UTC
It's a pity DWM was forcefully enabled only with Win8
Benedikt Stebner
@Gillibald
Jan 19 22:02 UTC
Last time I tried to enable transparency I just used SetLayeredWindowAttributes with some success
My only issue was that the client area wasn't updated properly on resize
Nikita Tsukanov
@kekekeks
Jan 19 22:08 UTC

I think we should add

enum TransparencySupport
{
      None,
      Slow
      Fast
}

to our TopLevel

Or something like that
So styles would be informed about the platform capabilities
And could react accordingly
Another problem with Win7 is that we can't switch between layered and non-layered window modes on the fly, I believe
Jeremy Koritzinsky
@jkoritzinsky
Jan 19 22:15 UTC
Win7 support is ending on Jan 14, 2020, so we need to support it for a bit longer most likely. I say we drop support when Microsoft drops support
At which point 8.1 is the new oldest supported version.
Kermalis
@Kermalis
Jan 19 22:20 UTC
:(