These are chat archives for AvaloniaUI/Avalonia

29th
Aug 2018
cm4ker
@cm4ker
Aug 29 2018 03:51
Hi folks!
Seems I found the assembly load issue AvaloniaUI/DataGrid#6
But I don't understand how right fix this. What I can - get all references from assembly and force load it into AppDomain
But I feel it not correct solution...
Anyone can put me on right way? I make PR for fix this
WojciechKrysiak
@WojciechKrysiak
Aug 29 2018 04:15

@cm4ker you could add an extension method similar to

static AppBuilder BuildAvaloniaApp()
           => AppBuilder.Configure<App>()
                .UsePlatformDetect()
                .UseReactiveUI()
                .LogToDebug();

but it would just be an empty helper method only useful to load the DLL (with the added benefit that it would be visible to the designer)

-by extension method I mean things like UseReactiveUI()
cm4ker
@cm4ker
Aug 29 2018 04:16
Yea... UseDataGrid() for example
WojciechKrysiak
@WojciechKrysiak
Aug 29 2018 04:16
for example
my personal preference would be to gather all the plugins via assembly scanning, but it's both costly for performance and I'm not a commiter
but an extension method seems like a good compromise
cm4ker
@cm4ker
Aug 29 2018 04:18
I thought about this, but it complex for supporting...
WojciechKrysiak
@WojciechKrysiak
Aug 29 2018 04:18
How so?
cm4ker
@cm4ker
Aug 29 2018 04:20
You must remember what you need to add the extensinons at the app building...
but...
You are right this is not a big deal )
Add 1 line of code
I just compare with WPF expirience
AFAIK you don't add any code. You just reference assembly and you can use this.
Jeremy Koritzinsky
@jkoritzinsky
Aug 29 2018 04:29
This is what the concept of Avalonia Modules was supposed to help with. I haven't had a chance to add it to our net core runtime support library but once I add it there then you should be able to use the UseAvaloniaModules method on the app builder to auto load the assemblies.
Sergey
@PurpleGray
Aug 29 2018 09:50
Is there any implementation of MaskedTextBox control for Avalonia?)
In my case I needed digit/or anything else pattern
Like this:
          <controls:FilteredTextBox Grid.Column="1" Margin="3" VerticalAlignment="Center" HorizontalAlignment="Stretch"
                   Text="{Binding DurationEntered}" MaskPattern="00.00.00" Width="95" />
So user will be able to enter only 12.34.56 for example
Sergey
@PurpleGray
Aug 29 2018 12:11
fix, caretindex should be decreased after each SetText: CaretIndex -= e.Text.Length;
Benedikt Schroeder
@Gillibald
Aug 29 2018 18:14
Exloring Typography is so much fun. Looks like this is our way to go. It is probably wasted time to implement advanced text processing with SharpDX and SkiaSharp. The only platform specific that we need is for system fonts the remaining part should be handled the same on all platforms.
William Humphreys
@WHumphreys
Aug 29 2018 20:55
I we any closer to having a new release?
Benedikt Schroeder
@Gillibald
Aug 29 2018 20:58
Is there a reason HeaderedContentControl has no HeaderTemplate?
Should ContentPresenter.Content default to DataContext?