Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hmm ... Puzzling Usage from XAML #1

Open
jamsoft opened this issue May 3, 2021 · 0 comments
Open

Hmm ... Puzzling Usage from XAML #1

jamsoft opened this issue May 3, 2021 · 0 comments

Comments

@jamsoft
Copy link

jamsoft commented May 3, 2021

The only example shows constructing charts in code. How is this done in XAML?

<microcharts:MicrochartControl>
    <microcharts:MicrochartControl.Chart>
        <microcharts:LineChart Entries="{Binding UsedRam}" />
    </microcharts:MicrochartControl.Chart>
</microcharts:MicrochartControl>

Doesn't work:

[XAMLIL] Unable to find suitable setter or adder for property Entries of type Avalonia.Microcharts:Avalonia.Microcharts.Chart for argument Avalonia.Markup:Avalonia.Data.Binding, available setter parameter lists are:
System.Collections.Generic.IEnumerable`1<Avalonia.Microcharts.Entry>
Avalonia.Microcharts.Entry Line 22, position 48.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant