zoukankan      html  css  js  c++  java
  • ContentControl与ContentPresenter区别?

     <TextBlock HorizontalAlignment="Left" Text="{Binding HwContent, Converter={StaticResource TextSerialize}}" VerticalAlignment="Top" Margin="76,26,160,0" TextTrimming="CharacterEllipsis" Grid.Column="0" Height="Auto" FontSize="14" LineHeight="24" Cursor="Hand" TextWrapping="NoWrap" Foreground="{DynamicResource Foreground_Gray_level2}">
                            <TextBlock.ToolTip >
                                <ContentControl   Content="{Binding HwContent}" >
                                    <ContentControl.ContentTemplate>
                                        <DataTemplate>
                                            <Border MaxWidth="600" MinHeight="16" MaxHeight="320" Padding="5,5,5,5">
                                                <TextBlock TextWrapping="Wrap" TextTrimming="CharacterEllipsis" Text="{Binding Mode=OneTime}"/>
                                            </Border>
                                        </DataTemplate>
                                    </ContentControl.ContentTemplate>
                                </ContentControl>
                            </TextBlock.ToolTip>
                        </TextBlock>

    ContentPresenter显示不出来,但是ContentControl  能显示出来

  • 相关阅读:
    Kubernetes中部署MySQL
    内置函数-format()
    Jenkins-deploymnt
    一次遇到too many open files的解决详情
    一次nginx问题记录
    kickstart自动化安装系统
    Maven —— 命令行清除编译打包
    CURL 发送POST请求
    mysql的my.cnf配置参考
    利用nginx实现生产和灰度环境流量切换
  • 原文地址:https://www.cnblogs.com/m7777/p/5200586.html
Copyright © 2011-2022 走看看