© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
19 replies
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>
<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}"
Content="{Binding Content}"

AVLN:00C Cannot parse a compiled binding without an explicit x:DataType directive to give a starting data type for bindings
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
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Converting From ReactiveUI to Community Toolkit
C#CC# / help
2y ago
Maui CommunityToolkit MediaElement
C#CC# / help
2y ago
❔ ✅ Databinding using CommunityToolkit.MVVM
C#CC# / help
3y ago
CommunityToolkit.MVVM ObservableProperty and JsonIgnore
C#CC# / help
15mo ago