标签: ribbon-control

26
推荐指数
1
解决办法
2万
查看次数

如何在RibbonApplicationMenu的头部设置文本

我正在尝试将文本放在RibbonApplicationMenu的顶层(尝试获取类似于Word或Outlook的"文件"一词).似乎Microsoft.Windows.Controls.Ribbon.RibbonApplicationMenu http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbonapplicationmenu.aspx支持SmallImageSource但没有文本属性.设置该Label属性不适用于此问题.

xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"    
<ribbon:RibbonApplicationMenu Label="File"> <!--doesn't set the label -->

</ribbon:RibbonApplicationMenu>
Run Code Online (Sandbox Code Playgroud)

目标是在下面的圆圈区域中显示"文件"一词.

RibbonApplicationMenu

wpf ribbon ribbon-control ribboncontrolslibrary

23
推荐指数
3
解决办法
1万
查看次数

更改.NET 4.5 WPF功能区的主题

我试图从.NET Framework 4.5 更改新的WPF功能区控件的主题,我被卡住了.

我只设法改变了一些画笔(背景,前景,边框...),但我似乎无法改变明亮的叠加和阴影.

我很高兴使用资源字典,但我不知道我需要设置哪些属性.

我希望你能指出我正确的方向,非常感谢你的帮助!

c# wpf ribbon-control wpf-4.5

14
推荐指数
1
解决办法
8377
查看次数

有没有人使用Ribbon Control?

现在Windows 7就在这里,功能区控件似乎风靡一时.

我在这个链接上发现了Codeplex上的功能区控件...

我想知道的是,将UI范例转变为纯粹"与时俱进或与发展趋势保持同步"是否有任何实际好处?

我只是看不出这样做的重点,除非您正在处理的应用程序超过了Microsoft的Word,因为它有一堆菜单选项.

使用功能区控件,必然会有一些终端用户喋喋不休地尖叫着想要他们的旧UI回来......

c# ribbon-control

11
推荐指数
2
解决办法
2843
查看次数

如何在Outlook中为自定义按钮添加图像图标

我在Outlook中有一个自定义按钮,我必须为同一个按钮添加图像图标.

功能区XML是:

<button id="GoToAppConfiguration" 
    label="Application Configuration" 
    getImage="GetCustomImage" 
    onAction="GoToAppConfigurationClicked" 
    size="normal" />
Run Code Online (Sandbox Code Playgroud)

我想编写功能区回调方法但是如何编写相同的内容以及如何使用存储在Addin项目下的Resource文件夹中的图像.

c# outlook add-in ribbon-control

10
推荐指数
1
解决办法
8287
查看次数

为WPF应用程序应用Office 2007主题

我正在使用WPF工具包中的RibbonControl.它有Office Blue,Black和Silver主题.但主题不适用于窗口中的控件.那有什么解决方案吗?

我正在接受这样的主题

 <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/RibbonControlsLibrary;component/Themes/Office2007Black.xaml"/>
 </ResourceDictionary.MergedDictionaries>
Run Code Online (Sandbox Code Playgroud)

但是控件就像按钮一样,文本框也没有变化.

wpf wpftoolkit ribbon-control ribboncontrolslibrary

9
推荐指数
1
解决办法
8844
查看次数

为什么我的RibbonWindow没有正确主题?

使用ribboncontrolslibrary,当我运行我的应用程序时,标题栏看起来像W98应用程序.我该如何让它看起来漂亮?

编辑:似乎与Windows上使用的主题有关.

任何帮助,将不胜感激.

alt text http://img718.imageshack.us/img718/8188/321321.jpg

<r:RibbonWindow x:Class="Produccion_Dampers.main"
 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 xmlns:r="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
 Title="Window1"
 Height="600"
 Width="800">
    <DockPanel>
        <r:Ribbon DockPanel.Dock="Top" Title="my App looks like s***t">
        </r:Ribbon>
    </DockPanel>
</r:RibbonWindow>
Run Code Online (Sandbox Code Playgroud)

c# wpf ribbon-control

9
推荐指数
1
解决办法
1461
查看次数

为什么Visual Studio 2008找不到afxcontrolbars.h?

我已经安装了VS 2008.当我尝试构建项目时,我收到一条错误消息:

无法打开包含文件:'afxcontrolbars.h':没有这样的文件或目录

所以,我想我需要为此安装功能区控件.你能告诉我哪些SDK可供下载吗?链接会非常有用; 我自己用Google搜索,但我找不到它.:(

windows mfc visual-studio-2008 visual-c++ ribbon-control

9
推荐指数
1
解决办法
2万
查看次数

Binding ="{Binding(0)}"是什么意思?

我找到了这个:

<DataTrigger Value="True" Binding="{Binding (0)}">
Run Code Online (Sandbox Code Playgroud)

RibbonMenuButton模板中的触发器.这是什么意思?我试过谷歌,但一无所获.

UPD更多代码:

<ControlTemplate x:Key="RibbonMenuButtonControlTemplate1" TargetType="{x:Type RibbonMenuButton}">
...
    <DataTrigger Binding="{Binding (0)}" Value="True">
        <Setter Property="TextElement.Foreground" TargetName="MainGrid" Value="{DynamicResource {x:Static SystemColors.MenuTextBrushKey}}"/>
        <Setter Property="PathFill" TargetName="TwoLineText" Value="{DynamicResource {x:Static SystemColors.MenuTextBrushKey}}"/>
        <Setter Property="CornerRadius" TargetName="OuterBorder" Value="0"/>
        <Setter Property="Background" TargetName="OuterBorder" Value="Transparent"/>
        <Setter Property="BorderBrush" TargetName="OuterBorder" Value="Transparent"/>
    </DataTrigger>
...
Run Code Online (Sandbox Code Playgroud)

RibbonMenuButton控件上按下"编辑模板"按钮后,在Blend中创建此代码.

wpf datatrigger controltemplate expression-blend ribbon-control

8
推荐指数
1
解决办法
1337
查看次数

WPF ::将RibbonComboBox设置为与RibbonGallery不同的样式

我有一个RibbonComboBox用于设置字体大小.它有一个RibbonGallery列出各种字体大小,显示在适当的FontSize:

<r:RibbonComboBox DataContext="{x:Static vm:RibbonDataModel.FontSizeComboBoxData}"
                  SelectionBoxWidth="30">
   <r:RibbonGallery MaxColumnCount="1"
                    Command="{Binding Command}"
                    CommandParameter="{Binding SelectedItem}">
      <r:RibbonGallery.GalleryItemTemplate>
         <DataTemplate>
            <Grid>
               <TextBlock Text="{Binding}"
                          FontSize="{Binding}" />
            </Grid>
         </DataTemplate>
      </r:RibbonGallery.GalleryItemTemplate>
   </r:RibbonGallery>
</r:RibbonComboBox>
Run Code Online (Sandbox Code Playgroud)

编辑这是我的ViewModel:

public static RibbonDataModel
{
  public static GalleryData<object> FontSizeComboBoxData
  {
     get
     {
        lock (LockObject)
        {
           const string key = "Font Size";
           if (!DataCollection.ContainsKey(key))
           {
              var value = new GalleryData<object>
              {
                 Command = HtmlDocumentCommands.ChangeFontSize,
                 Label = "Change Font Size",
                 ToolTipDescription = "Set the font to a specific size.",
                 ToolTipTitle = "Change …
Run Code Online (Sandbox Code Playgroud)

wpf ribbon ribbon-control windows-ribbon-framework ribboncontrolslibrary

8
推荐指数
1
解决办法
1724
查看次数