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>

  • 相关阅读:
    sendmessage参数
    combobox添加选项
    sql数据库时间转换convert
    Javascript知识四(DOM)
    Javascript知识三
    JavaScript知识(二)
    JavaScript知识(一)
    三层架构
    ADO知识的运用二(Day 28)
    SQL知识三(Day 27)
  • 原文地址:https://www.cnblogs.com/bruce1992/p/14717004.html
Copyright © 2011-2022 走看看