These are chat archives for AvaloniaUI/Avalonia

7th
Aug 2017
danwalmsley
@danwalmsley
Aug 07 2017 07:30
What else would it have to do apart from allowing use of fonts from embedded resource?
Matthijs ter Woord
@mterwoord
Aug 07 2017 07:35
system fonts?
Nikita Tsukanov
@kekekeks
Aug 07 2017 09:34
Font enumeration and info
see SkTypeface
danwalmsley
@danwalmsley
Aug 07 2017 10:15
image.png
after updating to latest build
I'm getting issues with reactive object not being available
I saw something happened here
Nikita Tsukanov
@kekekeks
Aug 07 2017 10:19
You need to install additional package
Avalonia.ReactiveUI or something like that
You also need to initialize it in AppBuilder with UseReactiveUI
danwalmsley
@danwalmsley
Aug 07 2017 10:20
isn't avalonia using reactive ui underneath anyway?
what I'm getting at, is how does it work now when you don't specify UseReactiveUI?
image.png
Nikita Tsukanov
@kekekeks
Aug 07 2017 10:25
Bad
It works bad
UseReactiveUI initializes it to use our sync context
danwalmsley
@danwalmsley
Aug 07 2017 10:25
ah so I'm guessing
Nikita Tsukanov
@kekekeks
Aug 07 2017 10:26
You might get thread-safety issues without it
danwalmsley
@danwalmsley
Aug 07 2017 10:26
if your application uses reactiveui itself
you need to add your own reference to ReactiveUI
and Avalonia.ReactiveUI
before I was just relying on the version provided by avalonia
?
Nikita Tsukanov
@kekekeks
Aug 07 2017 10:26
Yep, now our package is just a support shim
danwalmsley
@danwalmsley
Aug 07 2017 10:27
so what did we use reactive ui for internally before?
I'm just thinking
Nikita Tsukanov
@kekekeks
Aug 07 2017 10:27
@jkoritzinsky pushed needed patches to upstream repo
danwalmsley
@danwalmsley
Aug 07 2017 10:27
ok
so internally avalonia is using reactive ui for something
Nikita Tsukanov
@kekekeks
Aug 07 2017 10:27
So reactiveui can be used with any ui framework noe
nope, it doesn't
we were relying on it in Avalonia.Diagnostics previously
danwalmsley
@danwalmsley
Aug 07 2017 10:28
ah it was just a useful tool for developing avalonia apps
and we provided a version with mods to make it work
ok I see now
hmm still getting this
{System.TypeInitializationException: The type initializer for 'ReactiveUI.RxApp' threw an exception. ---> System.Exception: You are referencing the Portable version of ReactiveUI in an App. Reference the platform-specific version.
   at ReactiveUI.PlatformRegistrations.Register(Action`2 registerFunction)
   at ReactiveUI.DependencyResolverMixins.InitializeReactiveUI(IMutableDependencyResolver resolver)
   at Splat.Locator.RegisterResolverCallbackChanged(Action callback)
   at ReactiveUI.RxApp..cctor()
   --- End of inner exception stack trace ---
   at ReactiveUI.RxApp.set_MainThreadScheduler(IScheduler value)
   at System.Action`1.Invoke(T obj)
   at Avalonia.Controls.AppBuilderBase`1.Start[TMainWindow](Func`1 dataContextProvider)
   at TestTool.App.Main(String[] args) in C:\dev\repos\ILMD\TestTool\FxMonitor\App.xaml.cs:line 24}
danwalmsley
@danwalmsley
Aug 07 2017 10:33
maybe I need to use reactiveui-wpf
Nikita Tsukanov
@kekekeks
Aug 07 2017 10:35
Are you sure that you are using proper version?
danwalmsley
@danwalmsley
Aug 07 2017 10:35
just installing from nuget
v8-alpha0034
there is no avalonia platform specific version
Nikita Tsukanov
@kekekeks
Aug 07 2017 10:35
@jkoritzinsky it seems that netstandard build is still broken
you have only fixed one for net4**
.NET Core uses netstandard
so it doesn't work
danwalmsley
@danwalmsley
Aug 07 2017 10:37
:(
i'll just go back to previous version for now
:)
Nikita Tsukanov
@kekekeks
Aug 07 2017 10:38
@jkoritzinsky I guess you have to add netcoreapp1.0 version or something
danwalmsley
@danwalmsley
Aug 07 2017 11:02
previewer is working pretty nicely
Matthijs ter Woord
@mterwoord
Aug 07 2017 11:03
if only previewer would use shadowing of the assemblies...
Nikita Tsukanov
@kekekeks
Aug 07 2017 11:07
You'll get really bloated temp dir
Matthijs ter Woord
@mterwoord
Aug 07 2017 11:08
it could do something smart there, now i have tgo fight to build each time..
danwalmsley
@danwalmsley
Aug 07 2017 11:09
need to integrate it into Avalon studio soon
Nikita Tsukanov
@kekekeks
Aug 07 2017 11:14
Current implementation won't work
We need #900
Matthijs ter Woord
@mterwoord
Aug 07 2017 11:15
would that also fix screen flickering with some apps?
Nikita Tsukanov
@kekekeks
Aug 07 2017 11:15
wat
what flickering?
in previewer?
that's xaml being reloaded
Matthijs ter Woord
@mterwoord
Aug 07 2017 11:16
i can somewhat see it with more apps, but mainly in total commander's file viewer. whenever xaml is being reloaded, the file view flickers..
i can record it to show you.
Nikita Tsukanov
@kekekeks
Aug 07 2017 11:18
win32 works in mysterious ways
danwalmsley
@danwalmsley
Aug 07 2017 11:46
@grokys some weird rendering issue here:
image.png
must be a skia only bug
danwalmsley
@danwalmsley
Aug 07 2017 12:01
@kekekeks when we do simple binding to viewmodel
<TextBox Text="{Binding CameraPositionB}" />
Is there a nice way to have the value validated
I have seen this done in actual controls and avalonia properties,
can it be done for viewmodels?
Steven Kirk
@grokys
Aug 07 2017 12:05
@danwalmsley can you log an issue? i've got a bit of a backlog of rendering problems ;)
danwalmsley
@danwalmsley
Aug 07 2017 12:06
no problem
danwalmsley
@danwalmsley
Aug 07 2017 12:12
@grokys AvaloniaUI/Avalonia#1092
danwalmsley
@danwalmsley
Aug 07 2017 13:11
@grokys do you still need a repro for
AvaloniaUI/Avalonia#824
Steven Kirk
@grokys
Aug 07 2017 13:11
if you've got one, please!
danwalmsley
@danwalmsley
Aug 07 2017 13:12
i'll either give you a PR to fix or a repro
just debugging it now
if its easy will try and fix it
danwalmsley
@danwalmsley
Aug 07 2017 13:40
its not going to be possible for me to debug because of the rxui merge :(
Steven Kirk
@grokys
Aug 07 2017 14:45
maybe we should roll back the rxui merge if the netstandard build is broken?
Jeremy Koritzinsky
@jkoritzinsky
Aug 07 2017 14:48
Yeah let's roll it back for now until they add.net core support
Steven Kirk
@grokys
Aug 07 2017 15:10
could you do that? i'm super-busy right now :/
Jeremy Koritzinsky
@jkoritzinsky
Aug 07 2017 15:42
PR #1095
Jeremy Koritzinsky
@jkoritzinsky
Aug 07 2017 16:31
Reverted
Jeremy Koritzinsky
@jkoritzinsky
Aug 07 2017 20:35
I opened an issue on ReactiveUI so RxUI8 will hopefully be fully compatible for us. ReactiveUI/ReactiveUI#1417
Nikita Tsukanov
@kekekeks
Aug 07 2017 20:36
It's needed to add a separate platformregistrations.cs for netcoreapp1.0 profile
danwalmsley
@danwalmsley
Aug 07 2017 21:37
@grokys responded to your comments on the scripts
Steven Kirk
@grokys
Aug 07 2017 21:42
merged!
danwalmsley
@danwalmsley
Aug 07 2017 21:43
:) thanks!
I will try and debug the stack overflow for slider in the morning