标题部分不以编程方式显示在集合视图中

时间:2017-12-15 19:45:55

标签: ios swift uicollectionview uicollectionviewdelegateflowlayout

这是我的代码

<TextBlock Text="5000.00" FontSize="20" >
            <!--<TextBlock.TextDecorations>
                <TextDecoration Location="Underline">
                    <TextDecoration.Pen>
                        <Pen Brush="Green"></Pen>
                    </TextDecoration.Pen>
                </TextDecoration>
            </TextBlock.TextDecorations>-->
       <TextBlock.Style>
            <Style TargetType="TextBlock">
                <Style.Triggers>
                    <Trigger Property ="IsMouseOver" Value="True">
                        <Setter Property= "Foreground" Value="Black"/>
                        <Setter Property="TextDecorations" Value="Underline" />
                    </Trigger>
                </Style.Triggers>
            </Style>
        </TextBlock.Style>
    </TextBlock>

这一切对我来说都没问题,我不确定这里的错误是什么。

1 个答案:

答案 0 :(得分:0)

似乎没有任何问题与您发布的代码相关。也许你的故事板上有一个问题?

enter image description here

相关问题