Resource Dictionary Help RRS feed

  • Question

  • Is there any way in Blend to sort your resource dictionary alphabetically? Now that I've got over 50 items and brushes in there, it's getting very disorganized.

    Tuesday, October 27, 2009 6:35 PM

All replies

  • Unfortunately, there is none today.

    Please note that you cannot always sort dictionary entries alphabetically. As an example:

    <Brush x:Key="B" />
    <Style x:Key="A>
       <Setter Property="Background" Value="{StaticResource B}" />

    If you sort this alphabetically, the application will not work as the resource declarations should appear before they are referred to using static resource extensions. In Blend, when you create a resource, we try out best to prevent you from getting into this state.

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Monday, November 2, 2009 5:45 AM