Is WPFtoolkit compatible with .Net 4.5?

I get this error when starting the application.

Origin XmlParseException Failed to load file or assembly 'System.Windows.Controls.DataVisualization.Toolkit, PublicKeyToken = 31bf3856ad364e35' or one of its dependencies. The system cannot find the specified file.

Xaml

<UserControl x:Class="myNamespace.Views.ChartView"
         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         xmlns:chart="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
         xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
         mc:Ignorable="d">
<Grid>
    <Label Margin="10" Content="Scatter series" />
    <chart:ScatterSeries DependentValueBinding="{Binding Value}"
                         IndependentValueBinding="{Binding Key}"
                         ItemsSource="{Binding PlotValues}" />
</Grid>

ViewModel:

 public ObservableCollection<KeyValuePair<double, double>> PlotValues
    {
        get { return _plotValues; }
        set { _plotValues = value; }
    }

Xaml

+4
source share
1 answer

I think your problem is related to a dependency detection problem / error in Visual Studio or MSBuild (a related error can be found here ).

, :

  • WPF
  • System.Windows.Controls.DataVisualization.Toolkit NuGet UserControl ( WPF).
  • , ,

, - ( XAML) Visual Studio , , , /, , , (#, XAML).

, , , Visual Studio , :

  • ( )
  • # ( )
  • NuGet .dll ,

, , , Visual Studio dll XAML ( , , ).

: Microsoft Connect, , , .

+1

All Articles