zoukankan      html  css  js  c++  java
  • Fluent Ribbon 第八步 其他控件

    前七节将Ribbon的功能大致介绍了一番,本节来介绍一些特殊控件的使用

    DropDownButton控件

    当前控件是显示下拉功能的基本组件,其配合Gallery能实现诸多特殊功能,代码如下所示

    <Fluent:DropDownButton Header="Pink" Icon="ImagesPink.png" LargeIcon="ImagesPinkLarge.png">

    <Fluent:Gallery>

    <Image Source="ImagesRedLarge.png" Stretch="None" />

    <Image Source="ImagesGreenLarge.png" Stretch="None" />

    <Image Source="ImagesBlueLarge.png" Stretch="None" />

    </Fluent:Gallery>

    </Fluent:DropDownButton>

    当前主要显示一个下拉控件,显示一些下拉显示,如下图

    Gallery 控件

    用于显示一个组合列表的功能,其基本代码形式如下:

    <Fluent:RibbonGroupBox Header="列表组" >

    <Fluent:Gallery>

    <Image Source="ImagesRedLarge.png" Stretch="None" />

    <Image Source="ImagesGreenLarge.png"Stretch="None" />

    <Image Source="ImagesBlueLarge.png" Stretch="None" />

    </Fluent:Gallery>

    </Fluent:RibbonGroupBox>

    其显示效果如图

    ColorGallery控件

    用于实现颜色的选择控件,其继承自Gallery

    <Fluent:ColorGallery Mode="StandardColors" SelectedColor="{Binding ColorViewModel.StandardColor, Mode=TwoWay}" />

    其显示效果如图

    Spinner控件

    <Fluent:Spinner KeyTip="KA"

    InputWidth="75"

    Format="0 px"

    Header="数值:"

    Icon="Images/Warning.png"

    />

    其显示效果如图

    还有一些不太常用的控件,可以查看源码,细细分析。

  • 相关阅读:
    剑指offer11-二进制中1的个数
    剑指offer10-矩形覆盖
    剑指offer08-跳台阶
    剑指offer07-斐波那契数列
    剑指offer04-重建二叉树
    剑指offer62-二叉搜索树的第k个结点
    kimball维度建模(5)-拉链表原理、设计以及在Hive中的实现
    kimball维度建模(4)-统一数仓层DW与事实表设计
    C-宏定义
    lua-设计与实现-8环境与模块
  • 原文地址:https://www.cnblogs.com/minhost/p/7233908.html
Copyright © 2011-2022 走看看