Ribbon + Backstage

Hi all,
i try using the Backstage Control to add a Printmenu to my Application.
What i have to do:
Every RibbonTab fires an Event with existing Reports for these TabControl. This ReportEntries are displayed as a Menu in Backstage.
Selecting one the ReportItem the ReportPrevier in the BackStage Area display the Report.

Only with theses lines:

xmlns:sfskin="clr-namespace:Syncfusion.SfSkinManager;assembly=Syncfusion.SfSkinManager.WPF"
   sfskin:SfSkinManager.VisualStyle="MaterialLight"

i can see the BackStage at all. Using any other Style there is no visible BackStage 

So:
a) Any Idea what is wrong ??
b) Is there any other recommendation about using a PrintMenu in RibbonControl.

Thanks
Peter


7 Replies 1 reply marked as answer

EM Elakkiya Muthukumarasamy Syncfusion Team January 20, 2021 02:47 PM UTC

Hi Peter, 

Greetings from Syncfusion. 

Query: BackStage not visible while using different style.  

We have checked your query and found that we can able to visible the BackStage other visual styles also(Office2019Colorful, Office2016Colorful, Office2013DarkGray) in the version 18.4.0.35. We have checked this by changing the visual styles in RibbonComboBox. Please refer the sample for the same 


Query: Is there any other recommendation about using a PrintMenu in RibbonControl. 

We can able to open the PrintDialog while select the print option in Backstage of the Ribbon. Please refer the video for the same. 


You can able to customize the print option based on your requirement in your sample. Please refer the below link 


Please try it and if you have concerns with the provided solution. Please share us more details about your requirement and details about which part you want to customize using print option in BackStage. These details will be helpful for us to proceed further. 

Regards, 
Elakkiya 


Marked as answer

FP Forstmeier Peter January 20, 2021 05:05 PM UTC

Hi,
thanks for the very fast answer, you have an exzellent support.
I got it to work, the problems are:
a) no references to the syncfusion.themes.xyc files.
b)i have a very strange converter. 
I add the *.xaml and the converter, would you please have a look.

The samples looks suberb. But we have a misunderstanding, i look for the correct way to show the List of available reports in some sort of Menu. Is there any recommended way with the RibbonControl. I can think of add it to the Bachstage or add it to each Ribbontab in Combobox or something else.
Thanks
Peter

Attachment: Bool2GridWidthConverter_97a80e31.rar


EM Elakkiya Muthukumarasamy Syncfusion Team January 21, 2021 12:38 PM UTC

Hi Peter, 
 
Thanks for your update. 
 
Query: No references to the syncfusion.themes.xyc files. 
 
The SFSkinManager helps to apply the themes for both syncfusion and framework controls .Please refer the below link to apply the theme. 
 
 
Query :I have a very strange converter. 
 
We have checked your provided converter class file but the converter is not used in the provided xaml file. Can you please update the purpose or where you have used this converter in xaml page. These details will  be helpful  for us to provide the prompt solution on this. 
 
Query: Add it to the Backstage 
 
If you want to show the list of available reports in some sort of menu in BackStage as mentioned earlier you can able to customize the print option based on your requirement. Please refer the below link  
 
 
 
Query: Add it to each Ribbontab in Combobox or something else 
 
You can able to show the list of available reports in some sort of menu in RibbonTab. Please refer the below help documentation link 
 
 
 
  
For more details you can refer the Model Tab sample Which is available in below location 
 
Step 1: Open the WPF demos https://github.com/syncfusion/wpf-demos  
Step 2:Select the control name Ribbon https://github.com/syncfusion/wpf-demos/tree/master/ribbon  
Step 3:Download the samples 
 
 
Please try it with the provided solutions and let us know if you need any further assistance on this. 
 
Regards, 
Elakkiya 



FP Forstmeier Peter January 21, 2021 05:07 PM UTC

Hi,
sorry for the missing code, i added it in the attachment.
 <ColumnDefinition Width="{Binding DataNavVisibility, UpdateSourceTrigger=PropertyChanged,Converter={StaticResource GridWidthConverter}}" />
The Property 'DataNavVisibility' is just a bool >Property in my ViewModel.

The dvice with ModalTab looks great. i will try both methods, Bachstage and ModalTab.

Some more questions
did you have any business connection with DevExpress.
Is there any chance to get the UserControl for BachStagePrintPreview??

Thanks in advance
Peter

Attachment: BoolToGridWidth_2_14d9d9eb.rar


JP Jagadeesan Pichaimuthu Syncfusion Team January 22, 2021 10:56 AM UTC

Hi Peter, 
 
Thanks for your update. 
 
Converter related problems:
We have checked your provided code snippet related to the converter and we have tried to modify the sample. But we faced some assembly missing problems when using your code snippets. So can you please provide the below information,
1. Can you please provide details on which kind of problems are you facing while using the converter?
2. It is possible to modify the model tab sample (which we provided in our last update) with your converter-related codes. It will be more helpful to identify problems and provide the solution at the earliest? 
 
BackStage print preview control:
Sorry for the inconvenience caused. We don't have a business connection with DevExpress. Previously support team engineer mistakenly updated the dev-express reference link due to some miscommunication. 
 
We will consider providing support for "Print preview control in Backstage of WPF Ribbon" and logged a feature request for the same. 
 
Thank you for requesting this feature and helping us define it. We are always trying to make our products better and feature requests like yours are a key part of our product growth efforts. We will implement this feature in any of our upcoming releases. 
 
 
If you have any more specifications/suggestions for the feature request, you can add it as a comment in the portal and cast your vote to make it count. 
 
Regards,
Jagadeesan 



FP Forstmeier Peter January 23, 2021 07:00 PM UTC

Hi,
i can partially nail down the problem.
As long that there is no VisualStyle is set, you can't see the BachStage Tab. Selecting a Theme with the Combobox, the BackStage Tab get's visibel.
Steps to reproduce:
Start the Application -> no Backstage
Select a Theme with the ComboBox -> BackStageTab == Visibel.

It sounds very good that there are rumours to implement the BachSagePrintPreview.....
Let me know when i can get a Preview.

Peter

Attachment: RibbonSample_Modified_370a2c12.rar


VR Vijayalakshmi Roopkumar Syncfusion Team January 25, 2021 10:01 AM UTC

Hi ForstMeier,  
  
Thank you for your update.  
  
Query: As long that there is no VisualStyle is set, you can't see the BachStage Tab. Selecting a Theme with the Combobox, the BackStage Tab get's visibel..  
  
We have tried to reproduce the reported behavior "Backstage is not visible with no visual style is set" with your sample. However the Backstage is not supported in default theme and it is supported from Office2010 and latest themes. However on analyzing your sample, we could found that you are applying the MaterialLight theme in RibbonWindow at startup of application, but it is not applied in UI. So on further analyzing, you are merging the converter class in Resource dictionary and it implied it applying the empty dictionary in sample level as in the following code:  
  
Code:  
  
  
<syncfusion:RibbonWindow.Resources> 
<ResourceDictionary> 
<local:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/> 
<local:Bool2GridWidthConverter x:Key="GridWidthConverter"/> 
</ResourceDictionary> 
</syncfusion:RibbonWindow.Resources> 
      
  
So only the MaterialLight theme is not applied properly at startup of application. However if you are trying to refer the converter class in your sample, we would request you to just set this code in Resources and not in ResourceDictionary to apply the respective theme correctly,as shown  in following code. 
 
 
 
    <syncfusion:RibbonWindow.Resources> 
        <local:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/> 
        <local:Bool2GridWidthConverter x:Key="GridWidthConverter"/> 
    </syncfusion:RibbonWindow.Resources> 
 
  
  
  
Screenshot:  
  
    
  
Query : It sounds very good that there are rumours to implement the BachSagePrintPreview..Let me know when i can get a Preview. 
 
We have added it our feature request list and currently we don't have immediate plan for this. It will be included in our any of our upcoming release and update you once it get implemented. Please track the status of this feedback using feedback link: 
 
 
Please try this suggestion and let us know if it is helpful.  
  
Regards,  
Vijayalakshmi VR  


Loader.
Up arrow icon