These are chat archives for AvaloniaUI/Avalonia

30th
Jan 2019
Steven Kirk
@grokys
Jan 30 00:06
but the bug was in AvaloniaPropertyRegistry, right? so you can test that AvaloniaPropertyRegistry handles a call to both methods correctly
BarsikTheCaT
@BarsikTheCaT
Jan 30 10:40
Hello, could anyone explain binding modes to me? I have a datacontext bound to my Grid and that datacontext has several fields. Some of them are bound like this
<TextBlock Grid.Row="5" Grid.Column="1" Text="{Binding Path=Nu, Mode=OneWay}"/>
But the changes done to the fields are not reflected on the textbox
Am I missing something or this is not the purpose of oneway binding mode?
The starting values (assiagned via constructor) are shown, but changes are not
Nikita Tsukanov
@kekekeks
Jan 30 10:46
you need to implement INotifyPropertyChanged
=\
Is that even an Avalonia interface? API search gives nothing
BarsikTheCaT
@BarsikTheCaT
Jan 30 11:28
Thanks
The joy of converting all auto properties into full ones though...
If you don't mind their aggressive policy and special handling of "IsChanged" property
BarsikTheCaT
@BarsikTheCaT
Jan 30 11:41
I'll be more mindful with my property definitions from now on
ReIaxo
@ReIaxo
Jan 30 14:09
Just noticed, that a table in the API Doc is not displayed correctly.
http://avaloniaui.net/api/Avalonia.Controls/Calendar/
Under Remarks headline, second from bottom, should be displayed as table i think.
Benedikt Schroeder
@Gillibald
Jan 30 15:50
Is xml:space="preserve"supported to preserve whitespaces in XAML?
Otherwise noone will ever be able to write this: <Run>Hello </Run><Run>World</Run>
Actual result: HelloWorld
Expected: Hello World
This syntax isn't working: <Run>I<Run/> am <Run>a</Run> Run
Benedikt Schroeder
@Gillibald
Jan 30 16:05
This is the only syntax that works:
<StackPanel Orientation="Vertical" Spacing="8">
    <TextBlock>A simple TextBlock with unformatted text.</TextBlock>
    <TextBlock>
        <Run Text="A "></Run>
        <Run Classes="code">TextBlock</Run>
        <Run Text=" with "></Run>
        <Run FontWeight="Bold">differing</Run>
        <Run FontStyle="Italic" Text=" styles"></Run>
        <Run FontSize="24" Text=" and fonts"></Run>
        <Run>.</Run>
    </TextBlock>
    <TextBlock>
        <Run Text="A "></Run>
        <Run Classes="code" Foreground="Gray">TextBlock</Run>
        <Run Text=" with "></Run>
        <Run Foreground="Red">differing</Run>
        <Run Foreground="Green" Text=" colors"></Run>
        <Run>.</Run>
    </TextBlock>
    <TextBlock>
        <Run Text="A "></Run>
        <Run Classes="code">TextBlock</Run>
        <Run Text=" with "></Run>
        <Run Foreground="Orange" FontStyle="Italic" Text="{Binding}"></Run>
        <Run>.</Run>
    </TextBlock>
    <TextBlock>
        <Run Text="A "></Run>
        <Run Classes="code">TextBlock</Run>
        <Run Text=" with a "></Run>
        <LineBreak/>
        <Run>line break.</Run>
    </TextBlock>
</StackPanel>
nicolasr75
@nicolasr75
Jan 30 17:10
I have a very strange issue with running my app on a Raspberry PI since yesterday. I updated to the newest build from some pre-0.7 build and suddenly no input in my window is possible anymore. I can not write to any text boxes nor can I click any buttons! The same app works on Windows as expected. I stripped it down to a simple app with only a button and a textbox - same behavior! The Raspberry PI runs Linux Mate and I also linked to Avalonia.Skia.Linux.Natives which now supports ARM. Any ideas?
soerendd
@soerendd
Jan 30 17:44
Does escaping like &#32; work?
nicolasr75
@nicolasr75
Jan 30 20:57
Regarding my issue above: I switched between different builds and tested each on the Raspberry and it looks like build989 does not have the issue, all newer versions have.
Steven Kirk
@grokys
Jan 30 21:39
@Gillibald does the version of portable.xaml that you're using include this PR? cwensley/Portable.Xaml#103
i think that PR should have fixed it
Milosz Kukla
@miloszkukla
Jan 30 22:48
@kekekeks I can see there is a branch called droid
could it be used for Android development?
it would be nice to have a branch where all Android projects are upgraded to relatively new version of Android SDK (e.g. 8.0 Oreo) even if they don't compile but can be starting base for fixing things
Milosz Kukla
@miloszkukla
Jan 30 22:53
but some days ago you mentioned some kind of re-do you wanted to do, do you have something particular in mind and is there any kind of time-frame for this?
I could try to spend some on this because I need to write an app and just from a start, using Xamarin.Forms wasn't as pleasant as I hoped it to be