no images for QAT

Ribbon for WPF Forum

Posted 13 years ago by semyon
Version: 10.2.0533
Avatar
Hello. I have a problem. When I click Add to Quick Access Toolbar on the button - button(any) appears in QAT without image - just blank button, however it works as usual.(for exmaple, I can copy if it's "copy-button")

   <Style TargetType="{x:Type vp:RibbonPresenter}" x:Key="{x:Type vp:RibbonPresenter}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type vp:RibbonPresenter}">
                    <ControlTemplate.Resources>
                        <theme:GetTypeConverter x:Key="GetType"/>
                        <theme:BooleanToVisibilityConverter x:Key="booleanToVisibilityConverter"/>
                    </ControlTemplate.Resources>
               
                    <y:RibbonEx  QuickAccessToolBarLocation="None" x:Name="PART_Ribbon" IsQuickAccessToolBarCustomizeButtonVisible="False" IsTitleBarAreaVisible="False"
                                    ApplicationButtonImageSource="{DynamicResource {ComponentResourceKey {x:Type res:Resources}, OisLogoImageKey}}"
                                    ApplicationButtonScreenTipHeader="Table input" 
                                    UseScenicLayout="False"  IsCollapsed="True" 
                                    cal:RegionManager.RegionManager="{TemplateBinding cal:RegionManager.RegionManager}"
                                 >
                     

                        <ribbon:Ribbon.ApplicationButtonScreenTipDescription>
                            <Grid>
                                <Grid.Resources>
                                    <SolidColorBrush x:Key="sysBarTooltipIconsBrush" Color="#FF424242" />
                                </Grid.Resources>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="Auto"/>
                                </Grid.ColumnDefinitions>
                                <Image  Margin="2,2,5,2" Width="16" Height="16" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                                    <Image.Source>
                                        <DrawingImage>
                                            <DrawingImage.Drawing>
                                                <DrawingGroup>
                                                    <DrawingGroup.Children>
                                                        <GeometryDrawing Brush="{DynamicResource sysBarTooltipIconsBrush}" Geometry="F1 M 108.133,-778.393C 107.867,-781.727 107.867,-783.327 107.867,-783.593C 107.867,-784.793 107.733,-785.86 107.467,-786.66C 107.2,-787.727 106.533,-788.66 105.467,-789.327C 101.733,-791.46 99.2001,-792.66 98.1335,-792.793C 96.9335,-793.193 95.3335,-793.06 93.3335,-792.26C 92.1335,-791.993 90.9335,-791.46 89.4668,-790.927C 89.2001,-790.66 88.4001,-789.86 87.2001,-787.993C 86.1335,-786.393 85.4668,-785.327 85.4668,-785.06C 85.2001,-784.127 84.9335,-782.927 84.9335,-781.46C 84.9335,-780.527 85.0668,-777.86 85.3335,-773.86C 85.3335,-771.327 86.1335,-769.193 87.4668,-767.46C 88.9335,-765.46 89.4668,-763.86 89.4668,-762.127C 89.4668,-760.927 88.1335,-759.06 85.2001,-756.793C 82.2668,-754.26 79.4668,-752.927 76.8001,-752.527C 73.2001,-752.127 70.8001,-751.193 69.7335,-749.727C 68.5335,-748.393 68.0001,-745.993 68.0001,-742.393C 68.0001,-741.593 68.1335,-741.06 68.1335,-740.66L 122.667,-740.66L 122.8,-742.393C 123.067,-745.193 122.933,-747.327 122.667,-748.66C 122.4,-749.86 121.733,-750.927 120.533,-751.86C 119.2,-752.927 117.6,-753.727 115.6,-754.127C 111.067,-755.327 107.867,-757.06 105.867,-759.193C 104.533,-760.793 103.867,-762.793 103.867,-765.46C 103.867,-765.46 104.133,-766.66 104.667,-769.06C 105.2,-769.46 105.733,-770.127 106,-770.527C 106.533,-771.46 106.933,-772.527 107.067,-773.593C 107.067,-773.727 107.067,-773.86 107.2,-773.86C 107.733,-775.193 108.133,-776.793 108.133,-778.393 Z "/>
                                                    </DrawingGroup.Children>
                                                </DrawingGroup>
                                            </DrawingImage.Drawing>
                                        </DrawingImage>
                                    </Image.Source>
                                </Image>
                                <TextBlock Margin="0,0,2,0" VerticalAlignment="Center" Text="{Binding Source={x:Static aps:ApplicationContext.Current}, Path=User.Identity.Name}" Grid.Column="1" />
                                <Image Width="16" Height="16" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="2,0,5,2" Grid.Row="1">
                                    <Image.Source>
                                        <DrawingImage>
                                            <DrawingImage.Drawing>
                                                <DrawingGroup>
                                                    <DrawingGroup.Children>
                                                        <GeometryDrawing Brush="{DynamicResource sysBarTooltipIconsBrush}" Geometry="F1 M 126.533,8.26664C 126.533,6.26664 124,4.53333 118.666,2.93331C 113.466,1.46663 107.066,0.666664 99.7331,0.666664C 92.3997,0.666664 85.9997,1.46663 80.6664,2.93331C 75.4664,4.53333 72.9331,6.26664 72.9331,8.26664C 72.9331,10.4 75.4664,12.1333 80.6664,13.6C 85.9997,15.2 92.3997,15.8667 99.7331,15.8667C 107.066,15.8667 113.466,15.2 118.666,13.6C 124,12.1333 126.533,10.4 126.533,8.26664 Z "/>
                                                        <GeometryDrawing Brush="{DynamicResource sysBarTooltipIconsBrush}" Geometry="F1 M 120.667,14.9333C 120.4,15.2 119.333,15.4666 117.6,15.8667C 114.4,16.4 108.667,17.0667 100.4,17.6L 83.4666,16.1333C 80.5332,15.6 77.9999,14.8 75.7332,13.6C 74.1332,12.8 73.3332,12.5333 73.0666,12.5333L 72.9332,49.7333C 72.9332,51.7333 75.4666,53.6 80.6665,55.0667C 85.9999,56.5333 92.3999,57.3333 99.7332,57.3333C 107.067,57.3333 113.467,56.5333 118.667,55.0667C 124,53.6 126.533,51.7333 126.533,49.7333L 126.4,16.8C 126.4,16.8 126.4,15.7333 126.533,13.8667C 126.667,12.5333 126.267,12 125.6,12.1333C 125.2,12.2666 124.933,12.5333 124.8,12.8C 124.4,12.9333 124,13.2 123.6,13.4666C 122.4,14.2666 121.467,14.8 120.667,14.9333 Z "/>
                                                    </DrawingGroup.Children>
                                                </DrawingGroup>
                                            </DrawingImage.Drawing>
                                        </DrawingImage>
                                    </Image.Source>
                                </Image>
                                <TextBlock Margin="0,0,2,0" VerticalAlignment="Center" Text="{Binding Source={x:Static aps:AppServerManager.Current}, Path=Home}" Grid.Column="1" Grid.Row="1" />
                                <TextBlock Margin="2" VerticalAlignment="Center" Text="{Binding Source={x:Static aps:AppServerManager.Current}, Path=SessionId, StringFormat=Сессия: \{0\}}" Grid.ColumnSpan="2" Grid.Row="2" />
                            </Grid>
                        </ribbon:Ribbon.ApplicationButtonScreenTipDescription>

                        <ribbon:Ribbon.TabPanelItems>
                            <ContentControl cal:RegionManager.RegionName="{x:Static base:Regions.TabItemStrip}"/>
                        </ribbon:Ribbon.TabPanelItems>

                        <ribbon:Ribbon.ApplicationMenu>
                            <!-- Application Menu -->
                            <ribbon:ApplicationMenu>

                                <!-- Application Menu Items -->
                                <ribbon:Button Label="Сохранить сеанс работы" KeyTipAccessText="S" Command="{Binding ActiveWorkspace.SaveCommand}" x:Name="PART_Save" ImageSourceLarge="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/SaveAs32.png"/>
                                <ribbon:Separator x:Name="PART_Separator1"/>
                                <ribbon:Button Label="Закрыть форму" KeyTipAccessText="C" Command="{Binding  ActiveWorkspace.CloseCommand}" x:Name="PART_Close" ImageSourceLarge="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/CloseTab32.png"/>

                                <!-- Additional Content (Right side of application menu) -->
                                <ribbon:ApplicationMenu.AdditionalContent>
                                    <ribbon:RecentDocumentMenu Label="История открытых форм ввода" y:RecentDocumentMenuBefavior.Manager="{Binding recentDocumentManager}">
                                        <ribbon:RecentDocumentMenu.ItemTemplate>
                                            <DataTemplate>
                                                <ribbon:Button Command="{Binding DataContext.OpenRecentDocumentCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ribbon:RecentDocumentMenu}}}"
                                                               CommandParameter="{Binding Location}"
                                                               Label="{Binding Name}"/>
                                            </DataTemplate>
                                        </ribbon:RecentDocumentMenu.ItemTemplate>
                                    </ribbon:RecentDocumentMenu>
                                </ribbon:ApplicationMenu.AdditionalContent>

                                <!-- Application Menu Footer Buttons -->
                                <ribbon:ApplicationMenu.FooterButtons>
                                    <ribbon:Button KeyTipAccessText="CL" Label="Очистить историю" Command="{Binding ClearRecentDocumentManagerCommand}"/>
                                    <ribbon:Button KeyTipAccessText="X" Label="Возврат в навигатор" Command="{Binding NavigateToNavigatorCommand}"/>
                                </ribbon:ApplicationMenu.FooterButtons>
                            </ribbon:ApplicationMenu>
                        </ribbon:Ribbon.ApplicationMenu>
                        
            

                        <!-- Tabs -->
                            <ribbon:Ribbon.Tabs>

                            <ribbon:Tab Label="Главная" KeyTipAccessText="Г"  x:Name="PART_MainTab" >
                                <ribbon:Group ImageSourceSmall="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/Paste16.png" Label="Правка" KeyTipAccessText="ZC">
                                    
                                        <ribbon:Group.Variants>
                                        <ribbon:GroupVariant Priority="10" Size="Large" />
                                    </ribbon:Group.Variants>

                                  
                                        <ribbon:Button Label="Вставка" 
                                                   ImageSourceLarge="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/Paste32.png" 
                                                   ImageSourceSmall="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/Paste16.png" 
                                                   KeyTipAccessText="V" ScreenTipDescription="Вставка данных из буфера обмена."
                                                   Command="{Binding ActiveWorkspace.ActiveForm.PasteCommand}"/>
                                    <ribbon:StackPanel ItemVariantBehavior="MediumThenSmallWhenSmall">
                                        <ribbon:SplitButton Label="Вырезать"
                                                       ImageSourceSmall="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/Cut16.png" 
                                                       KeyTipAccessText="X" ScreenTipDescription="Вырезать выделенные данные и поместить их в буфер обмена." 
                                                       Command="{Binding ActiveWorkspace.ActiveForm.CutCommand}">
                                            <ribbon:Menu>
                                                <ribbon:CheckBox 
                                                    Label="Вырезать табличные данные с названиями столбцов" 
                                                    ImageSourceSmall="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/Cut16.png"
                                                    KeyTipAccessText="P" 
                                                    Command="{Binding ActiveWorkspace.ActiveForm.CutCommand}" CommandParameter="WithHeaders"/>
                                            </ribbon:Menu>
                                        </ribbon:SplitButton>
                                        <ribbon:SplitButton Label="Копировать"
                                                            ImageSourceSmall="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/Copy16.png" 
                                                            KeyTipAccessText="C" ScreenTipDescription="Копировать выделенные данные в буфер обмена." 
                                                            Command="{Binding ActiveWorkspace.ActiveForm.CopyCommand}">
                                            <ribbon:Menu>
                                                <ribbon:CheckBox ScreenTipDescription="Копировать табличные данные с названиями столбцов"
                                                    Label="Копировать табличные данные с названиями столбцов" 
                                                    ImageSourceSmall="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/Copy16.png"
                                                    KeyTipAccessText="P" 
                                                    Command="{Binding ActiveWorkspace.ActiveForm.CopyCommand}" CommandParameter="WithHeaders"/>
                                            </ribbon:Menu>
                                        </ribbon:SplitButton>
                                    </ribbon:StackPanel>
                              
                                    <!--<ribbon:Separator/>
                                    <ribbon:StackPanel>
                                        <ribbon:Button Label="Убрать фильтры" Command="{Binding ActiveWorkspace.ActiveForm.ClearFilters}"/>
                                        <ribbon:Button Label="Очистить форму" Command="{Binding ActiveWorkspace.ActiveForm.ClearRows}"
                                                       ScreenTipHeader="Очистка формы" 
                                                       ScreenTipDescription="Удаление данных в текущей форме." 
                                                       ScreenTipImageSource="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/TableClear32.png"
                                                       ImageSourceLarge="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/TableClear32.png"/>
                                    </ribbon:StackPanel>-->
                
                            </ribbon:Group>
                                <ribbon:Group
                                              ImageSourceSmall="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/QuickStart16.png" 
                                              ImageSourceLarge="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/QuickStart32.png"
                                              KeyTipAccessText="ZR">
                                    <ribbon:Group.Variants>
                                        <ribbon:GroupVariant Priority="10" Size="Large" />
                                    </ribbon:Group.Variants>
                                    <ribbon:Button Label="Модификация" 
                                                   ImageSourceLarge="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/QuickStart32.png" ImageSourceSmall="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/QuickStart16.png"
                                                   ScreenTipHeader="Модификация информационной системы" 
                                                   ScreenTipDescription="Формирование и выполнение запроса на модификацию на основе введенных данных" 
                                                   ScreenTipImageSource="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/QuickStart32.png"
                                                   Command="{Binding ActiveWorkspace.ModifyCommand}"/>
                                    
                                </ribbon:Group>
                                <ribbon:Group Label="Выборка данных" >
                                    <ribbon:Button Label="Обновление" 
                                                   ImageSourceLarge="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/refresh_green.png" ImageSourceSmall="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/QuickStart16.png"
                                                   ScreenTipHeader="Загрузка данных из информационной системы" 
                                                   ScreenTipDescription="Загрузить данные из информационной системы в формы ввода" 
                                                   ScreenTipImageSource="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/refresh_green.png"
                                                   Command="{Binding ActiveWorkspace.RefreshCommand}"/>
                                    <y:MyPopupButton x:Name="mpb"
                                                     ImageSourceLarge="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/calendar5.png"
                                                     Visibility="{Binding ActiveWorkspace.Package.ShowIntervalPicker, Converter={StaticResource booleanToVisibilityConverter}}" 
                                                     Label="{Binding ElementName=intp, Path=IntervalText}"
                                                     VerticalContentAlignment="Center"
                                                     HorizontalContentAlignment="Center">
                                        <y:MyPopupButton.PopupContent>
                                            <ip:IntervalPicker x:Name="intp" 
                                                               CancelButtonCommand="{Binding ElementName=mpb, Path=ClosePopupCommand}" 
                                                               OKButtonCommand="{Binding ElementName=mpb, Path=ClosePopupCommand}"  
                                                               TimeConstraintObj="{Binding ActiveWorkspace.Package.TimeInterval}"/>
                                        </y:MyPopupButton.PopupContent>
                                    </y:MyPopupButton>
                                </ribbon:Group>
                                <ribbon:Group Label="Вид"
                                              ImageSourceSmall="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/Calendar16.png" 
                                              ImageSourceLarge="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/Table32.png"
                                              KeyTipAccessText="ZV">
                                    <ribbon:Group.Variants>
                                        <ribbon:GroupVariant Priority="10" Size="Medium" />
                                    </ribbon:Group.Variants>
                                    <ribbon:StackPanel>
                                        <ribbon:Button ScreenTipDescription="Автоподбор ширины колонок" Label="Авто"
                                                       ImageSourceLarge="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/TableAuto32.png"
                                                       Command="{Binding ActiveWorkspace.ActiveForm.AutoColumnWidthCommand}"/>
                                        <ribbon:Button ScreenTipDescription="Автоподбор ширины колонок по значениям" Label="По значению"
                                                       ImageSourceLarge="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/TableContent32.png"
                                                       Command="{Binding ActiveWorkspace.ActiveForm.SizeToCellsColumnWidthCommand}"/>
                                        <ribbon:Button ScreenTipDescription="Автоподбор ширины колонок по заголовку" Label="По заголовку"
                                                       ImageSourceLarge="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/TableCaption32.png"
                                                       Command="{Binding ActiveWorkspace.ActiveForm.SizeToHeaderColumnWidthCommand}"/>
                                    </ribbon:StackPanel>
            
                                <ribbon:StackPanel>
                                        <ribbon:Button ScreenTipDescription="Автоподбор ширины колонок по экрану" Label="По экрану"
                                                       ImageSourceLarge="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/TableScreen32.png"
                                                       Command="{Binding ActiveWorkspace.ActiveForm.StarColumnWidthCommand}"/>
                                        <ribbon:Button 
                                                       ScreenTipDescription="Ширина колонок в пикселях" Label="В пикселях"
                                                       ImageSourceLarge="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/TablePx32.png"
                                                       Command="{Binding ActiveWorkspace.ActiveForm.PixelColumnWidthCommand}"/>
                                    </ribbon:StackPanel>
                                    <ribbon:Separator/>
                                    <!--<ribbon:Button Label="Настройка колонок" ImageSourceLarge="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/TableSettings32.png"
                                                   Command="{Binding ActiveWorkspace.ActiveForm.ColumnsSettingsCommand}"/>
                                    <ribbon:Separator/>-->
                                    <ribbon:Button ScreenTipDescription="Сохранить расположение форм" Label="Сохранить" ImageSourceLarge="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/SaveLayout32.png"
                                                   Command="{Binding ActiveWorkspace.SaveLayoutCommand}"/>
                                    <ribbon:Button ScreenTipDescription="Сохранить расположение форм в пакет" Label="Сохранить в пакет" ImageSourceLarge="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/layout_error.png"
                                                   Visibility="{Binding IsCurrentUserAdmin, Converter={StaticResource booleanToVisibilityConverter}}"
                                                   Command="{Binding ActiveWorkspace.SaveLayoutToDBCommand}"/>
                                    <ribbon:Button ScreenTipDescription="Востановить расположение форм" Label="Востановить" ImageSourceLarge="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/RestoreLayout32.png"
                                                   Command="{Binding ActiveWorkspace.RestoreLayoutCommand}"/>
                                    <ribbon:Button ScreenTipDescription="Востановить расположение форм по умолчанию" Label="Сбросить" ImageSourceLarge="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/RestoreDefaultLayout32.png"
                                                   Command="{Binding ActiveWorkspace.RestoreLayoutFromPackageCommand}"/>
                                </ribbon:Group>
                                <ribbon:Group Label="Настройка">
                                    <!--<ribbon:Button ScreenTipDescription="Фильтр справочны значений" Label="Справочники"
                                                   ImageSourceLarge="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/CrossReference32.png"
                                                   Command="{Binding CustomFilterCommand}"/>-->
                                    <ribbon:Button ScreenTipDescription="Параметры вставки из буфера" Label="Параметры вставки"
                                                   ImageSourceLarge="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/PasteSetting32.png"
                                                   Command="{Binding ClipboardSeparatorCommand}"/>
                                    <ribbon:Button ScreenTipDescription="Общие параметры" Label="Общие параметры"
                                                   ImageSourceLarge="pack://application:,,,/Ois.Plus.Ted;component/Themes/Images/settings.png"
                                                   Command="{Binding CommonSettingsCommand}"/>
                                    
                                </ribbon:Group>
                            </ribbon:Tab>
                            

                        </ribbon:Ribbon.Tabs>
                     
                  
                            
                    </y:RibbonEx>
                    <ControlTemplate.Triggers>
                        <DataTrigger Binding="{Binding ActiveWorkspace, Converter={StaticResource GetType}}" Value="{x:Type vm:ExplorerWorkspace}">
                            <Setter TargetName="PART_MainTab" Property="IsEnabled" Value="False"/>
                                                        <Setter TargetName="PART_Ribbon" Property="IsMinimized" Value="True"/>
                            <Setter TargetName="PART_Save" Property="Visibility" Value="Collapsed"/>
                            <Setter TargetName="PART_Separator1" Property="Visibility" Value="Collapsed"/>
                            <Setter TargetName="PART_Close" Property="Visibility" Value="Collapsed"/>
                        </DataTrigger>
                        <DataTrigger Binding="{Binding ActiveWorkspace, Converter={StaticResource GetType}}" Value="{x:Type vm:PreviewItemsWorkspace}">
                            <Setter TargetName="PART_MainTab" Property="IsEnabled" Value="False"/>
                                                        <Setter TargetName="PART_Ribbon" Property="IsMinimized" Value="True"/>
                            <Setter TargetName="PART_Save" Property="Visibility" Value="Collapsed"/>
                            <Setter TargetName="PART_Separator1" Property="Visibility" Value="Collapsed"/>
                            <Setter TargetName="PART_Close" Property="Visibility" Value="Collapsed"/>
                        </DataTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Semyon,

It should be working ok. Perhaps you can me a new simple sample project that shows the issue and email that to us. Don't include any .exe files in the ZIP and rename the .zip file extension so that it doesn't get spam blocked.

Also make sure the project you send is new and only contains the minimum number of controls needed to reproduce the issue. Thanks.


Actipro Software Support

The latest build of this product (v24.1.2) was released 14 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.