【问题标题】:How to edit ExpandableContentTemplate in Blend如何在 Blend 中编辑可扩展内容模板
【发布时间】:2014-02-28 18:25:45
【问题描述】:

我在我的 Wp8 应用程序中使用 Telerik RadExpanderControl。我在 Blend 中打开项目,右键单击 Objects and Timeline 下的 RadExpanderControl,选择 Edit Additional Templates。这里我的选项是 Edit Generated Content (ContentTemplate)Edit AnimatedIndicatorContentTemplateEdit ExpandedStateContentTemplate

这些实际上都不能让我访问我需要的 ExpandableContentTemplate

我错过了什么吗?

【问题讨论】:

    标签: windows-phone-8 telerik windows-phone expression-blend


    【解决方案1】:

    很遗憾,它不能用作可提取的模板。但是,您可以这样做来创建一个:

     <telerikPrimitives:RadExpanderControl.ExpandableContentTemplate>
        <DataTemplate>
            <StackPanel Margin="24, 4, 4, 4" Orientation="Horizontal">
                <TextBlock 
                    FontSize="{StaticResource PhoneFontSizeExtraLarge}" 
                    FontFamily="{StaticResource PhoneFontFamilyLight}" 
                    Text="{Binding TextYouWantToBind}" 
                    VerticalAlignment="Center"/>
            </StackPanel>
        </DataTemplate>
    </telerikPrimitives:RadExpanderControl.ExpandableContentTemplate>
    

    当我需要使用 Blend 来设置 ExpandableContentTemplate 的样式时,我采取的一种解决方法是根据自己的喜好设置(生成的)ContentTemplate 的 DataTemplate 的样式,然后将其复制粘贴到 ExpandablecontentTemplate 的 DataTemplate 中。

    我已将此情况报告给 windows Phone 团队

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-14
      相关资源
      最近更新 更多