The Tallest

The Tallest


Published Tutorials (122)

Recent Comments

  • Using Core Plot in an iPhone Application
    07/24/2009 - 07:07

    See Brad's comment above - the CPPlotDataSource protocol has changed since I wrote this tutorial. I haven't tried to build against the latest code yet, so I don't know exactly what you have to do to fix it. But if you look at the protocol definition, it should be pretty obvious.

  • C# Tutorial - Dealing With Unhandled Exceptions
    07/16/2009 - 19:55

    I think that the web request internal to the WebClient class actually runs on a worker thread. So since the exception originally happens on a separate thread, it gets handled by the Application.ThreadException handler in your case before your try-catch block on the main thread. Or, at least, that would be my guess off the top of my head. Not sure how you can deal with it easily, since the in is happening inside the code for WebClient.

  • Silverlight 3 - Using Local Connections
    07/16/2009 - 19:51

    I have no idea. I thought at first it might just be wrapping some javascript communication, but the fact that it can go cross page means it is probably something internal to the Silverlight runtime.

  • WPF Snippet - Disabling Dragging from a TextBox
    07/15/2009 - 09:19

    To apply it to everything in your application, you will want to register a class handler, like so:

    EventManager.RegisterClassHandler(typeof(TextBox),
        DataObject.CopyingEvent, new
         DataObjectCopyingEventHandler(DataObjectCopyingEvent),
        true);

    public static void DataObjectCopyingEvent(object source,
        DataObjectEventArgs e)
    {
      //Add desired behavior
    }

  • Using the WPF Toolkit DataGrid
    06/30/2009 - 12:37

    That sounds like your binding syntax is not quite right. Do you have curly braces around the binding? Post that snippet of XAML here and I'll take a look at it.

  • Silverlight 2 & PHP Tutorial - Transmitting data using JSON
    06/22/2009 - 07:41

    the clientaccesspolicy.xml file does not go in the same directory as the php file - it should be placed at the root of the website. If you look at your apache logs, you should be able to see the application trying to request it. Here is what mine looks like:

    <?xml version="1.0" encoding="utf-8"?>
    <access-policy>
      <cross-domain-access>
        <policy>
          <allow-from http-request-headers="*">
            <domain uri="*"/>
          </allow-from>
          <grant-to>
            <resource path="/" include-subpaths="true"/>
          </grant-to>
        </policy>
      </cross-domain-access>
    </access-policy>

    I also have a crossdomain.xml file (either should work):

    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
      <allow-http-request-headers-from domain="*" headers="*"/>
    </cross-domain-policy>

  • Silverlight 2 & PHP Tutorial - Transmitting data using JSON
    06/19/2009 - 12:43

    Yup, it is fixed now. The root issue was a missing clientaccesspolicy.xml file.

  • Sending Flex Data to PHP using XML
    06/19/2009 - 07:55

    The source is included - you can right click on the flex project and choose "View Source" or you can download the zip file at the end of the tutorial (in the block labeled "Source Files").

  • WPF View States?
    06/17/2009 - 10:05

    I just came across the WPF Visual State Manager today - something that is included in the WPF Toolkit. I think it might be what you are looking for.

  • WPF Tutorial - Using The ListView, Part 3 - In Place Edit
    06/09/2009 - 12:33

    The WPF GridView is poor man's data grid - if you want a data grid functionalilty similar to what was available in WinForms, you should take a look at the WPF Toolkit, which has a full DataGrid (http://wpf.codeplex.com/). The DataGrid will eventually be shipped as part of WPF, but for now it is a separate piece. If you would like, I could write up a tutorial or two on using it.

Sponsors