Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 01 21:09
    grokys synchronize #4779
  • Dec 01 19:31

    danwalmsley on fluent-theme-selector

    (compare)

  • Dec 01 19:31

    danwalmsley on master

    Implement FluentTheme class. F… Update API compat baseline. Renamed Theme -> Mode in Fluent… and 1 more (compare)

  • Dec 01 19:31
    danwalmsley closed #5126
  • Dec 01 15:31
    davidtimovski opened #5127
  • Dec 01 12:53
    grokys edited #5126
  • Dec 01 12:53
    grokys synchronize #5126
  • Dec 01 12:53

    grokys on fluent-theme-selector

    Renamed Theme -> Mode in Fluent… (compare)

  • Dec 01 11:22
    grokys review_requested #5126
  • Dec 01 11:22
    grokys review_requested #5126
  • Dec 01 11:22
    grokys edited #5126
  • Dec 01 11:19
    grokys edited #5126
  • Dec 01 11:19
    grokys opened #5126
  • Dec 01 11:19

    grokys on fluent-theme-selector

    Implement FluentTheme class. F… Update API compat baseline. (compare)

  • Dec 01 10:04
    wuzlai commented #2076
  • Dec 01 08:08
    kekekeks commented #5125
  • Nov 30 23:01
    aboimpinto opened #5125
  • Nov 30 17:47

    danwalmsley on gpu-optimised-deferred-rendering

    Sign assemblies sign test assemblies fix test signing and 4 more (compare)

  • Nov 30 17:12

    danwalmsley on master

    Sign assemblies sign test assemblies fix test signing and 3 more (compare)

  • Nov 30 17:12

    danwalmsley on Sign-assemblies

    (compare)

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
Dan Walmsley
@danwalmsley
well you can pass args[] to your App class, or Viewmodel