I am trying to use 'System.Windows.Controls.GridViewColumn' within Visual Studio 2013, .net 4.5, but I am receiving this error :
The type 'GridViewColumn' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
Looking within my Reference Manager, I have this message under the Assemblies tab :
All of the Framework assemblies are already referenced. Please use the Object Browser to explore the references in the Framework.
When I browse through I cannot find 'PresentationFramework.dll'. Here is the MSDN for the class : http://msdn.microsoft.com/en-us/library/system.windows.controls.gridviewcolumn(v=vs.110).aspx
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
I have tried to add using System.Windows.Controls.GridViewColumn
but am receiving this error:
The type or namespace name
Controls
does not exist in the namespaceSystem.Windows
(are you missing an assembly reference?)
EDIT:
For WhyCry, when I search as you suggested I still don't get any results.
Perhaps I need to use a different GridView? Maybe Windows.UI.Xaml.Controls
?
As you're creating Windows store apps, which is based on WinRT, while this GridViewColumn control is one of the WPF controls.
WPF and WinRT are mutually exclusive, you can not use WPF control in Windows Store apps. Please read this: Windows 8 Store Applications Vs. WPF Applications