Contact

Email: zamjad at acm.org

Responses

  1. great article about dependency properties, do you have something about routed events as well

    • Thanks to like it. I wrote few articles on routed event, you can take a look at here

      http://zamjad.wordpress.com/category/wpf/event/

  2. Hi zamjad,

    sorry for this mail. But when I was searching for a solution on grid splitters in WPF I saw the picture of your blog, which seems to be generated from a terrain rendering program. Since terrain rendereing is a hobby to me I will ask you, if I’m right or not. If I am right, would you be so kind and give me more information about the program you used.

    Thanks in advance
    Ernst

    • Hi Ernst

      Thanks for taking interest in my blog, but i didn’t understand completely which picture you are taking about. If it is about icon that appears with my name while replying the comments, then it is automatically generated by the wordpress, i dont know what algorithm they are using. I didn’t use any terrain rendering algorithm anywhere in my posting (not at least till now). Most of my programs are related to WPF and the one you mentioned (grid splitters in WPF) also uses WPF. Can you please further explain your question.

      Thanks
      Zeeshan Amjad

  3. Hi,

    I don’t see any post in this blog about interoperability between C# and JAVA. I have a C# server and I would like to extend client support for JAVA programming language.

    My current project has C# client and C# server architecture using TCP funtionality. I would like to introduce a JAVA client soon.

    Could you please help me to find what are the possible options and what is the best approach to support this request?

    Thanks for your cooperation.

    • Hi

      I think you can do it in two steps. You are suppose to create a C DLL (in Visual C++) which both C# and Java can understand. You can use PInvoke to do C# to C communication and JNI to Java to C communication. It would be something like this

      Java C C#

      I wrote two articles on this topic. One to discuss Java to C communication and other to discuss C to C# communication. You can take a look at those here.

      Integrating Visual C++, Java and Assembly
      http://www.codeproject.com/KB/cpp/integratingcppjava.aspx

      Using Unmanaged code and assembler in C#
      http://www.codeproject.com/KB/cs/unmanage.aspx

      I hope it helps.

      Regards
      Zeeshan Amjad

  4. Hi Zeeshan,

    I need to develop a multi column combobox with in a datagridcolumncombobox using wpf.Could you please help me on this.

    • Hi Suresh

      You can do it by defining DataTemplate for CellTemplate (I guess you are taking about DataGrid). In DataTemplate you can define a Grid (or any other layout to display the data) to show the data in the form of multi column. Please correct me if I didn’t understand your requirment correctly.

      Regards
      Zeeshan Amjad

  5. Am I able to use this for web application? I want to use MVC pattern combined with the Mediator pattern to make my controllers loosly coupled.

    But my application is going be large. There will be 20.000 users. We expect 1000 concurrent users.

    I have created controllers. Each controller have his own view. (Like: PersonListController and PersonListView). With the mediator the send messages to each other without knowing of their existing. The problem is, when defining the controllers at this niveau then there will be over 1000 controllers. Is this a problem?

    Also I read about WPF. In my situation, what will be better?, using MVC ASP.NET and Mediator or WPF MVC? What is the impact to the system whe using MVC ASP.NET with Mediator pattern (no WPF)?

    I will appreciate if you can help.

    Thank you,
    Ahmet

    • Thanks for reading my blog. Technically there is nothing stopping you to use the mediator in ASP.Net application using MVC. But this mediator is not complete yet. Currently this is having a strong reference of all the register classes, which is good if we know when to unregister the class. But sometimes we don’t know the object lifetime and in that case keeping a strong reference prevent garbage collector to collect the memory of that reference. Ideally this mediator should have the WeakReference insteaed of Strong references.

      I don’t understand completely why do you want to compare ASP.Net and WPF. WPF is used for making client application or browser application (XBAP Application), on the other hand ASP.Net is used to make server side web application. These technologies are not interchangable and which technology to use depends on your requirement. In addition, WPF programmer mostly use MVVM pattern rather than MVC pattern.

      Regards
      Zeeshan Amjad


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 457 other followers