zoukankan      html  css  js  c++  java
  • wpf 中的DataTemplate 绑定控件

    <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:tk="using:Microsoft.Toolkit.Uwp.UI.Controls"
    xmlns:local="using:Xiaowei.Themes"
    xmlns:controls="using:Xiaowei.Controls">
      <Style TargetType="ListViewItem"
        x:Key="ListItemStyleForPlayer">
        <Setter Property="Margin"
        Value="0, 0, 0, 0" />
        <Setter Property="TabNavigation"
        Value="Local" />
        <Setter Property="Template"
        Value="{ThemeResource ListItemControlTemplateForPlayer}"></Setter>
      </Style>  

    <DataTemplate x:Key="DriverMessageDataTemplate">
      <tk:DropShadowPanel>
      <Grid HorizontalAlignment="Left">
      <Grid Background="#ffffff" CornerRadius="0,8,8,8">
      <controls:DriverListBubble DriverMessage="{Binding Self}"/>
      </Grid>
      </Grid>
      </tk:DropShadowPanel>
    </DataTemplate>

  • 相关阅读:
    SQL随记(四)
    一些有用的方法命令
    导航目录
    HTML中&nbsp; &ensp; &emsp; &thinsp;等6种空白空格的区别
    MyBatis学习资料
    Spring Cloud资料
    聚类算法对比
    Spark 读取HBase数据
    ZooKeeper设置ACL权限控制
    大数据工具选择
  • 原文地址:https://www.cnblogs.com/bruce1992/p/14717004.html
Copyright © 2011-2022 走看看