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>

  • 相关阅读:
    !function() {}()
    element.dataset API
    正则匹配 数字和英文状态下的逗号
    《vim实用技巧》读书笔记
    ajax分页
    smarty分页类
    数组排序
    数组大类
    自动刷新价格
    简单购物车
  • 原文地址:https://www.cnblogs.com/bruce1992/p/14717004.html
Copyright © 2011-2022 走看看