Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 10:41
    grokys demilestoned #4901
  • 10:41
    grokys milestoned #4901
  • 10:41
    grokys labeled #4901
  • 10:41
    grokys opened #4901
  • 10:39
    bmello4688 commented #4891
  • 10:36
    bmello4688 commented #4891
  • 10:34

    kekekeks on parma-fixes-2020-10

    [X11] Handle PointerLeave throu… Fixed initial pointerover at (0… (compare)

  • 10:31

    kekekeks on enable-popup-dismiss-overlay

    (compare)

  • 10:31

    kekekeks on master

    Enable light dismiss overlay fo… Merge pull request #4898 from A… (compare)

  • 10:31
    kekekeks closed #4898
  • 10:31

    kekekeks on master

    [X11] Handle PointerLeave throu… Fixed initial pointerover at (0… Merge pull request #4899 from A… (compare)

  • 10:31

    kekekeks on xi2-leave-event

    (compare)

  • 10:31
    kekekeks closed #4899
  • 10:27
    jhofinger edited #4900
  • 10:26
    jhofinger opened #4900
  • 10:13
    kekekeks review_requested #4898
  • 10:13
    kekekeks assigned #4899
  • 10:13
    kekekeks opened #4899
  • 10:12
    kekekeks opened #4898
  • 10:11

    kekekeks on enable-popup-dismiss-overlay

    Enable light dismiss overlay fo… (compare)

lorean-devries
@lorean-devries
cool beans and Mac OS ?
is it the same procedure ?
Nikita Tsukanov
@kekekeks
same for OSX
ahopper
@ahopper
I test across multiple machines with linux on a usb stick, useful if you don't want to dual boot or install a vm and better performance than vm
Nikita Tsukanov
@kekekeks
but you need to create an actual .app bundle if you need to distribute
lorean-devries
@lorean-devries
so what commands do I run to make the .app bundle if I am on a Windows machine ?
Steven Kirk
@grokys
@weierstrass1 to set properties that aren' strings or ints, you can use property element syntax: https://docs.microsoft.com/en-us/dotnet/framework/wpf/advanced/xaml-syntax-in-detail#property-element-syntax
Nikita Tsukanov
@kekekeks
not sure about "on a Windows machine "
Steven Kirk
@grokys
so if you wanted to set MyControl.Foo to an instance of MyObject with a Bar property you could do:
<MyControl>
  <MyControl.Foo>
    <MyObject Bar="Baz"/>
  </MyControl.Foo>
</MyControl
lorean-devries
@lorean-devries
cool thanks
ahopper
@ahopper
I've just been updating some code to use Image rather than DrawingPresenter, with vector icons it becomes a bit verbose, I wonder if icon packs should generate DrawingImages rather than Drawings
<!-- DrawingImage stored in resource -->
<Image Source="{DynamicResource VSImageLib.Settings2}" />
<!-- GeometryDrawing stored in resource -->
<Image>
  <Image.Source>
    <DrawingImage Drawing="{DynamicResource VSImageLib.Settings}"/> 
  </Image.Source>
</Image>

<DrawingPresenter Drawing="{DynamicResource VSImageLib.Settings}" />
this would mean you can swap between drawings, bitmaps and svg just by changing the resource
Steven Kirk
@grokys
maybe we could have a typeconverter to convert Drawing into DrawingImage automatically?
or would that be confusing?
Benedikt Stebner
@Gillibald
I don't think this will be still an issue when svg is supported.
Benedikt Stebner
@Gillibald
Also reusing the same drawing everywhere potatially break the moment you animate things.
Jose C Gomez
@josegomez
is there a way to set / force focus on a particular control ?
danwalmsley
@danwalmsley
control.Focus()
if you are in your viewmodel world, you will want to implement a behavior probably like:
Jose C Gomez
@josegomez
lol kinda obvious sorry @danwalmsley for the silly question (poorly worded rather) i am in a ViewModel and replacing the DataContext
Jose C Gomez
@josegomez
when the dataContext is a specific Model I want to focus on a specific control
this behavior works when it is the only control on the screen that you want to focus
and it will focus it when its displayed
or maybe your scenario is more complex?
Jose C Gomez
@josegomez
image.png
Actually I think its fairly similar
is just a single textbox on there and I want to be focused on the password box
thank you!
danwalmsley
@danwalmsley
you will need a couple of nuget packages, at some point in the future these will probably come with Avalonia
Jose C Gomez
@josegomez
works great !! thanks so much @danwalmsley
danwalmsley
@danwalmsley
no problem, remember anytime your tempted to write code behind (.xaml.cs) to directly manipulate a control like that, just create a behavior, that way you maintain MVVM pattern, you wont run into issues later either or make your app difficult to maintain.
Jose C Gomez
@josegomez
yeah that makes a lot of sense
I was heading down the OnAttached Event, search controls, set Control.Focus() path
thank you for straightening me out
danwalmsley
@danwalmsley
behaviors are reusable, so you wont have to re-write that code over and over on every view
Jose C Gomez
@josegomez
btw is there an Avalonia built in / Sanctioned way of parsing / reading from command line params?
danwalmsley
@danwalmsley
no, but there are several nuget packages that can do that for you I beleive
Jose C Gomez
@josegomez
I ended up using Environment.CommandLine
just didn't know if there was a way to pass args[] directly into App.cs
danwalmsley
@danwalmsley
well you can pass args[] to your App class, or Viewmodel
Jose C Gomez
@josegomez
fair enough works fine just wanted to make sure I wasn't hacking my away around stuff
danwalmsley
@danwalmsley
prob Environment.CommandLine is good
Jose C Gomez
@josegomez
yeah thanks I tested it in Nix too and works. BTW WSL is working great too now so thank you again for that
I get about 2 billion angry looking warnings on console
but it works