zoukankan      html  css  js  c++  java
  • 绑定当前对象例子——Tag="{Binding}"

    <TreeView Margin="10,5,0,0" HorizontalAlignment="Left"  VerticalAlignment="Stretch" Grid.Column="2" Grid.Row="1" Grid.RowSpan="4"  Width="172" x:Name="tv_Orgs" ItemsSource="{Binding OrgTreeNodes}"   ItemContainerStyle="{StaticResource OrgTreeViewItemStyle}" Style="{DynamicResource OrgTreeViewStyle}">
                    <TreeView.ItemTemplate>
                        <HierarchicalDataTemplate DataType="{x:Type dataEntity:OrgData}" ItemsSource="{Binding Nodes}"> <!--ItemsSource="{Binding Nodes}"-->
                            <StackPanel Orientation="Horizontal" Margin="0,2,0,2">
                                <!--<StackPanel Orientation="Horizontal">-->
                                    <CheckBox x:Name="treeViewItemCheckBox" Tag="{Binding}" IsChecked="{Binding IsChecked, Mode= TwoWay,UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center" Style="{StaticResource CheckBoxStyle1}" Click="treeViewItemCheckBox_Click" />
                                    <TextBlock Text="{Binding OrgName,Mode=TwoWay}" ToolTip="{Binding OrgName,Mode=TwoWay}" Margin="2,0,0,0"/>
                                <!--</StackPanel>-->
                            </StackPanel>
                        </HierarchicalDataTemplate>
                    </TreeView.ItemTemplate>
                </TreeView>

  • 相关阅读:
    unable to retrieve container logs for docker kubernetes
    Restart container within pod
    Kubernetes1.3:POD生命周期管理
    Options of the DB storage of prometheus
    prometheus重启hang住问题记录
    prometheus交流资源
    nc 从服务器上传下载文件
    负载均衡监控需求
    prometheus消耗内存问题
    10.Docker 镜像使用
  • 原文地址:https://www.cnblogs.com/changbaishan/p/4586839.html
Copyright © 2011-2022 走看看