Skip to content

Exception in oxyplot.Avalonia's StyleInclude #65

@guilhermeolisi

Description

@guilhermeolisi

Hey,

I'm trying to update my project to Avalonia 11, but I had some problems with the Oxyplot.Avalonia nuget package.
On the oxyplot-avalonia main page on github there is an instruction for using oxyplot with Avalonia 11 which I think is wrong, it says AvaloniaEdit in StyleInclude (see screenshot below)

image

I've read the oxyplot.Avalonia examples and they use the code below to include the style:

StyleInclude Source="avares://OxyPlot.Avalonia/Themes/Default.axaml"/>

But in my project I get the following exception in this code: No precompiled XAML found for avares://OxyPlot.Avalonia/Themes/Default.axaml (baseUri: avares://Nimloth/App.axaml), make sure to specify x:Class and include your XAML file as AvaloniaResource

I'm using the latest version of the oxyplot.avalonia nuget package, 2.1.0, and Avalonia 11.0.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions