Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 01:15
    Deadpikle commented #3742
  • Apr 04 17:56
    grokys review_requested #3745
  • Apr 04 17:56
    grokys opened #3745
  • Apr 04 17:48

    grokys on 3738-contextmenu-leak

    Added failing leak test for #37… Input manager subscription may … Remove ContextMenu from logical… and 4 more (compare)

  • Apr 04 14:20
    MarchingCube opened #3744
  • Apr 04 14:07
    MarchingCube opened #3743
  • Apr 04 13:35
    kekekeks commented #1756
  • Apr 04 13:24
    jhimes144 commented #1756
  • Apr 04 12:40

    grokys on x11-immediate-renderer-shim

    (compare)

  • Apr 04 12:40

    grokys on master

    Immediate rendering support for… Merge branch 'master' into x11-… Merge pull request #3713 from A… (compare)

  • Apr 04 12:40
    grokys closed #3713
  • Apr 04 12:21
    MarchingCube commented #3352
  • Apr 04 12:21
    MarchingCube closed #3352
  • Apr 04 12:13
    grokys synchronize #3713
  • Apr 04 12:13

    grokys on x11-non-mapped-configure-events

    (compare)

  • Apr 04 12:13

    grokys on master

    [X11] Emulate synchronous resiz… Merge branch 'master' into x11-… Merge branch 'master' into x11-… and 1 more (compare)

  • Apr 04 12:13
    grokys closed #3740
  • Apr 04 11:24
    grokys commented #1756
  • Apr 04 11:24
    grokys commented #1756
  • Apr 04 11:20
    grokys synchronize #3740
Jose C Gomez
@josegomez
🎉🎉
Jose C Gomez
@josegomez
would something like this be worth doing a PR on the Avalonia side of things?
Nikita Tsukanov
@kekekeks
a library in AvaloniaCommunity org
localization is a bit controversial
so it would be unwise to try to force a default approach
Jose C Gomez
@josegomez
hmm interesting fair enough, I'd be willing to throw this in a library in that org if it makes sense or I can just put it out as a nuget too if it helps, just trying to contribute some since you guys have been so awesome
OpenMan
@openmandev

I have dynamical TabControl:

    <TabControl Items="{Binding TabsList}" SelectedItem="{Binding SelectedTab}" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch">

I have a synchronous command in dynamicaly fullfilled ContextMenu in TreeView in one Tab:

      Calibrate = ReactiveCommand.Create
      ( () =>
        {
          CalibrateTabOpen((SelectedNode as TankItem).stnk.tnk);
          // Dispatcher.UIThread.Post((Action)(() => CalibrateTabOpen((SelectedNode as TankItem).stnk.tnk)));
        }
      );

This command raise an event:

    public Unit CalibrateOpen(ecb.t_tnk tnk)
    {
      UserTabItem userTab = new UserTabItem() { TabImage = "Assets/clb.png", TabTitle = "Перечень тарировок", TabType = UserTabItem.UserTabType.CALIBRATES };
      CalibrateViewModel calibrateViewModel = new CalibrateViewModel(userTab,tnk,httpContext);
      TabsList.Add(calibrateViewModel);
      SelectedTab = calibrateViewModel;
      return Unit.Default;
    }

After clicking menu I've got the new Tab, but also I've got an empty ContextMenu (very small rectangle) above my new Tab in the same position where it was before. This empty menu disappeares by clicking in any area. How can I avoid this strange behavior?

K0beBean
@K0beBean
hey is there a reason why I can't disable a NativeMenuItem? I'm setting Enabled to false but its still clickable. I can set its Header so thats working
Steven Kirk
@grokys
@openmandev sounds like a bug. could you open an issue with a minimal repro and i'll try to fix it
OpenMan
@openmandev
@grokys , ok, a little bit later.
Nikita Tsukanov
@kekekeks
@K0beBean which OS?
K0beBean
@K0beBean
Windows 10
Nikita Tsukanov
@kekekeks
Mkay, that should be easy to fix
We are missing the binding here
K0beBean
@K0beBean
ah ok. also it looks like theres no Name so you cant use FindControl, is that intentional
Nikita Tsukanov
@kekekeks
you can copy-paste that style to your App.xaml and add <Setter Property="IsEnabled" Value="{Binding Enabled}"/>
native menu items aren't controls
K0beBean
@K0beBean
thanks
Nikita Tsukanov
@kekekeks
but we should fix that and allow x:Name
K0beBean
@K0beBean
right, but is there an easier way than doing NativeMenu.GetMenu and finding the Items?
ah ok
Nikita Tsukanov
@kekekeks
Right now there is none, I'm afraid
Hyperyor
@Hyperyor
Hello! I'm starting to use avalonia so I was following the tutorial but when I get to the Creating a View section I get an error with the <views:TodoListView/>. I was wondering if someone would know the problem here
Hyperyor
@Hyperyor
ok I solved it, the problem was, of course, me
Jose C Gomez
@josegomez
hello
quick question, from inside a ViewModel (currently on screen) on a button click I am creating a new instance of MainWindow and displaying it as a Dialog
Like so
MainWindow w = new MainWindow();
                        var mwTemp = new MainWindowViewModel(this.sqrlInstance);
                        w.DataContext = mwTemp;
                        w.WindowStartupLocation = Avalonia.Controls.WindowStartupLocation.CenterOwner;
                        mwTemp.Content = new AskViewModel(this.sqrlInstance, this.Identity, serverResponse);
                        await w.ShowDialog(AvaloniaLocator.Current.GetService<MainWindow>());
that works fine except hew new Window I can't click on it still acts as if the (parent) is on top
image.png
This is the main window when I click ok It uses the above code to fire off another window as a Dialog (on top of this one)
image.png
however it ends up like this
where I can continue to click on the Main Window but my new (dialog) is behind
Jose C Gomez
@josegomez
ha! figured it out. MainWindow() calls
AvaloniaLocator.CurrentMutable.Bind<MainWindow>().ToConstant(this); in its constructor
so the new Window was (somehow) effectively making itself it's owner
not sure that should be allowed but... I fixed it
Nikita Tsukanov
@kekekeks
I think we aren't currently checking for dialog owner loops
Jose C Gomez
@josegomez
right that appears to be the case it allowed me to do it, not a huge deal just a heads up
if you'd like I can open an issue
Steven Kirk
@grokys
Yeah if you could open an issue that would be helpful
Jose C Gomez
@josegomez
RadioButton binding, is there a way to have 2 RadioButtons which each "change" the value of the same binding?
I can't see a Value property on the radio button
Daniel Keenan
@dfkeenan
Aww, I was hoping to change (inherit from) NumericUpDown and add a "Small Increment". Somethings are private though. So might have to copy the code and create a new one. My goal is to have a numeric textbox like in Blender: buttons either side of input; click and drag to increment/decrement; use a key modifier to use small increment; be able to do basic math.
Daniel Keenan
@dfkeenan
Why is it so hard to create paths. I tried copying the existing paths into InkSkape and rotate them 90 degrees. But kind of horrible. Any better suggestions?
Daniel Keenan
@dfkeenan
Hacks!!
<Path.RenderTransform>
  <RotateTransform Angle="90" />
</Path.RenderTransform>
Daniel Keenan
@dfkeenan
Hmm, all the math IValueConverter (WPF) I can find have the math in the parameter not as the value.
ahopper
@ahopper
they generally apply the maths to the value though