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

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

Visual State Manager conflicts with WPFtoolkit.

Posted By:      Posted Date: September 12, 2010    Points: 0   Category :WPF
how can i get the wpftoolit to work together with framework 4.0? when i add a VisualStateManager item to my xaml-file in vs 2010 i get the following error: The type 'System.Windows.VisualStateGroup' exists in both 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\PresentationFramework.dll' and 'c:\Program Files (x86)\WPF Toolkit\v3.5.50211.1\WPFToolkit.dll' thanks for your help regards

View Complete Post

More Related Resource Links

Problem setting Foreground with Visual State Manager (WPF - .Net v4.0

0 down vote favorite I have a WPF application, and I am attempting to style a TextBox using the .Net v4 Visual State Manager. Specifically, I am attempting to set the colors of the Foreground and Background for the MouseOver state. What is happening is that, while the background and border are changing perfectly, the foreground is not. If the brushes that I am using get their color via a StaticResource, then the foreground does not change at all. If the brushes that I am using get their color via a DynamicResource, then when I mouse over a TextBox, the foreground of all TextBoxes change. Clearly, either I'm doing something wrong, or what I want to do is simply not possible with VSM (which would be rather disappointing). Here are the resources that I am using:   <Color x:Key="ControlBackgroundColor" R="178" G="178" B="178" A="255" />  <Color x:Key="ControlForegroundColor" R="0" G="0" B="0" A="255" />  <Color x:Key="BorderColor" R="127" G="127" B="127" A="255" />  <Color x:Key="MouseOverControlBackgroundColor" R="0" G="0" B="0" A="255" />  <Color x:Key="MouseOverControlForegroundColor" R="255" G="2

InvalidOperationException in VS2010 WPF Designer on Visual State Manager



When adding WPF styles through control templates and resourcedictionarys VS2010 throws an InvalidOperationException error in the designer on controls when certain properties are set, that link back to the Visual States. I thought this must be the way i was creating the Visual States (i am using Blend 4.0) but I am also getting the same error, even using the ControlTemplateExamples downloaded from the msdn site.  http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=wpfsamples&DownloadId=7741

I opened up the solution in VS2010, then opened MainWindow.xaml (split screen - designer and markup)


'System.Windows.Media.Animation.ColorAnimation' animation object cannot be used to animate property 'Foreground' because it is of incompatible type 'System.Windows.Media.Brush'.

... there are 11 errors but the solution builds successfully and runs fine.

If you look at the markup in MainWindow.xaml and the first set of buttons, the first error is linked to the "IsEnabled" property

browser gives jibberish when State manager (sql) is turned on


Hi all, we're testing our web app with a state manager so that we can do distributed rollouts. We're not getting any errors, but we are getting jibberish returned for every page request. 

(it won't even let me paste it in here)

HOw do I get it to serve the pages normally?


can't debug anymore a state machine workFlow in Visual Studio

Hi, I have an issue with debuging a workFlow with visual studio when it should start the workFlow when I create an item nothing happen and sharepoint stay stuck : I can't refresh any lists, visual studio rich 40% of the CPU, no exception on log. At the same time if i deploy without debugging it works. Please help me. Thanks, Patrice  

Session State throws error in ASP.NET Site Pages for SharePoint 2010 portal using Visual Studio 2010


I'm developing Visual Studio 2010 solution for site pages. I’ve created Site Pages in SharePoint 2010 and I’m trying to access Session variables in code behind in ASP.NET but it throws the following error.

Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.

I set the page directive as enableSessionState=&quo

Maintaining session state in a visual webpart


I am building a visual web part that will allow users to navigate the document libraries and view the *.pdf files within them. I am using a static class which exposes a number of properties which essentialy get and set session objects. For example here is the CurrentDocumentLibrary;

public static SPDocumentLibrary

Deploying SSRS Reports from Visual Studio 2010 to Report Manager 2008


Our Report server is using Report Manager 2008. Previously I would load reports to it that I created via BIDS. Now I have to use VS 2010. I see that I can build and deploy reports there. Can I send it from VS 2010 to the REport manager 2008 on the other machine? I should add that now i have to develop on laptop only before i was on the server.

If not what are my options? I recall that vs 2005 objects were not taken in Report manager 2008.

How to Find Manager using Visual Studio Code



On Sharepoint Designer (I'm using Sharepoint 2010) I can use "Find Manager" when developing workflow. How to produce similar result using coding in Visual Studio 2010? I read something about User Information List, but cannot found any relation to "manager".

Thanks and Regards,


Creating SharePoint 2010 State Machine Workflows in Visual Studio 2010 (Visual How To)

Learn how to use the State Machine Workflow template in Visual Studio 2010 to build a SharePoint 2010 state machine workflow in this visual how-to video, overview, and code sample.

Video: Creating SharePoint 2010 State Machine Workflows in Visual Studio 2010

Watch the visual how-to video as you learn to create state machine workflows for SharePoint 2010 in Visual Studio 2010.

Sample: Creating SharePoint 2010 State Machine Workflows in Visual Studio 2010

Explore the code in this visual how-to article as you learn to create state machine workflows for SharePoint 2010 in Visual Studio 2010.

Visual Case Tool - UML Tutorial

The Class Diagram

The class diagram is core to object-oriented design. It describes the types of objects in the system and the static relationships between them.

Truly Understanding View State

This article provides a detailed understanding of the ViewState.

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.
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