.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: How to specify/show sub-properties (ExpandableObjectConverter does not work)?

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

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


View Complete Post

More Related Resource Links

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

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.

Quick Note: Using SharePoint Designer 2010 to Work with Web Parts

Learn to create an XSLT List View Web Part within SharePoint Designer 2010 that displays a list of employees on the Home page of local web site.

Abstract class properties work when not implemented?

Hi, I was just looking at a code example and was confused by the behavior of classes implementing an abstract class. So the project has an abstract class named GeneralItem with some abstract properties. Another class named NspItem inherits GeneralItem. NspItem does not implement any of the abstract properties from GeneralItem yet I can write code that successfully sets those properties. How is that working? Is the compiler automatically creating them for me? Example: public abstract class GeneralItem { public string Description { get; set; } } public class NspItem : GeneralItem { public NspItem() { } } static class Program { [STAThread] static void Main() { NspItem item = new NspItem(); item.Description = "Some String"; Console.WriteLine(item.Description); } } //Output would be: Some String

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

Work Flow designer rehosting?

Hi, I know how to create a WF designer using WPF. Can any one tell me how to integrate it with Host Application? I have a WF, i need that WF to be edited/added activities by business users. But I dont know how to integrate the exisiting host application with the WF designer?    

Access Denied while using Sharepoint designer 2007 to create a work flow

I am using Sharepoint Designer 2007 to create a work flow that sends emails to different people in a group depending on status of a record. For example, when some one reports a problem, an email is posted to concerned person and as soon as he/she checks the problem and updates the status an email is sent to next department and so on. Starting the work flow creation wizard is no problem but as soon as I press 'Finish' to create workflow I get 'Access Denied' message box. Any Ideas? I am using WSS 3.0 on 2003 Server.

Conditional formatting on a joined subview using SharePoint Designer 2007 does not work

I have 2 SharePoint lists, one is a parent task list and the other a child task lists.  In SharePoint Designer 2007 I have created a combined datasource from these 2 lists.  From there I created a new ASPX page inserting the parent list as a dataview and the child as a subview.  So far so good, all is functioning as you would expect.    Now I need to apply conditional formatting to cells and rows in both the parent and child lists.  I can create a very simple condition on a row or cell of the parent list such as "If ID Equals '2988' format the background color as green" but no conditional formatting appears for the row where ID = 2988.  Incidentally, if I change the condition to "not equals 2988" the background changes to green. The line in the code view of Designer appears as follows:  <xsl:if test="../../../Rows/Row/@ID = '2988'">background-color: #00FF00;</xsl:if> I've seen this question asked here and in blogs but never answered.  If anyone has a solution, I would love to know what it is. Thanks; Dave  UPDATE:  it doesn't seem to matter if you add the additional fields as a joined subview or not.  If I add 2 data views, both using the linked data source which is configured to JOIN the contents of the data sources the conditional formatt

sharepoint designer work-flow, task attachment enable

Hi I want to creat a sharepoint approval work-flow, which is sequencial so i am devloping it using sharepoint designer, but my chalange is that when it create a task for first approvar it should have an attachment option with task so when first approvar approve and want to attach anything he/she can attach refrence, then it should go to second approval and he also able to check or make additional attachment and so on can any one let me know is it possible and if then how thanks in advance

Modal Popup Extender server side Show() does not work


Hello. Im using a modal popup extender to tell my user that the page has successfully been updated and then redirect them to a new page with the ok button. The thing is that i do NOT want this extender to fire when i press the button. I would rather call the Show() function myself. Right now i have a simple test page with a button that calls the popup extender Show() function but Nothing happens. If i set the targetID to the button it works but Im not able to call it through codebehind.

Any thoughts?

<%@ Page Title="" Language="C#" MasterPageFile="Master.master"

How can I edit page properties in SP Designer 2010?


Is there any way to edit the page properties (metadata) in SP Designer?

Search results doesn't show Word document Title Properties


The search result doesn't show the Word document's Title properties.

For example a Office 2007 Word document has Title properties as "Dell, Template (MN 520287) Test Method", the first word in the document is "Opearation".

The Search result shows the search result with the first word of the document as the search result as

The test sample plan is an general inspection for a normal inspection with a … http://mycorp.company.com/Document Library/MN-0330.00 bala (WN 11100 … Authors: James Wolf Date: 9/29/2010 Size: 169KB
http://mycorp.company.com/Document Library/MN-0330.00 bala (MN 520287) Test Method.docx

instead of

Dell, Template (MN 520287) Test Method
The test sample plan is an general inspection for a normal inspection with a … http://mycorp.company.com/Document Library/MN-0330.00 bala (WN 11100 … Authors: James Wolf Date: 9/29/2010 Size: 169KB
http://mycorp.company.com/Document Library/MN-0330.00 bala (WN 11100) Test Method.docx 

Does Useful Sharepoint Designer Custom Workflow Activities work across servers - pls HELP


Not usre if this is the right place to post this but sure many guys must have used this
I have a siteA at



and Site B at



when i try and use the
Copy List Item Extended Activity to copy the list items across i keep getting error:

System.IO.FileNotFoundException: The Web application at http://myserverA/sites/pop/lists/mylistname could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.

My AAM looks like this:

Internal URL                  Zone        Plublic URL for Zone

http://myserverA:8080    Default     http://myserverA:8080

http://myserverA.domainname:8080  Default  http://myserverA.domainname:8080

http://myserverA.domainname:2020 Default     http://myserverA.domainname:2020  -- this is been extended for FBA

Any ideas what i ne

WPF Designer won't show the images


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

how to make VS Intellisense show complex object's properties for result of Ajax call?



I've create a WCF webservice and created a proxy to the service using ScriptManager.

I can see the created a proxy class, and intellisense pops up the methods of the webservice (great!!). But, I can't see the properties of the method params, return types.

The webservice method:

searchResponse DBSearch.Search(searchRequest)

have comlex types as a parameter (searchRequest) and a return type (searchResponse).

Intellisense does recognize these types, but I can not see the properties (javacript does);


var _searchRequest = new DBSearch.SearchRequest; (intellisense knows type SearchRequest)

_searchRequest.query = "liver lacerations"; (intellisense doesn't know it's property 'query')

_searchRequest.searchOptions = "modality=mri";

Obviously, with javascript, var _searchRequest is not typed, but is there a way to hint intellisense into the properties of the class?



WPF Designer don't work with AutoCAD .NET


I have some trouble with WPF Designer. I create a Class Library project and add necessary references AcCui, acmgd, acdbmgd (from AutoCAD directory). After I add a new WPF User Control to project, open it in designer and...

?? ?????? ????????? ??????. (Exception from HRESULT: 0x8007007E)
  at System.ModuleHandle.ResolveType(Int32 typeToken, RuntimeTypeHandle* typeInstArgs, Int32 typeInstCount, RuntimeTypeHandle* methodInstArgs, Int32 methodInstCount)
  at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
  at System.Reflection.Module.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
  at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, Module decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, RuntimeMethodHandle& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
  at System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, Run

Edit in Microsoft SharePoint Designer on the drop-down menu doesn't work


I am trying to launch Designer via Site Actions > Site Settings > Master Pages Gallery > right click and select Edit In SharePoint Designer.  Instead of launching Designer it launchs Microsoft word.  I am the site collection administrator and I do have Designer on my computer.  Can anyone tell me why this short cut doesn't work? 

There are no mistakes; every result tells you something of value about what your are trying to accomplish.
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