C#C
C#2y ago
Mek

✅ Switching from ReactiveUI to CommunityToolkit

<Window xlmns="https://github.com/avaloniaui"
        xlmns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        x:Class="Diary.Views.MainWindowView"
        Icon="/Assets/logo.ico"
        Width="1500"
        Height="850"
        Title="Diary"
        Content="{Binding Content}"
        WindowStartupLocation="CenterScreen">
</Window>
I'm using CommunityToolkit now and I'm getting the error on the line Content="{Binding Content}"
AVLN:00C Cannot parse a compiled binding without an explicit x:DataType directive to give a starting data type for bindings
and I'm not sure what to do. This works just fine in ReactiveUI
Was this page helpful?