zoukankan      html  css  js  c++  java
  • ComboBox

    IsEditable:把 ComboBox变成一个文本框;

    IsReadOnly:决定文本框是否可以编辑;

    只有 IsEditable true 时,IsReadOnly 才起作用。

    <ComboBox>

                <!--Item #1-->

                <StackPanel Orientation="Horizontal" Margin="5">

                    <Image Source="/Pictures/1.jpg"></Image>

                    <StackPanel Width="200">

                        <TextBlock Margin="5,0" FontSize="14" FontWeight="Bold" VerticalAlignment="Center">

                            Curtain Call

                        </TextBlock>

                        <TextBlock Margin="5" VerticalAlignment="Center" TextWrapping="Wrap">

                            Whimsical,with a red curtain background that represents a stage.

                        </TextBlock>

                    </StackPanel>

                </StackPanel>

                <!--Item #2-->

               <StackPanel Orientation="Horizontal" Margin="5">

                    <Image Source="/Pictures/2.jpg" />

                    <StackPanel Width="200">

                        <TextBlock Margin="5,0" FontSize="14" FontWeight="Bold" VerticalAlignment="Center">

                            Fireworks

                        </TextBlock>

                        <TextBlock Margin="5" VerticalAlignment="Center" TextWrapping="Wrap">

                            Sleek,with a black sky containing firworks.When you need to celebrate PowerPoint style,this design is for you!

                        </TextBlock>

                    </StackPanel>

                </StackPanel>

            </ComboBox>

    SelectionChanged事件有 AddedItems 包含新的选择 RemovedItems包含老的选择。

    Void ComboBox_SelectionChanged(Object sender,SelectionChangedEventArgs e)

    {

    If(e.AddedItems.Count>0)

    {

    }

    }

  • 相关阅读:
    经典管理定理6条
    从《乔家大院》悟企业留人
    大型Web2.0站点构建技术初探(转)
    从《投名状》谈创业如何“兄弟”共赢
    web2.0站点的考虑
    如何管理很“牛”的员工?
    五种提高 SQL 性能的方法
    破译犹太商人成功密码
    通过了解MySpace的六次重构经历,来认识分布式系统到底该如何创建
    业务员的3个经典故事
  • 原文地址:https://www.cnblogs.com/quietwalk/p/2264435.html
Copyright © 2011-2022 走看看