.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

WPF Designer won't show the images

Posted By:      Posted Date: October 21, 2010    Points: 0   Category :WPF

I have a different error to open Windows1.XAML file.  The error messages are:


Cannot convert string 'pack://application:,,,/Microsoft.Windows.Design.Developer;component/Images/Fit_To_Window.png' in attribute 'Source' to object of type 'System.Windows.Media.ImageSource'. Bitmap color context is not valid. Error at object 'ControlTemplate_11' in markup file 'Microsoft.Windows.Design.Developer;component/themes/ZoomControl.xaml'.

at System.Windows.Markup.XamlParseException.ThrowException(String message, Exception innerException, Int32 lineNumber, Int32 linePosition, Uri baseUri, XamlObjectIds currentXamlObjectIds, XamlObjectIds contextXamlObjectIds, Type objectType) at System.Windows.Markup.XamlParseException.ThrowException(ParserContext parserContext, Int32 lineNumber, Int32 linePosition, String message, Exception innerException) at System.Windows.Markup.XamlTypeMapper.ParseProperty(Object targetObject, Type propType, String propName, Object dpOrPiOrFi, ITypeDescriptorContext typeContext, ParserContext parserContext, String value, Int16 converterTypeId) at System.Windows.Markup.OptimizedTemplateContent.ParseDependencyProperty(String attribValue, Int16 attributeId, Int16 converterTypeId, DependencyProperty& dp, Object& pro

View Complete Post

More Related Resource Links

How to show previouse user comments on the task form of a user in sharepoint Designer

I am using sharepoint designer for designing workflow. I have 4 steps. on each step a user write some comments for the next user. now I want to show all those comments on task form for the current user to whom the task has been assigned.

Error previewing images in the designer

Hi, I'm an absolute beginner with WPF and tried to play around with some of the examples I found.   Here is the problem: I want to create an Image control as a child of the default Grid created by the designer and set its Source property in Xaml.   Here is my Xaml: <Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300"> <Grid> <Image Source="test.png"></Image> </Grid> </Window>     The image file exists in the project folder but the designer immediately gives me the following error:   Error 1 The file test.png is not part of the project or its 'Build Action' property is not set to 'Resource'. D:\CSharp\Test\WpfApplication1\Window1.xaml 6 16 WpfApplication1   When I add the file to the project and set its Build Action to Resource the image is displayed at runtime. The problem is the designer still insists on the above mentioned error and does not display anything except for the information:   Problem Loading   The document contains errors that must be fixed before the designer can be loaded. Reload the designer after you have fixed the errors. Reload the designer   What am I doing wrong?   (I am using Visual C# 2008 Expre

SQLCE table column DefaultValues don't show up in XSD Dataset designer

Using Visual Studio 2008 with SQL CE 3.5, I notice that default values in the creation scripts for the database tables are not reflected in the dataset designer XSD file.  For example, the following SQL script creates the non-nullable table column names "Content" with a default value of 'Image':    "Content" nchar(20) NOT NULL DEFAULT 'Image',But in the column properties of the dataset designer (XSD) panel, this column correctly shows up as non-nullable, but with a DBnull default value as follows:     Name: Content    Allow DBnull: False    DefaultValue: <DBnull>Am I missing something somewhere, or is this a VS bug?  Also, how do I get the XSD file to regenerate after schema changes in the database?  Sqlmetal doesn't do it.Thanks,    -BGood

WPF & ListView: Show Images

I'd like to show rows into listview dynamically. These rows have 2 controls: Images + Text .xaml <     ListView Height="225" HorizontalAlignment="Left" Margin="6,52,0,0" Name="ListViewHosts" VerticalAlignment="Top" Width="176" Tag="ListViewHosts">       <ListView.View>       <GridView>       <GridViewColumn Width="auto" Header="Imagen" DisplayMemberBinding="{Binding Imagen}">       <GridViewColumn.CellTemplate>       <DataTemplate>       <Image Width="10" Height="10" VerticalAlignment="Center" HorizontalAlignment="Center" Source="{Binding Imagen}"/>       </DataTemplate>       </GridViewColumn.CellTemplate>       </GridViewColumn>         <GridViewColumn Header="Host" DisplayMemberBinding="{Binding Host}"/>         </GridView>       </ListView.View>       </ListView> Code System.Drawing.   Bitmap Imagen0 = new System.Drawing

Show all images in a directory


I am trying to load every image *.png in a folder on my site. I simply want every image to be shown. One after the other, all on one page. Displaying a single image seems simple enough, but going through the entire directory is tough. How could I do this with minimum code using asp.net with vb as the language? 

WPF designer: How to specify/show sub-properties (ExpandableObjectConverter does not work)?


Hi All,

I'm instantiating some class using Window.Resources tag:


 <b1:CaMyClass x:Key="myClass1" InitialDirectory="c:\">



The problem is that CaMyClass also has nested object property so I can specify them in code-behind like this:

myClass1.Styles.StyleA = ...;

myClass1.Styles.StyleB = ...;

WPF designer: How to specify/show sub-properties (ExpandableObjectConverter does not work)?


Hi All,

I'm instantiating some class using Window.Resources tag:


 <b1:CaMyClass x:Key="myClass1" InitialDirectory="c:\">



The problem is that CaMyClass also has nested object property so I can specify them in code-behind like this:

myClass1.Styles.StyleA = ...;

myClass1.Styles.StyleB = ...;

Silverlight 4 Amazon AWS s3 images don't show.


I created a basic Silverlight 4 busines project.

I then added an image with a source like this:




Image Height="257"

i want show my friendslist images


hi sir


i want show images(like orkut friend list ) which controle is best to use please tell any one 

whenever add friend that friend profile image automatically show in my profile


i have no idea please guide me

if any one have source code or link means send to me


Error: There are no items to show in this view. SharePoint Designer 2010


Hi, i got this error while editing a sharepoint subsite in SharePoint Designer 2010. We are using SharePoint 2010, Office 2010, Windows 7 and SharePoint Designer 2010 x32.

When i now open my subsite in SharePoint Desinger i cant see any Lists and Libraries, no Workflows and no Site Pages. I get these messages:

"There are no items to show in this view."
"The Document Library view connot be displayed for this Web site."

All the Libraries and Files still exist and i can view the sites still in browser. I see them at "all files". But i cant edit anything or change things.

Does anybody know that issue? What can i do to fix that?

Best regards

How can I show data from a Workflow variable in a SharePoint Designer Collect Data from User form?



I have collected some data (a comment) from a user in a SharePoint Designer (SPD) workflow step and I now want to display that comment in a second "Collect Data from User" form at a subsequent step in my workflow.  How can I add the content of my Workflow data variable, or even data from my original item, in the Collect Data from user form?

The Collect Data from user form is generated out of the Workflow Tasks list and only contains the url of the item where I could store the comment and which has the workflow attached to it.

This guy says he has done something similar but he appears to only use the URL and static info and does not explain the detail in any case: http://www.mstechblogs.com/paul/spd-workflow-collect-data-from-a-user-modify-the-generated-task-form

I'm keen to hack at the aspx form in SPD but I really need the particular line of code that will do it as I'm not a developer.

Your help is greatly appreciated!

show images in datalist or listview from url


Hello, i need to show images from url wich i have in my behind code. For example i have listview control :

 <asp:ListView ID="ListView1" runat="server">            
                <div id="divItem">
                    <asp:Image ID="Image1" runat="server" ImageUrl="????" />

when i tried to create new external content type in sharepoint designer in ribbon it show error like

when i tried to create new external content type in sharepoint designer in ribbon it show error like  "  The server was unable to process the request due to an internal error, for more information about the error, either turn on includeexceptiondetailsinfaults (tither from servcebehaviorattribute or from the <servicedebug> configuration behavior) on the server in order to send the exception infromation back to the client, or turn on tracing as per the microsoft .net framework 3.0 sdk documentation and inspect the server trace losgs.  "

GridView control to show master-child or master-slave data, written in c#, asp.net

I previously made a master slave datagrid using Visual Studio 2003 .Net (original article) that would allow users to show data to clients using collapse and expand features. These features however did not carry over to gridview for many users. This tutorial will explaing how to create a collapsable/expandable gridview in frameworks 2.0 and higher

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

Images in WPF

How to create a Thumbnail of an Image. How to automatically crop an image. The following method allows you to automatically crop an image to it's content.

Reading and Writing Images From a Windows Mobile Database using UltraLite 10(C#)

Periodically I get a request for information on how to read and write binary data to a database running on Windows Mobile. If you search the Internet you can typically find examples that are available on Windows Desktops or allow you to read and write to a local file system. The problem is that it can take a bit of work to get this code to work on Windows Mobile accessing a database.

Ultimately you might be asking, why would I want to store and image in a database? Well in an environment where you synchronizing data between a local mobile database and a consolidated (central) database this can be extremely useful. Imagine if an insurance adjuster went to an accident scene, took a picture of a damaged car, loaded it into his Windows Mobile database and then replicated that image up to the Insurance headquarters for approval. All of this could be done in a very short period of time when using images in the database. Another good example might be a doctor who was waiting for a patient chart to become available. If you could store the image in a database this chart could be sent down to the doctor's device once it became available.

For this article I am not going to get into how to synchronize the images to and from a remote and central database as this is typically fairly straightforward when using a data synchronization technologies like MobiLink
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