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

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

VS 2010 crash when add ContentPresenter to a DataTemplate

Posted By:      Posted Date: September 29, 2010    Points: 0   Category :WPF

As explained in the subject I'm defining a DataTemplate for a ContentControl (or Button in the same way). When I add the ContentPresenter to the data template the IDE crashes with any exception message.


Do anybody know the cause or have the same problem?



View Complete Post

More Related Resource Links

SharePoint Workspace 2010 Crash



I was redirected from Office forum to here, hope someone can help. The Problem is:


When trying to access certain account in Office SharePoint Workspace 2010, the user gets the following error:

Problem signature:

  Problem Event Name:                        APPCRASH

  Application Name:                             GROOVE.EXE

  Application Version:                    &nb

Visual studio 2010 crash (Stop) when I Lock my computer


I am using Visual Studion 2010 on OS XP. Everytime I LOCK my computer it Crash or stop.

Please tell me any solution.


TextBox within DataTemplate for ContentPresenter not triggering update event


I have designed a complex DataTemplate to re-use among several ContentPresenters I have on a dialog. Within this DataTemplate I have a TextBox that is bound to a DependencyProperty of a custom UserControl. I'm having trouble setting the binding correctly to get updates reflected in my viewmodel. Setting the TextBox text from the property value works correctly, but not the other direction, updates when the user changes the text are not updating the source. I've created a small sample program to illustrate the issue.


<Window x:Class="TestBinding.MainWindow"
    Height="203" Width="223">
    <DataTemplate x:Key="CustomUcTextBoxTemplate">
        <Grid >
          <TextBox x:Name="testTextBox" Height="28" 
            Text="{Binding Path=Title,
               RelativeSource={RelativeSource FindAncestor, Ancest

VS 2010 RTM Crash when WPF designer loads a buggy control


One of my projects had custom control with a bug in it.  The bug was that OnApplyTemplate was calling itself instead of base.OnApplyTemplate().  Clearly a bug - stack overflow.

I don't expect VS to die hard when loaded into the designer though.  Both Blend 3 and VS just suddenly die.  I suspect Blend 4 would too.

To repro:

Create a custom control.  Create some other control/usercontrol where you'll use the custom control.

In the first control, add an override for OnApplyTemplate.  In that method, call OnApplyTemplate (*without* base.).  Now, in XAML mode, go add that to the user control. It'll compile fine, etc.  Now switch to design mode....boom.

DataTemplate and ContentPresenter




i have a contentprenster = myobject; For myobject is a DataTemplate definied...

Now i would like to get a reference on the content of the datatemplate.


Thank you

ASP.NET, HTML, JavaScript Snippet Support (VS 2010 and .NET 4.0 Series)

This post covers another useful improvement in VS 2010 - HTML/ASP.NET/JavaScript snippet support. Snippets allow you to be more productive within source view by allowing you to create chunks of code and markup that you can quickly apply and use in your application with a minimum of character typing.

Visual Studio has supported the concept of "snippets" for VB and C# in previous releases - but not for HTML, ASP.NET markup and JavaScript. With VS 2010 we now support snippets for these content types as well.

Clean Web.Config Files (VS 2010 and .NET 4.0 Series)

.NET 4 includes a new version of the CLR, and a new .NET 4 specific machine.config file (which is installed side-by-side with the one used by .NET 2, .NET 3 and .NET 3.5).

The new .NET 4 machine.config file now automatically registers all of the ASP.NET tag sections, handlers and modules that we've added over the years, including the functionality for:

.ASP.NET Dynamic Data
.ASP.NET Routing (which can now be used for both ASP.NET WebForms and ASP.NET MVC)
.ASP.NET Chart Control (which now ships built-into ASP.NET V4)
What this means is that when you create a new "Empty ASP.NET application" project in VS 2010, you'll find that the new default application-level web.config file is now clean and simple:

Architecture Tools in VSTS 2010

Designing new functionality on existing applications can be daunting. There are always differences between the original design and the current implementation.

The new Architecture tools within Visual Studio Team System 2010 help you understand the application you have, design new functionality you need, and validate that your design and your implementation do not deviate.

VB and C# enhancements in VS 2010

In Visual Studio 2010, we've made several enhancements to our two most popular languages, Visual Basic and C#, to give programmers all the tools they need to build great software no matter which language they prefer.

The Visual Basic team focused on adding productivity features to the language so developers can get more done in fewer lines of code. The most common customer request for Visual Basic is to remove the underscore ("_") character when breaking a code statement across multiple lines in most cases. Visual Basic 10 introduces implicit line continuation, which removes the need for the underscore character in most cases.

Code Optimized Web Development Profile (VS 2010 and .NET 4.0 Series)

When you first run VS 2010 it prompts you to select an IDE profile to use. The profile you select will configure how tool windows are displayed/docked in the IDE by default and set the default keyboard shortcuts. You can then customize any of these settings by using the Tools->Options menu within the IDE and then override/change them. You can also later reset your profile and pick a different one by choosing the Tools->Import and Export Settings menu command.

VS 2010 and .NET 4 Series

VS 2010 and .NET 4 are the next major releases of our developer tools and framework. Together they contain a ton of new functionality and improvements that I think you'll really like, and which make building applications of all types easier, faster and better. The improvements range from nice small tweaks to major, major enhancements - and can be found across the .NET Framework, the languages, and the IDE.

ASP.NET 4 and Visual Studio 2010 Web Development Beta 2 Overview

Many exciting changes for ASP.NET are coming in the .NET Framework version 4. This document gives an overview of many of the new features that are included in the Beta 2 release of the .NET Framework 4 and of Visual Studio 2010.

Visual Studio 2010 Beta 2

This is a big deal. This isn't ".NET 3.6" - there are a lot of improvements of .NET 4, and it's not just "pile on a bunch of features so you get overwhelmed." I've been working with and talking to many of the teams involved and even though it's a cheesy thing to say, this is a really customer-focused release.

ASP 4 - Whirlwind Tour around .NET 4 (and Visual Studio 2010) Beta 1

There's a lot of stuff that's new and added in .NET 4, but not in that "overwhelming-I-need-to-relearn-everything" way. More in that, "oh, this is way easier/simpler now" way. Like, moving data around with ADO.NET DataServices is easy, binding with client templates is easy, there's F# if you need it, the "dynamic" keyword if you need it, Silverlight's already installed, oh, and the parallel stuff will freak you out, but in a good way.

Short Overview of SharePoint Features in Visual Studio 2010

As you probably know, Visual Studio 2010 was announced earlier this week and it contains a lot of cool features and project templates for SharePoint developers. Below is a short overview for some of the SharePoint development related features and project templates.

How to get more information about the exceptions that can happen in SharePoint 2010 projects?

In case there is an exception anywhere in the SharePoint 2010 project (most common place an exception would happen is during deployment of your SharePoint project, custom deployment configuration or custom deployment steps), there's a registry key EnableDiagnostics available for you to use.

Regrading Sharpoint 2010 problem and solutions

We can write your question and problem on this blogger.you get ans.use.
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