Ask a questionAsk a question
 

QuestionResource Dictionary Help

  • Tuesday, October 27, 2009 6:35 PMcwelte Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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.

    Thanks

All Replies

  • Monday, November 02, 2009 5:45 AMUnni Ravindranathan - MSFT Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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}" />
    </Style>

    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.

    Thanks,
    Unni
    This posting is provided "AS IS" with no warranties, and confers no rights.