I have the boolean property Settings.Default.MarkAsRead in the Setting.settings file, which can be accessed in my Ribbon class. What I would like to do is set the checkbox value in my backstage section depending on the value of this property. Also, if the user modifies it, I will need to save the new value.
Anyway, can I do this?
This is my (simplified) xml:
<?xml version="1.0" encoding="UTF-8"?> <customUI onLoad="Ribbon_Load" xmlns="http://schemas.microsoft.com/office/2009/07/customui"> <backstage> <tab id="MyBackstageSection" label="MyBackstageSection" columnWidthPercent="30" insertAfterMso="TabInfo" visible="true" > <firstColumn> <group id="grpOne" label="Configuration"> <bottomItems> <checkBox id="markAsRead" label="Mark as read" getPressed="markAsRead_GetPressed" /> <button id="save" label="Save Preferences" onAction="save_Click"/> </bottomItems> </group> </firstColumn> </tab> </backstage> </customUI>
epzee source share