Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 06:53

    maxkatz6 on master

    Thread safe SKTextBlobBuilder Merge pull request #5113 from A… (compare)

  • 06:53

    maxkatz6 on thread-safe-SKTextBlobBuilder

    (compare)

  • 06:53
    maxkatz6 closed #5113
  • Nov 27 19:37
    atminatana opened #5114
  • Nov 27 19:25
    maxkatz6 review_requested #5113
  • Nov 27 19:25
    maxkatz6 opened #5113
  • Nov 27 19:23

    maxkatz6 on thread-safe-SKTextBlobBuilder

    Thread safe SKTextBlobBuilder (compare)

  • Nov 27 19:17
    Gillibald synchronize #4893
  • Nov 27 19:13
    Gillibald synchronize #4893
  • Nov 27 12:30
    GihanSoft commented #4708
  • Nov 27 09:24

    MarchingCube on master

    Make ItemContainerInfo.Index se… Merge pull request #5112 from A… (compare)

  • Nov 27 09:24

    MarchingCube on itemcontainerinfo-index-setter

    (compare)

  • Nov 27 09:24
    MarchingCube closed #5112
  • Nov 27 08:40
    Gillibald commented #5111
  • Nov 27 08:28
    grokys opened #5112
  • Nov 27 08:26

    grokys on itemcontainerinfo-index-setter

    Make ItemContainerInfo.Index se… (compare)

  • Nov 27 08:18
    wuzlai edited #5111
  • Nov 27 08:18
    wuzlai opened #5111
  • Nov 27 01:28
    maxkatz6 labeled #5023
  • Nov 27 01:28
    maxkatz6 labeled #5023
Nikita Tsukanov
@kekekeks
so it's completely pointless to test GUI apps there
lorean-devries
@lorean-devries
How can I test a GUI on Linux if I built with Visual Studio, is there documentation for this ?
Nikita Tsukanov
@kekekeks
dotnet publish -r linux-x64
copy to your linux machine
chmod +x YourExecutableFile
./YourExecutableFile
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 ?
Dan Walmsley
@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!
Dan Walmsley
@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
Dan Walmsley
@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
Dan Walmsley
@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?
Dan Walmsley
@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