Expression > 論壇首頁 > Expression Blend + SketchFlow > Resource Dictionary Help
發問發問
 

問題Resource Dictionary Help

  • 2009年10月27日 下午 06:35cwelte 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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

所有回覆

  • 2009年11月2日 上午 05:45Unni Ravindranathan - MSFT 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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.