.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

blend to vs2010 designer issues

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

hi all,

i'm using blend 4 for customize the default menuitem style. All ok, into the designer i can preview the ui correctly and when running ok too, but when i load the ui in the vs2010 designer this render the menuitems with a wrong width, all the items are very large. Why?
I have tested with a default template too, the same issues. I have do it: in blend have created a menu and populate with menuitem, choose Edit template -> Edit a copy then i save all.   


Roberto Pallucchini
*** Please mark as Answer, if this reply helps you***
*** Per favore Suggerisci come risposta, se la risposta ti è stata di aiuto***


View Complete Post


More Related Resource Links

VS 2010 Designer InvalidOperationException after using Blend 4 VSM

  
Working on an WPF 4 app today and noticed the VS 2010 Designer won't load after using Blend 4 Visual State Manager. Basic info that I did. 1. Had a Button.  Would display in both VS10 Designer and Blend 4. 2. In Blend 4, I right clicked Button -> Edit Template -> Create Empty. 3. Added ContentPresenter to Grid. 4. Back in Window.xaml, added Image to Button's ContentPresenter.  Still works in both VS10 and Blend 4. 5. In Blend 4, went back to Edit Template and modified some of the States.     - Disabled: Grid Opacity 50%     - MouseOver: Grid Scale X/Y to 1.1     - Pressed: Grid Angle 15. 6. Save and go back to VS10, the designer won't load.  Get the Yellow bar at top stating something like... InvalidOperationException was thrown on "button": Property does not point to a DependencyObject in path...... The button now has an X with red circle in it. Is this a know issue?  Is there a fix? It still works in Blend 4 and I can run the WPF app in both VS10 and Blend 4. Thanks in advance.

VS2010: Switching tabs in wpf designer

  
Hi, I have a problem with the WPF designer in VS 2010. I have a WPF UserControl which contains a TabControl with several Tabs (TabItems).  It was always possible to switch the tabs in the designer to see the content of the individual tabs. However, suddenly this stops working. I can not switch the tabs anymore. [EDIT] Seems to be a known issues? https://connect.microsoft.com/VisualStudio/feedback/details/531868/wpf-editor-tabcontrol-issues Workaround does not work for me (or I do not understand it correctly)... [/EDIT] Any ideas? Thanks in advance. Jus  

VS2010 designer problems with custom markup extensions returning FontFamily

  
App.xaml: <Application x:Class="CustomMarkup.App"              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"              xmlns:int="clr-namespace:CustomMarkup"              xmlns:ext="clr-namespace:ExternalMarkupExt;assembly=ExternalMarkupExt"              StartupUri="MainWindow.xaml">     <Application.Resources>         <Style x:Key="MyStyle">             <Setter                  Property="Control.FontFamily"                  Value="{ext:ExtMarkupExt {x:Static int:Resources.FONTFAMILY_NAME}}"/>         </Style>     </Application.Resources> </Application> MainWindow: <Window x:Class="CustomMarkup.MainWindow"         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"         xmlns:x=&quo

SharePoint Designer random issues

  
I have designed a workflow which sends an email to the "Created By" user account.  Out of 124 submissions, 10 have errored out showing that the user account is not correct.   Domain\user points to email account user@company.com However, there are times which the workflow sends the email to "LastName ; FirstName MI." instead... Any ideas as to why this would be happening?

Generated MainWindow.xaml crashes VS2010 when you open the designer

  

In my system which is running Windows 7 Enterprise X64 I have a problem viewing some XAML files. At least one of my project XAML files sometimes crashes VS2010 if I open it in the designer or try to view it with Internet Exlorer 8 or Windows Presentation Foundation host. It also happens if i try to display the MainWindow.xaml that is generated by VS 2010.

The contents of MainWindow.xaml are

<Window x:Class="WpfApplication1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
       
    </Grid>
</Window>

 

If I open the debugger when IE8 crashes, the failing stack frame is iefdm2.dll!03992071()

I assume it is some sort installatioin snafu or something but I would hate to have to re-install everything.

Can anybody suggest what the issue might be?


vs2010 silverlight designer error

  

Hi all,

After installing Visual Studio 2010 and Silverlight Tools for VS 2010, I tried to generate a new Silverlight project and got an error in the xaml designer. 

None of the .xaml files generated by VS can be opened in design mode.

I have the KB30319.348 installed. The error is reproduced below:

 

System.ArgumentNullException

Value cannot be null.Parameter name: parentContext

at Microsoft.Windows.Design.Metadata.ReflectionMetadataContext..ctor(IMetadataContext parentContext) at MS.Internal.Host.ProjectMetadataContext..ctor(IMetadataContext platformMetadata, AssemblyReferenceProvider referenceProvider) at MS.Internal.Host.ProjectMetadataContext.FromReferences(AssemblyReferenceProvider referenceProvider) at MS.Internal.Designer.VSDesigner.GetMetadataForDesignerContext(DesignerContext designerContext) at MS.Internal.Host.PersistenceSubsystem.Load() at MS.Internal.Host.Designer.Load() at MS.Internal.Designer.VSDesigner.Load() at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedView.Load() at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedDesignerFactory.Load(IsolatedView view) at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view) at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.Loa

menuitem blend to vs2010 issue

  

hi all,

i using blend 4 to customize the default template for menuitem that i want to use for my application.
Now, i complete this task: i choose to edit the current menuitem template in blend, this generate the relative xaml code and i save, i load the ui in VS2010 designer the menuitems as been all expanded. I do not touch width property. Why? This is trouble a lot...

 


Roberto Pallucchini
*** Please mark as Answer, if this reply helps you***
*** Per favore Suggerisci come risposta, se la risposta ti è stata di aiuto***

Generated MainWindow.xaml crashes VS2010 when you open the designer

  

In my system which is running Windows 7 Enterprise X64 I have a problem viewing some XAML files. At least one of my project XAML files sometimes crashes VS2010 if I open it in the designer or try to view it with Internet Exlorer 8 or Windows Presentation Foundation host. It also happens if i try to display the MainWindow.xaml that is generated by VS 2010.

The contents of MainWindow.xaml are

<Window x:Class="WpfApplication1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
       
    </Grid>
</Window>

 

If I open the debugger when IE8 crashes, the failing stack frame is iefdm2.dll!03992071()

I assume it is some sort installatioin snafu or something but I would hate to have to re-install everything.

Can anybody suggest what the issue might be?


menuitem blend to vs2010 issue

  

hi all,

i using blend 4 to customize the default template for menuitem that i want to use for my application.
Now, i complete this task: i choose to edit the current menuitem template in blend, this generate the relative xaml code and i save, i load the ui in VS2010 designer the menuitems as been all expanded. I do not touch width property. Why? This is trouble a lot...

 


Roberto Pallucchini
*** Please mark as Answer, if this reply helps you***
*** Per favore Suggerisci come risposta, se la risposta ti è stata di aiuto***

InvalidOperationException in VS2010 WPF Designer on Visual State Manager

  

Hi,

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

'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

VS2010 designer errors with x64 configuration

  

With an empty x64 WPF project I can't import the project's own namespace. Can the WPF designer in VS2010 be used on a x64 project, or what am I doing wrong?

Below are the steps that reproduce this problem.

Using:Microsoft Visual Studio 2010 pro Version 10.0.30319.1 RTMRel
Microsoft .NET Framework Version 4.0.30319 RTMRel

Launch VS2010 IDE
File > New Project > WPF Application
 Targeting .NET Framework 4
 Name = WpfApplication1
 Solution name = WpfApplication1

Open MainWindow.xaml in xaml editor
add (xmlns:local="clr-namespace:WpfApplication1")

Designer error "Undefined CLR namespace. The 'clr-namespace' URI refers to a namespace 'WpfApplication1' that is not included in the assembly."
Build solution (successful)
Error disappears

Open Configuration Manager
Click Active solution platform. Select <New...>
Select new platform as x64. Click OK. Close Configuration Manager.

Error reappears: "Undefined CLR namespace. The 'clr-namespace' URI refers to a namespace 'WpfApplication1' that is not included in the assembly."

Rebuild solution (successful)
Error remains and designer is now useless.

This may be similar to a previous post that strayed off topic.

VS2010 and WPF slow debug issues

  

hi all,

im (like a lot of other people) doing my first steps in vs2010.

one of the things i just found which really annoys me is that each time i try to debug a WPF application the ide slows down so each movement from one statement to the other results in 10 sec. (!) waiting.

what can i do ? is there a nice solution (besides not using WPF:)

adiel.


javascript issues converting ASP.NET application from VS2008 to VS2010

  

I have encountered some javascript issues migrating an ASP.NET web application from Visual Studio 2008 to VS 2010.

1. When retrieving a value from a control, the following javascript syntax worked in VS2008:

  "document.formname.controlname"

In VS2010, I have to change everything to the following format:

 "document.forms.formname.controlname"

2. I use Master pages extensively.  In VS2008, when the ASP.NET web form is displayed in the browser, the ID for a control in a child form in the content placeholder uses the following convention:

"ctl00_ContentPlaceholder1_controlname"

In VS2010, the ID for a control in the placeholder uses the following convention:

"ContentPlaceholder1_controlname"

The "ctl00" is dropped.  Wherever I have used

GetElementByID(ctl00_ContentPlaceHolder1_controlname)

has to be replaced with

GetElementByID(ContentPlaceHolder1_controlname)

Is there an alternative to modifying reams of javascript code?

Are there any other javascript surprises I should anticipate during the conversion?

Thanks

Bill


 


 


Why is the WPF/XAML Designer in VS2010 unable to resolve my StaticResource references?

  
I have a WPF 3.5 app that was rendering properly in both the VS2008 Designer and at runtime. Since upgrading to VS2010, the Designer is no longer able to resolve any of my StaticResource references. Everything still renders correctly at runtime.

Any issues or concerns in converting VS2008 project to VS2010

  

I have been working on this project for a few months in VS2008.. now that we are getting closer to the end, one of the other programmers has been working and doing his in VS2010, so when i try to open his projects in VS2008 it just shows up as XML.. so i have to open in VS2010.. thats fine..

But if i try to open my project in 2010, it prompts to use the conversion wizard..

Should i be concerned or are there any issues with doing the conversion? Being the end of the project, i dont want to cause issues at this point.. So would like to know if converting the project file at this stage in our project a good idea? Will there be any issues using his code with mine since they were developed in 2 different versions..


WPF Designer not working with Blend 3 Behaviours

  
When I have made use of a Blend 3 Behaviour, the WPF Design reports and error saying that the attached property 'Bahaviors' was not found on type 'Interaction'.
John McCauley

Custom Workflow Activity Designer Serialization Issues

  

I have an activity which has collection properties as below

 

    [Designer(typeof(TaskDesigner))]
    public sealed class TaskActivity : NativeActivity
    {
        public TaskActivity()
        {
            TaskParameters = new ObservableCollection<PMTaskParameter>();
            TaskExceptions = new ObservableCollection<Guid>();
        }
 
        publi
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