zoukankan      html  css  js  c++  java
  • Silverlight学习笔记八右键菜单控件

     ContextMenu是Sliverlight中的右键菜单控件

    <Controls:ContextMenuService.ContextMenu>
                                <Controls:ContextMenu>
                                   
                                    <Controls:MenuItem Header="查询" x:Name="cmiQuery" Click="cmiQuery_Click">
                                        <Controls:MenuItem.Icon>
                                            <Image Source="http://www.cnblogs.com/Images/ButtonSearch.png" />
                                        </Controls:MenuItem.Icon>
                                    </Controls:MenuItem>

                                    <Controls:MenuItem Header="添加" x:Name="cmiAdd" Click="cmiAdd_Click">
                                        <Controls:MenuItem.Icon>
                                            <Image Source="http://www.cnblogs.com/Images/add.png"/>
                                        </Controls:MenuItem.Icon>
                                    </Controls:MenuItem>

                                    <Controls:MenuItem Header="修改" x:Name="cmiUpdate" Click="cmiUpdate_Click">
                                        <Controls:MenuItem.Icon>
                                            <Image Source="http://www.cnblogs.com/Images/ButtonEdit.png"/>
                                        </Controls:MenuItem.Icon>
                                    </Controls:MenuItem>

                                    <Controls:MenuItem Header="删除" x:Name="cmiDelete" Click="cmiDelete_Click">
                                        <Controls:MenuItem.Icon>
                                            <Image Source="http://www.cnblogs.com/Images/ButtonSaveAndClose.png"/>
                                        </Controls:MenuItem.Icon>
                                    </Controls:MenuItem>

                                    <Controls:MenuItem Header="审核" x:Name="cmiPassd" IsEnabled="False">
                                        <Controls:MenuItem.Icon>
                                            <Image Source="http://www.cnblogs.com/Images/ButtonSaveTo.png"/>
                                        </Controls:MenuItem.Icon>
                                    </Controls:MenuItem>

                                </Controls:ContextMenu>
                            </Controls:ContextMenuService.ContextMenu>

  • 相关阅读:
    全新的ASP.NET !
    asp.net core+ef core
    直播服务器Nginx
    NET Core1
    网络爬虫1
    java thread reuse(good)
    java中Executor、ExecutorService、ThreadPoolExecutor介绍(转)
    小心LinkedHashMap的get()方法(转)
    LinkedHashMap相关信息介绍(转)
    HashTable和HashMap的区别
  • 原文地址:https://www.cnblogs.com/salam/p/1776099.html
Copyright © 2011-2022 走看看