Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 01:29
    jmacato auto_merge_enabled #5925
  • 00:41
    aboimpinto commented #5829
  • 00:39
    maxkatz6 commented #5829
  • May 14 23:52

    danwalmsley on managed-mouse-pointer

    fix (compare)

  • May 14 23:48

    danwalmsley on managed-mouse-pointer

    dont filter. (compare)

  • May 14 23:44

    danwalmsley on managed-mouse-pointer

    hack (compare)

  • May 14 23:37

    danwalmsley on managed-mouse-pointer

    fix. (compare)

  • May 14 23:31

    danwalmsley on managed-mouse-pointer

    time based input scheduling. (compare)

  • May 14 23:17

    danwalmsley on managed-mouse-pointer

    reduce amount of event.s (compare)

  • May 14 23:00

    danwalmsley on managed-mouse-pointer

    initialise pointer to center. (compare)

  • May 14 22:56

    danwalmsley on managed-mouse-pointer

    working mouse (compare)

  • May 14 22:52

    danwalmsley on managed-mouse-pointer

    handle relative. (compare)

  • May 14 22:28

    danwalmsley on managed-mouse-pointer

    test pointer. (compare)

  • May 14 22:06

    danwalmsley on managed-mouse-pointer

    try. (compare)

  • May 14 21:54

    danwalmsley on managed-mouse-pointer

    try again. (compare)

  • May 14 21:52

    danwalmsley on managed-mouse-pointer

    test fb with timer. (compare)

  • May 14 21:45

    danwalmsley on managed-mouse-pointer

    prototype. (compare)

  • May 14 21:01
    MarchingCube review_requested #5925
  • May 14 21:01
    MarchingCube opened #5925
  • May 14 18:38
    maxkatz6 closed #5833
Omer
@omerfarukz
UserDetailsView class inherited from ReactiveUserControl<TViewModel>
Artjom P
@ArtjomP
Hello everyone! I've got an issue after updating to 0.10.1. My app doesn't appear after .StartWithClassicDesktopLifetime(args); on macOS. I can see only The program '....dll' has exited with code 0 (0x0). in the Debug console.
2 replies
Any ideas on how to solve it or debug it are welcome! Thank you in advance.
Piero Castillo
@PieroCastillo
@ahopper @darthspot:matrix.org thanks!!
Steve
@hez2010
@grokys This one: AvaloniaUI/Avalonia#5543
Steve
@hez2010
Just confirmed this issue hasn't be fixed yet in 0.10.1.
image.png
With error message in debug console: [OpenGL] Unable to initialize OpenGL: current platform does not support multithreaded context sharing (String #1468893309)
larsser
@larsser
Does anyone know what the syntax of PolylineGeometry's Points property is?
Dan Walmsley
@danwalmsley
haha beat me to it
larsser
@larsser
Thanks :)
I get an error:
Unable to parse "0,0 65,0 78,-26 91,39 104,-39 117,13 130,0 195,0" as a point
ahopper
@ahopper
:) shall be releasing some test stuff with 0.10.1 this week so thanks for all the work from everyone, might throw .net 6.0 p3 into the release as well.
larsser
@larsser
Will it be fixed in 0.10.1?
ahopper
@ahopper
what is the full xaml code that fails? as it worked last time I looked
larsser
@larsser
@ahopper this is the whole file:
<Styles xmlns="https://github.com/avaloniaui"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <Design.PreviewWith>
    <Border Background="White">
      <DrawingPresenter Drawing="{DynamicResource Test}" Height="100" Width="500" />
    </Border>
  </Design.PreviewWith>
  <Styles.Resources>
    <DrawingGroup x:Key="Test">
      <PolylineGeometry IsFilled="True" Points="0,0 65,0 78,-26 91,39 104,-39 117,13 130,0 195,0" />
    </DrawingGroup>
  </Styles.Resources>
</Styles>
larsser
@larsser
@ahopper atm. i've sovled it by converting it to a GeometryDrawing
ahopper
@ahopper
at first glance it looks like this is a bug, it works as a Polyline but not a PolylineGeometry but I've never used polylinegeometry. Probably worth opening an issue.
YTN0
@YTN0
Hi all... I am trying to create a horizontally scrollable list of items within a vertically scrollable list. Think groups (vertical list) of items (horizontal list). The problem is... I can scroll horizontally, but not vertically. I am assuming that's because the scroll event is being handled by the inner scrollviewer (horizontal items). How can I pass the vertical scroll events
from the inner scrollviewer to the outer scrollviewer?
SamNChiet
@SamNChiet
Hey everyone! Is it easy to embed avalonia in an existing program with its own structure and setup?
I'd love to spawn little side-windows in my cross platform game engine for editing things (without building my own UI framework),
But most resources I can find all refer to setting up Avalonia projects from scratch. I'm not sure if there's any catches I'd be missing! If this is just the wrong tool for the job.
JohanCardell
@JohanCardell
Hi! I'm a student. I've done a project using WPF and I'm now rewriting the code using Avalonia to make it cross platform. In my WPF app I used CollectionView to sort/filter and display data. I've been struggling to decide how to replace that with Avalonia. I'd like to add pagination as well. Should I go with DataGridCollectionView or implement something based on Dynamic Data? Does anyone have any code examples?
JohanCardell
@JohanCardell
I realize now that there may be no real need for Dynamic Data as there is no need to update the source continuously in my app. I'd love to see an implementation of DataGridCollectionView with some pagination however.
Omer
@omerfarukz
I use standart MVVM template for creating my current sample. There is <local:ViewLocator /> in App.xaml
I want to resolve components with my custom dependency injection in my custom IViewLocator
Registered IViewLocator with my custom implementation
like this:
Locator.CurrentMutable.RegisterConstant(new AppViewLocator(), typeof(IViewLocator));
and removed <local:ViewLocator /> in App.xaml. My view locator is not calling by this logic.
Omer
@omerfarukz
I guess manual override of the IViewLocator not working or I missing something
GeoTox
@GeoTox
Guys, I know, it's probably the wrong place to ask this, but maybe you might have faced the same problems and know the answers.
I'm using Avalonia MessageBox (https://github.com/AvaloniaUtils/MessageBox.Avalonia/). I have two questions.
1) Is it possible to center button texts? (Fluent theme). They are now aligned to the left side.
2) When there're multiple lines in the messagebox text, the lower part of the last line gets cut.
Kao
@Shidesu_gitlab
Hi everyone
I think I'm starting to become crazy, the simplest button of the world is just crashing my app
I have this
<Button Command="{Binding Haha}" Content="Hahahahahahahahahahahaahaha"/>
With this in the view model
public ReactiveCommand<Unit,Unit> Haha { get; }  = ReactiveCommand.Create( () =>
        {
            Console.WriteLine("hahaha");
        });
And i'm getting this wonderful error : Unhandled exception. System.InvalidOperationException: Call from invalid thread
Bartosz Korczyński
@BAndysc
do you have .UseReactiveUI() in Program.cs?
Kao
@Shidesu_gitlab
yeah
Kao
@Shidesu_gitlab
I'm using a dependency controller, the issue seems to come from there but... everything was working fine till now t_t
that's a nightmare
Omer
@omerfarukz
it seems you have to set mainscheduler after DI
Kao
@Shidesu_gitlab
@omerfarukz hi Omer, thanks for the answer, could you elaborate just a bit on this?
check it out
YTN0
@YTN0
Anyone know how I can make the scrolbar thumb control wider? Changing the scrollbar width does not change the thumb control size, which is odd... so if you have a wide scrollbar, the thumb control remains tiny
1 reply
luckydbl
@luckydbl
有没有大佬遇到过openfiledialog打不开的问题啊

public async Task GetPath()
{
var dialog = new OpenFileDialog();
dialog.Filters.Add(new FileDialogFilter() { Name = "Text", Extensions = { "txt" } });
dialog.AllowMultiple = true;

var result = await dialog.ShowAsync();
}
在awat那里就出不来了,这个问题困扰了我好久了,我们组有三个同事能打开,另外4个同事打不开,我的有时候能打开,电脑重启后又打不开了,时好时坏,我们的工作机都是不联网的,是不是avalonia的重大bug?

luckydbl
@luckydbl
I can't get out of awat. This problem has bothered me for a long time. Three colleagues in our group can turn it on, and the other four colleagues can't turn it on. Sometimes my computer can turn it on, and it can't turn it on again after the computer restarts. Sometimes it's good and sometimes it's bad. Our working machines are not connected to the Internet. Is it a major bug of Avalonia?
7 replies