Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
490
InitializeComponent() as definition not found error
posted

I get error at InitializeComponent() as definition not found error:

any help thanks

vairam

referenced items:

  <ItemGroup>
    <Reference Include="Infragistics3.WPF.Chart.v7.2, Version=7.2.20072.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL" />
    <Reference Include="Infragistics3.Wpf.DataPresenter.v7.2, Version=7.2.20072.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />
    <Reference Include="Infragistics3.Wpf.Editors.v7.2, Version=7.2.20072.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />
    <Reference Include="Infragistics3.WPF.Ribbon.v7.2, Version=7.2.20072.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL" />
    <Reference Include="Infragistics3.WPF.Themes.Fall.v7.2, Version=7.2.20072.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL" />
    <Reference Include="Infragistics3.WPF.Themes.ForestGreen.v7.2, Version=7.2.20072.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL" />
    <Reference Include="Infragistics3.WPF.Themes.Leaf.v7.2, Version=7.2.20072.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL" />
    <Reference Include="Infragistics3.WPF.Themes.Lipstick.v7.2, Version=7.2.20072.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL" />
    <Reference Include="Infragistics3.WPF.Themes.Water.v7.2, Version=7.2.20072.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL" />
    <Reference Include="Infragistics3.WPF.Themes.Wind.v7.2, Version=7.2.20072.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL" />
    <Reference Include="Infragistics3.Wpf.v7.2, Version=7.2.20072.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />
    <Reference Include="System" />
    <Reference Include="System.Core">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Drawing" />
    <Reference Include="System.Windows.Forms" />
    <Reference Include="System.Xml.Linq">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Data.DataSetExtensions">
      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    </Reference>
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />
    <Reference Include="UIAutomationProvider">
      <RequiredTargetFramework>3.0</RequiredTargetFramework>
    </Reference>
    <Reference Include="WindowsBase" />
    <Reference Include="PresentationCore" />
    <Reference Include="PresentationFramework" />
  </ItemGroup>

 code-behind:

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Windows;

using System.Windows.Controls;

using System.Windows.Data;

using System.Windows.Documents;

using System.Windows.Input;

using System.Windows.Media;

using System.Windows.Media.Imaging;

using System.Windows.Navigation;

using System.Windows.Shapes;

using Infragistics.Windows.Ribbon;

namespace WpfIgx

{

/// <summary>

/// Interaction logic for Window1.xaml

/// </summary>

public partial class Window1 : XamRibbonWindow

{

public Window1()

{

InitializeComponent();

}

private void XamRibbonWindow_Loaded(object sender, RoutedEventArgs e)

{

}

}

}

 xaml:

<igx:XamRibbonWindow x:Class="WpfApplication9.Window1"

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

xmlns:igx="http://infragistics.com/Ribbon"

xmlns:igWindows="http://infragistics.com/Windows"

xmlns:editors="http://infragistics.com/Editors"

xmlns:igDP="http://infragistics.com/DataPresenter"

xmlns:themes="http://infragistics.com/Themes"

Title="Window1" Height="300" Width="504" Loaded="XamRibbonWindow_Loaded" >

<Grid Height="273" Width="491">

<igx:XamRibbon Name="xamRibbon1" Height="100" VerticalAlignment="Top" Grid.ColumnSpan="2">

<igx:XamRibbon.ApplicationMenu>

<igx:ApplicationMenu />

</igx:XamRibbon.ApplicationMenu>

<igx:XamRibbon.QuickAccessToolbar>

<igx:QuickAccessToolbar />

</igx:XamRibbon.QuickAccessToolbar>

</igx:XamRibbon>

</Grid>

</igx:XamRibbonWindow>

  • 54937
    Offline posted

    It sounds like you have the wrong project type so the build process is failing. If you exclude that Window from the project and create a new Window in the same project, does that compile?