These are chat archives for AvaloniaUI/Avalonia

4th
Nov 2018
Matthew Moloney
@moloneymb
Nov 04 2018 01:05
Hi folks, I love your work!! It looks amazing.
jp2masa
@jp2masa
Nov 04 2018 03:47
is there something like ItemContainerStyle?
Sergey Khabibullin
@x2bool
Nov 04 2018 11:18
If anyone is interested I've built a custom MSBuild task and dotnet cli tool for bundling macOS .app packages: https://github.com/egramtel/dotnet-bundle
Juan Blanco
@juanfranblanco
Nov 04 2018 13:30
Quick question, is copy and paste working on the mac? or is it me
Juan Blanco
@juanfranblanco
Nov 04 2018 13:52
works on the wasabi wallet so it is me :)
fyi ^ if anyone is interested
Benedikt Schroeder
@Gillibald
Nov 04 2018 18:43
What is that new Avalonia.csproj under Packages? Visual Studio tries to build it but that fails.
Lucas
@lontivero_twitter
Nov 04 2018 18:50
Hi, I am blocked with a silly problem. I have a viewmodel which contains a property string[] Suggestions and in the view i want to have one Button for each suggestion, what works great with this:
          <ItemsControl Items="{Binding Suggestions}">
            <ItemsControl.ItemsPanel>
              <ItemsPanelTemplate>
                <StackPanel Orientation ="Horizontal" Spacing="2"/>
              </ItemsPanelTemplate>
            </ItemsControl.ItemsPanel>
            <ItemsControl.ItemTemplate>
              <DataTemplate>
                <Button Content="{Binding}"  />
              </DataTemplate>
            </ItemsControl.ItemTemplate>
          </ItemsControl>
the problem is I want that when I click on any of those buttons, that action execute a method in my viewmodel. I've tried with this https://stackoverflow.com/questions/32542283/wpf-itemscontrol-button-command-binding-not-working but it seems in Avalonia this doesn't work. Could you give me a clue, please?
Lucas
@lontivero_twitter
Nov 04 2018 18:57
Forget it. This question was already answered in this chat before:
Command="{Binding $parent[ItemsControl].DataContext.OnStoryClicked}"
ahopper
@ahopper
Nov 04 2018 18:59
this is such a common pattern that I wonder if there could be some extra sugar for this. $dataParent ?
MostHated
@MostHated
Nov 04 2018 22:07
Hey all, I had a quick question. Does anyone foresee any issues if I create a project initially in Visual Studio using the Avalonia plugin but then actually do my coding and such in Rider, then I guess maybe actually build in VS if I need to? I just like Rider a lot better and all my different configurations I have setup in there already and things of that nature.
Benedikt Schroeder
@Gillibald
Nov 04 2018 22:27
The Avalonia plugin just gives you designer support and debugging tools for Visual Studio so you should be able to just use Rider for everything.
MostHated
@MostHated
Nov 04 2018 23:32
Ok, very good. Thanks, I appreciate it.