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


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

VS2010: Switching tabs in wpf designer

Posted By:      Posted Date: August 27, 2010    Points: 0   Category :WPF
 
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  


View Complete Post


More Related Resource Links

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

How To Create Tabs in SharePoint Page through Designer

  

Hello friends,

This is siddiqali new to sharepoint want to Know how to create a tabs in sharepoint page without using code and visual web part,I am trying it to do with

designer as sharepoint is code free tool ,so am tring to do the task  without code  .I knew to create a tab on top link bar but my task  to do on page

 

Thank You,

MD SIDDIQALI


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

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?


blend to vs2010 designer issues

  

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

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 Lost toolbox tabs

  

Hi All: I was trying to install the AjaxControlToolkit 4 on Win7Pro with VS2010 and VWD2010 installed. I thought I followed the installation instructions properly: open toolbox, right-click to add a new tab, "choose items" and browse to the ajax dll.

Now all my toolbox tabs are gone, except for "General", which is empty. I've tried resetting, reinstalling VWD (which reinstalled .NET4 framework, etc.), deleting all the "TBD" cache files, rerunning "setup" and "resetdefaults" from the command line, but nada...everything is still gone.

If I select "choose items", all the familiar toolbox controls show up with checkmarks, but they are missing from the toolbox itself. If I select "show all" everything missing shows up, but is greyed out.

I must be missing something simple, but as the hours tick by I'm just running into the same recommendations over and over. Any hints?


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.

how to quick navigate to the definition of StaticResource from VS2010 xmal designer

  

Hi all,

Is there a quick way to navigate to the definiton of a Resource when reading xmal in VS2010.  For example, i have a line in a xmal file.

<ListBox x:Name

Is it possible to use SP Designer once your site is in VS2010?

  

According to the Microsoft articles I've read, there's a way to swap between VS2010 and SP Designer to write code and create lists.

I have not found this to be the case as once I export the site, and I import it into VS, I can no longer use the SP Designer.

 

Any ideas?

Our goal is to not have to code the entire site in VS2010, but we need to update the production box.  I've read some articles on having more then 1 developer on the project and thought if I could reproduce that, then it would be the same but I haven't found a way to get the site's new objects I create back into the site.

 

 


Hosted Designer: Populating the toolbox with the standard activities as per VS2010

  
In the examples there is code like below that adds Activities to a Toolbox. However, it is a bit of a pain to re-create VS2010 Activities Toolbox in this manner with the correct Category structure. Also Activities added in this manner don't have the correct icon and tooltip information.

Is there a way to create the Toolbox automatically for given assemblies as VS2010 does?

//Create the ToolBoxControl

 

 

ToolboxControl ctrl =

SharePoint Designer

  
This video series shows you how to quickly and easily build complex business solutions on the SharePoint platform. Microsoft Office SharePoint Designer 2007 Business Administrator Training is a one-and-a-half hour, 300-400 level training series, produced in collaboration with the SharePoint Product Team and Total Training

ASP.net Ajax TabContainer -- Printing All tabs

  

Hi,

Can  anyone help me with this?. I want to print all the tabs in ajax tab container. The tab container has around 10 tabs. I dont want to goto each tab and print the page. Instead is there any way by which I can tweek the print.css file to print all the tabs at a single stretch?.  So that I will get all the contents of the tab in single print.  Is there any other way in which I can print all the tabs all together?.

Thanks in Advance...

Anbu


Visual Studio closes itself by opening aspx-Page designer after Windows Update

  

Hey Guys,

I've a problem with my Visual Studio.

On the 13th of August 2010 i installed a Windows update on my vista sp2 pc. For this date my Visual Studio 2008 sp 1 always has closed itself by opening an aspx-page in designer view. There is no error message just closing the window. I restored a backup of my windows from the time before updating it and it helped, i could open aspx pages in the design view till the update has been installed again automatically after rebooting the pc. I can't disable windows updates, cause it's my pc at work and safety is very important. I hope you could help me out of this disaster.


Thanks

Nik


VS2010 Professional .NET 4.0 Remote Debugging ASP Website Project

  

Trying to remote debug ASP website from VS2010 Pro to Windows Server 2003 machine.  Specifically, trying to debug a Web Service, but breakpoint says, "The breakpoint will not currently be hit. No symbols have been loaded for this document."  This happens for all compiled code though.  I have read this is due to missing PDB files and the work around is to manually copy them, as noted here.  Problem is, I cannot find any PDB files for my project, except referenced libraries, which I can remote debug.

Verified

  • web.config has <compilation debug="true">
  • Debugger is attached to wewp.exe process on remote server
  • Installed VS2010 remote debugger from DVD (as I can remote debug referenced libraries)

This is beyond frustrating.  I migrated my code from VS2008 .Net3.5 to VS2010 .Net4.0 to take advantage of the inherent multithreading framework.  Debugging works when using local host and was stable until deployment to test server.

Thanks in advance,

Anthony


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