These are chat archives for AvaloniaUI/Avalonia

7th
May 2018
Florian
@boombuler
May 07 2018 06:02
@wieslawsoltes hope #1561 helps you with your drag drop implementation...
Steven Kirk
@grokys
May 07 2018 06:49
@JezielMoura welcome! and thank you!
Wiesław Šoltés
@wieslawsoltes
May 07 2018 07:00
@boombuler Thanks! This is great!
Drag and drop is so cool when combined with AvaloniaUI Xaml with Behaviors :fire:
Steven Kirk
@grokys
May 07 2018 07:21
looks like we could remove our packake .props files with this?
Wiesław Šoltés
@wieslawsoltes
May 07 2018 07:32
I don't think so.
Steven Kirk
@grokys
May 07 2018 07:33
why not?
Wiesław Šoltés
@wieslawsoltes
May 07 2018 07:33
The csproj still needs all package references.
Just without versions.
So there is still duplication.
Once in csproj and in
Steven Kirk
@grokys
May 07 2018 07:34
ah yeah ok
Wiesław Šoltés
@wieslawsoltes
May 07 2018 07:34
Directory.Build.targets
Steven Kirk
@grokys
May 07 2018 07:35
i think the main reason we moved to those props files though was that bumping the versions caused a lot of noise right?
the references will hardly ever change, it's the versions that change
Wiesław Šoltés
@wieslawsoltes
May 07 2018 07:36
Using .props we have all package references on one place.
Steven Kirk
@grokys
May 07 2018 07:36
yeah
Wiesław Šoltés
@wieslawsoltes
May 07 2018 07:37
Not sure how VS handles this in GUI
Steven Kirk
@grokys
May 07 2018 07:37
yeah, that's the other point: VS doesn't handle the .props well. if it handles this better that might be a reason to use it
looks like it doesn't handle it better
Wiesław Šoltés
@wieslawsoltes
May 07 2018 07:38
That was expected :fire:
I use this for GUI instead of VS
Steven Kirk
@grokys
May 07 2018 07:40
ah nice!
Wiesław Šoltés
@wieslawsoltes
May 07 2018 07:40
Also for Cake scripts.
Need to add support for CoreRT :smile:
Jumar Macato
@jmacato
May 07 2018 07:54
hey @wieslawsoltes , i'm having some problems regarding multi-targeting frameworks in this PR: AvaloniaUI/Avalonia#1549
specifically the projects under samples folder
i tried using conditionals on the Avalonia.DotNetCore reference and the other one but it failed on cake :(
Wiesław Šoltés
@wieslawsoltes
May 07 2018 07:58
Sorry today I'm not at my PC
Jumar Macato
@jmacato
May 07 2018 07:59
alright, that PR isn't too urgent anyway :)
Jumar Macato
@jmacato
May 07 2018 12:04
@wieslawsoltes sorry about that, was just a rookie mistake on my part (forgot to rename the project reference haha :) )
Wiesław Šoltés
@wieslawsoltes
May 07 2018 12:08
no problem, it happens to me all the time :smile:
Achal Shah
@achal7
May 07 2018 12:53
Hi Guys, i am facing an issue in ContentControl
I have child content control which is apearing blank. Event if i add Binding or static data, it just not apearing
The sample code looks like this ->

Main user control

<UserControl xmlns="https://github.com/avaloniaui" xmlns:Controls="clr-namespace:MyApp.Controls;assembly=MyApp">

<Controls:MyControl Content="{Binding Content}" />

</UserControl>

Child control of type ContentControl

<Styles xmlns="https://github.com/avaloniaui" xmlns:local="clr-namespace:MyApp.Controls;assembly=MyApp">
<Style Selector="local|MyControl">
<Setter Property="Template">
<ControlTemplate>
<TextBlock Text="Child control" />
</ControlTemplate>
</Setter>
</Style>
</Styles>

Can any one tell me what is wrong with this, am I missing anything?
Stano Turza
@Sorien
May 07 2018 12:57
i doubt you can use style selector that way
Achal Shah
@achal7
May 07 2018 13:00
any reason why not? any what is alternative to use ContentControl (if i know that i am not going to use UserControl for a specific components)
jp2masa
@jp2masa
May 07 2018 13:07
are you importing the style in App.xaml?
Benedikt Schroeder
@Gillibald
May 07 2018 13:18
I just made a fresh checkout of the master branch and it seems that the current state of the project can't be build anymore. Probably some issues with Portable.Xaml and the HtmlRenderer project. Has anyone the same problems?
Wiesław Šoltés
@wieslawsoltes
May 07 2018 13:18
git submodule update --init
The Portbale.Xaml submodule has been updated
Benedikt Schroeder
@Gillibald
May 07 2018 13:19
But shouldn't a fresh checkout just build?
Wiesław Šoltés
@wieslawsoltes
May 07 2018 13:19
try git status
Benedikt Schroeder
@Gillibald
May 07 2018 13:21
Will check that ty
On a fresh checkout it works have to figure out how to update my existing branches
Achal Shah
@achal7
May 07 2018 13:29
ahhhh..... silly me. @jp2masa thank you very much :+1:
Benedikt Schroeder
@Gillibald
May 07 2018 13:32
Git tells me everything is up to date but it isnt. AppVeyor and Travis CI are failing because of these outdated submodules. It is weird that only a clean checkout works.
You commit has portable.xaml.github @ c066401
master has portable.xaml.github @ cdf46d7
Benedikt Schroeder
@Gillibald
May 07 2018 13:37
How do i get these changes automaticly if i merge my local branche with master?
Rayyan Tahir
@RayyanTahir
May 07 2018 13:44
Bug: Opening a second window and closing the existing one results in application shut down.
Benedikt Schroeder
@Gillibald
May 07 2018 13:44
The old Branche for Portable.Xaml was develop the new is avalonia that seems to cause the problem
Rayyan Tahir
@RayyanTahir
May 07 2018 13:45
Here is my test project
Benedikt Schroeder
@Gillibald
May 07 2018 14:45
The problem is that the MainLoop is stopped if you close the (Main)Window the app got build with. This behavior should change in a way that the application only gets shutdown after all windows are closed.
Application.Run(IClosable cloasable) lets everything crash
Rayyan Tahir
@RayyanTahir
May 07 2018 15:26
@Gillibald is #1564 still a wip?
Rayyan Tahir
@RayyanTahir
May 07 2018 15:45
What is the pseudoclass for IsSelected of TabItem?
Mark Junker
@fubar-coder
May 07 2018 17:37
@jmacato Nah, it's still Windows-only. Avalonia still has a big advantage :+1:
ops
someone posted hehehe
Stano Turza
@Sorien
May 07 2018 18:34
MS is moving to services and
so there is no need for multiplatform ui framework
Stano Turza
@Sorien
May 07 2018 18:41
Don't think that it would be so difficult for Ms rewrite wpf to Vulcan api :smile: in these days
yowl
@yowl
May 07 2018 18:42
This statement is intereseting:
"It’s the C# code in Windows Forms and WPF that we’ll include as a set of libraries with .NET Core 3"
Benedikt Schroeder
@Gillibald
May 07 2018 19:39
My custom font implementation should be usable but is missing unit tests.
Jeremy Koritzinsky
@jkoritzinsky
May 07 2018 20:02
@Sorien there are a lot of DirectX and Windows specific features in WPF that I've noticed when porting some of the lower-level features to Avalonia. They'll never get 100% compatibility with a Vulkan based backend.
ahopper
@ahopper
May 07 2018 20:32

I'm having problems converting a wpf binding

<TextBlock Text="{Binding [0].msg}"/>

where the datacontext is a collection, should this work ?

Jeremy Koritzinsky
@jkoritzinsky
May 07 2018 21:46
I just took a look and it seems we don't currently support that. Can you open an issue?
Jumar Macato
@jmacato
May 07 2018 23:16
@fubar-coder Yeah i was aware of that but still quite a step toward that crossplat direction :) But i wouldn't hold my breath on it, WPF's codebase is not in the position to be ported due to its deep DirectX roots, and overall bloat tbh