Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 21:56
    maxkatz6 commented #5141
  • 21:52
    aboimpinto opened #5141
  • 21:47
    aboimpinto edited #5140
  • 21:46
    aboimpinto opened #5140
  • 20:12
    kekekeks commented #5139
  • 18:50
    rstm-sf commented #5139
  • 18:45
    rstm-sf synchronize #5139
  • 17:59
    deagahelio commented #5136
  • 17:37
    Gillibald commented #5139
  • 16:20
    Gillibald synchronize #4893
  • 15:51
    Gillibald synchronize #4893
  • 15:29
    rstm-sf edited #5139
  • 15:23
    rstm-sf edited #5139
  • 15:23
    rstm-sf edited #5139
  • 15:22
    rstm-sf commented #2760
  • 15:17
    Gillibald synchronize #4893
  • 13:22
    Gillibald commented #5136
  • 13:21
    Gillibald commented #5136
  • 13:19
    Gillibald commented #5136
  • 12:00
    dayAndnight2018 closed #5099
bopin
@bopin2020_twitter
image.png

Can you create a small sample project?

Just like usercontrol single class library?

When I executed this command or clicked a menu, error like this:
image.png
Dan Walmsley
@danwalmsley
@bopin2020_twitter sounds like you have version mismatch
what version of avalonia are you targetting
and what other packages are you referencing?
markdown.avalonia added here
remember guys if you have a cool library or app written for /with avalonia
send a pr there to link to it
really nice library
bopin
@bopin2020_twitter

what version of avalonia are you targetting

Avalonia 0.9 other packages like:

image.png
bopin
@bopin2020_twitter
It seems as if this reason of my problem is about version. By default Avalonia project could reference latest version packages,but my old projects about 0.9.11.
bopin
@bopin2020_twitter
That's cool! BTW don't use MainWindow as a new Window because The Main Window cannot be regarded as a child Window,we should create a new usercontrol.xaml and use it
image.png
LauZyHou
@LauZyHou
Is Avalonia support .Net 5.0 now?
ahopper
@ahopper
@LauZyHou yes, it always has, there was an issue with the previewer but I believe that is now fixed.
Rustam Sayfutdinov
@rstm-sf
The issue with the preview was fixed in the marketplace long ago)
ShadowDancer
@ShadowDancer
@LauZyHou yes, it does. I'm running preview5 on net5 without issues, however on preview6 I'm getting exceptions related to UWP projections.
Is anyone using ViewActivation in ReactiveUI?
https://avaloniaui.net/docs/reactiveui/activation
I have to call this.WhenActivated(disposables => { }); in my control, otherwise viewmodel is not activated
It's weird, because by looking at source:
https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.ReactiveUI/ReactiveUserControl.cs
looks like it should be called already
ShadowDancer
@ShadowDancer
It can be worked around by defining my own user control base class with this.WhenActivated(disposables => {; }); but this is not very robust
Dan Walmsley
@danwalmsley
anyone have experience with building VSCode extensions? we have everything ready to go for VSCode previewer... just need someone with experience to help write the extension... might be a nice simple project for someone looking to contribute?
Dan Walmsley
@danwalmsley
@ShadowDancer maybe you might be interested in helping with official vscode extension?
maybe we can combine your existing extension with previewer support and badge it up as the official avalonia extension?
ShadowDancer
@ShadowDancer
Uhm could do it
the only reason it's not official is because there is already some plumbing with msbuild
in Avalonia.IDE
and I didn't wanted to spend loads of time to understand that code, especially considering fact that I do not know msbuild too well
@danwalmsley can you explain what was missing for previewer and what's in Avalonia.IDE/vscode?
Dan Walmsley
@danwalmsley
@ShadowDancer let me contact you directly
dragon script
@dragonDScript
Any solution to the libSkiaSharp.so lib missing?
PieroCastillo
@PieroCastillo

Any solution to the libSkiaSharp.so lib missing?

idk, try with restore the nuget packages, or reinstall net

PieroCastillo
@PieroCastillo
hi, how can I make a property what can accept 2 value types?, like GridRow: this accept int and accept * or auto
Max Katz
@maxkatz6
RowDefinition Height accepts GridLength with static Parse(string) method.
IIRC Parse is special case here. Also there was some attribute that allows to provide conversion from xaml value to clr.
Derek Antrican
@derekantrican
Does TextBlock have the Padding property in 0.9.12? Seems like it should according to https://avaloniaui.net/docs/layout/alignment-margins-padding "....and TextBlock are samples of classes that expose a Padding property" but I keep getting the error "Unable to resolve suitable regular or attached property Padding on type Avalonia.Controls:Avalonia.Controls.TextBlock"
Benedikt Stebner
@Gillibald
That is only available in the latest preview
Tim Schneeberger
@ThePBone
Is it possible to load XAML resource dictionaries dynamically from the file system at runtime? I'm currently porting an app from WPF and am trying to implement a convenience feature for translators to test their translations, without having to compile the whole project themselves.
Tim Schneeberger
@ThePBone
Nvm, I figured out I can use IRuntimeXamlLoader for this.
audinowho
@audinowho
What's the best practice for getting the window of a given control? Should I just walk up the control's Parents until I get to null?
FoggyFinder
@FoggyFinder
let window = self.GetVisualRoot() :?> Window
^ I think something like that
audinowho
@audinowho
ah, an extension method. Very nice.
Mrxx99
@Mrxx99
hi, I wondered why there is no ConverterCulture on "Binding" (like in WPF) but IValueConverter.Convert does take culture as parameter