.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

VS2008 SP1 + WPF XAML editor breaks IntelliSense (Bug)

Posted By:      Posted Date: October 16, 2010    Points: 0   Category :WPF
 
Hallo.

The scenario is:
1) open just 3 primitive template based XAML files in XAML editor (without showing WPF designer even)
2) close two of opened xaml files
3) Check intelliSense - it wouldn't work untill you restart VS.

If you open 2 XAML files - it works fine, but 3 -XAML - is enought for VS2008SP1 to fall down.

My XAMLs are following:

XAML1:
<UserControl x:Class="AutoTrader.Quotes.CellLotsTemplateControl" 

View Complete Post


More Related Resource Links

Disable XAML Intellisense in Macro (VS2010 IDE)

  
I'm writing a few macros to insert XAML code I often use into the VS2010 XAML editor. This works OK, but Intellisense is interpreting the code as it's being inserted. This causes syntax errors. Here's an example of the inserted code: <Grid> <Grid.RowDefinitions> <RowDefinition></RowDefinition> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition></ColumnDefinition> </Grid.ColumnDefinitions> </Grid> The inserted code is a bit more complex as it includes properties I commonly use, but this will help illustrate the problem.When the code is inserted, Intellisense completes the definitions. For example, after <Grid> is inserted, Intellisense adds a corresponding </Grid>, which makes the code syntatically incorrect.How can I automatically disable Intellisense before the code is inserted and enable it after (within the macro)? After the code is inserted, I'd like to automatically reformat it.Thanks!

VS2010 XAML namespace intellisense not working

  
When I type in a namespace in XAML, I'm not getting any intellisense. For example: xmlns:local="" In VS2008 I would get a long intellisense list here. In VS2010 I get nothing. I have tried this on 2 different computers. What am I missing?

Unhandled exception in XAML editor from control that accesses database. - "System.Data.SqlServerCe.S

  

Hello,

Im having a bit of difficulty with some WPF/C#/SQL Server CE code.

I have a WPF User Control with the following line of code in the constructor:

MyDatabase database = new
 MyDatabase("Data Source=|DataDirectory|\\MyDatabase.sdf"
 );

where MyDatabase is a class generated using SQLMetal.exe from MyDatabase.sdf.

 

When I added this control to other controls, the application runs fine and I'm able to access my database. When I try to edit these parent controls,  the XAML editor throws the following error:

 

>System.Data.SqlServerCe.SqlCeException
>The database file cannot be found. Check the path to the database. [ Data Source = D:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\MyDatabase.sdf ]

 

Why does the XAML editor redirect my DataDirectory to "D:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\" and why does the XAML editor execute my database access code?

 

How can I fix this so I can use this control in a XAML editor?

Thanks,

Greg S.

 


Unhandled exception in XAML editor from control that accesses database. - "System.Data.SqlServerCe.S

  

Hello,

Im having a bit of difficulty with some WPF/C#/SQL Server CE code.

I have a WPF User Control with the following line of code in the constructor:

MyDatabase database = new
 MyDatabase("Data Source=|DataDirectory|\\MyDatabase.sdf"
 );

where MyDatabase is a class generated using SQLMetal.exe from MyDatabase.sdf.

 

When I added this control to other controls, the application runs fine and I'm able to access my database. When I try to edit these parent controls,  the XAML editor throws the following error:

 

>System.Data.SqlServerCe.SqlCeException
>The database file cannot be found. Check the path to the database. [ Data Source = D:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\MyDatabase.sdf ]

 

Why does the XAML editor redirect my DataDirectory to "D:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\" and why does the XAML editor execute my database access code?

 

How can I fix this so I can use this control in a XAML editor?

Thanks,

Greg S.

 


XAML Intellisense not working

  

Hello everyone, I am using VSTS2008 SP1, and after resetting my user profile settings of VSTS, Intellisense on my XAML page stopped working. And I'm not sure if this issue is related, I am also getting this error message every time I try to paste something onto the XAML page.

"Value cannot be null. Parameter name: name" with no additional details available provided


XAML intellisense stopped working for project

  
We are working on a WPF-based application and have recently lost XAML intellisense on the project. Here's what we've discovered:

  1. XAML intellisense only fails to work in XAML files where we reference a CLR namespace inside the current assembly (using xmlns:s="clr-namespace=Namespace.Name"). 
  2. If we clean the solution, XAML intellisense works for all XAML files no matter what namespace is referenced - even for custom controls
  3. If we then rebuild the solution, intellisense stops working again 
  4. If after building we add an assembly reference pointing to the current assembly to the namespace references (using xmlns:s="clr-namespace=Namespace.Name;assembly=CurrentAssemblyName"), intellisense works again, but building fails (I'm assuming because we're trying to reference an assembly that hasn't been built yet)

Has anyone experienced anything like this before?


VS2008 WPF Xaml: Is there a path length limit when loading an assembly?

  

Hello,

It seems that there is a path lenght limit for VS2008 when loading XAML assemblies.

Using the Microsoft sample Southridge, if the project is stored on "C:\Projects\C# samples\Southridge_Labs\1.Southridge_Fundamentals\Start" the designer does not load the assemblies.

But if I copy my files the project to the root (C:\Southridge_Labs\1.Southridge_Fundamentals\Start) then it works fine.

Basically I have solved my problem, but I want to know if there is an EXPLICIT limit and I cannot find any information related.

Thanks for your help.


VS2008 SP1 crash when opening XAML designer

  
Dear Sir,

I repeatedly encounter a hard crash each time I open a specific XAML file in the VS2008 designer (C# project). This repeats every time (frustrating). I use Windows 7 ultimate, VS2008 SP1 TFS (SP1 installed after TFS). Please find the attached entries from my Application event log below.

I understand that there is no SP2 yet and that there is some confusion with respect to the hot fixes in the forums. I would be happy if I could get a pointer to a relevant hotfix, since I cannot find anything that seems to fix my problem. It would also be interesting to know if/when a SP2 will be released, since there seems to be quite a few people out there with quite serious stability issues.

Yours sincerely,
G.

PS As for other threads on this forum: 1) Having the toolbox pane open does not fix my problem. 2) And the fix in KB963035 does not work for me although I (in addition to the problem described here) also get the "busy waiting for an internal operation" message a few times a day.


First entry:

Faulting application name: devenv.exe, version: 9.0.30729.1, time stamp: 0x488f2b50

Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000

Exception code: 0xc00000fd

Fault offset: 0x0e

No xaml designer in vs2008

  

 

I create WPf application, but i can not see the xaml designer, that means only xaml code exists, no interface.

 

The application can run and display xaml page

 

when I try to view the xaml designer, the error messeage is:

 

There is no editor available for "~~~/××.xaml" . Make sure the application for file type(.xaml) is installed.

 

 

I have try many times to install framework 3.5, vs2008 express edition, vs2008 beta2 professional, vs2008 trial edition, but still no work

 

please:

 

   how to install xaml editor? or how to install application for .xaml? or what should i install?

 

 

Thanks


intellisense .xaml visual studio 2008

  

hi all,

I've just installed Silverlight toolkit for VS 2008. after some difficulties, it works fine no.

But i got a problem concerning editing .xaml files. actually Intellisense (complete word function) doesn't work inside tags.

I don't know how to fix it.

 

I've already cheked the Registry keys as it's adviced in forums as solution, but they are ok

 

please help it's urgent


Please help


Creating custom Intellisense-based text editor like Pex for Fun

  

We would like to create a custom text editor which allows our end users to enter .Net code that hooks into our .Net API with Intellisense similar to how it is done on the Pex for Fun website: http://www.pexforfun.com/

Is there a way to build a custom control text editor (or use a 3rd party free or purchased control) that supports .Net Intellisense  in the same way done by Microsoft on the Pex for Fun website?

Thanks.


Intellisense problem in VS2008

  

Hi,

I have an intellisense problem in VS2008. I use code-behind, and though I can declare ASP elements in the aspx file, it's as if the code can't see them. The pages run OK, but when I type

anAspLabel and then '.' for example, intellisense does not pop up the methods and members for this asp label.

I've tried the reset option in Options > Text Editor. Intellisense works fine if the class instance is declared in the code behind file, but it won't recognise web controls declared on the aspx page.

Can anyone help? 


Mshtml/WebBrowser based html editor breaks with IE9

  
My 32-bit .net 3.5 winforms app hangs if run concurrently with IE9. It uses the System.Windows.Forms.WebBrowser control for editing html along with the IHTMLDocument2 COM interface. The app references mshtml. This did not happen with IE8.

What's new in XAML of .NET 4.0

  
With .NET 4.0 Microsoft will bring up a improved version of XAML. This arcitle shows you the language enhancements they made.
Easy Object References with {x:Reference}

Built-in Types

Generics in XAML with x:TypeArguments

Support for Arbitrary Dictionary Keys

Use of Non-Default Constructors with x:Arguments

Use of Static Factory Methods with x:FactoryMethod

no intellisense, smart tag, extender wizard etc

  

Development Environment:  VS 2008 Pro, IIS 6, asp.net 2.x, sql 2005 server

Installed the version of AJAX Toolkit and Library for the .net 2.0 compatibility (as IIS is still using 2.x)

The problem is as that within the vs 2008 pro, when I select for example a button control...there should be an additional pop-up intellisense indicating...add extender.

to compound this, within the extender control ... the TargetControlID -- should be a drop-down list, indicating which controls are compatible with the extender ... there is no drop-down list.

even if I manually type the control to associate the extender with, this has no effect on the control (such as textbox control) -- as there should be another option appear indicating the association has taken place).

 below is the steps to take (as written by MS) -- but this is what I am not getting:

"If the Button Tasks shortcut menu does not appear, right-click the Button control and then click Show Smart Tag."  -- the smart tag is not appearing

______________________________________________________--
To add an AJAX extender control
Switch to Design view.

If the page does not already contain a ScriptManager control, from the AJAX Extensions tab of the Toolbox, drag one onto the page.

Note:
A ScriptManager c

crystal reports on mvc 2 vs2008

  

hi, i'm a new user of mvc 2, so, i need to use crystal reports on mvc 2, actually, i'm developing on visual studio 2008, but i can´t run my reports. it's posible run my reports???


thank you very much.


Embed Youtube inside Ajax Html Editor- problem

  

Hi,

When inserting a simple embed of youtube inside the ajax editor, on firefox and chrome problems occur. On the other hand on internet explorer 8 everything works fine. I found this solution http://www.nopcommerce.com/boards/t/4228/bug-in-ajax-html-editor.aspx . 

My question is where do I find the DesignPanel.pre.js ?


Thanks,

Roderick Vella


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend