Quantcast
Channel: General Office Development forum
Viewing all articles
Browse latest Browse all 2257

Is it possible to add a slider control to a ribbon of office add-in?

$
0
0

I'm writing a powerpoint add-in and would like to add a slider control (like the one you modify the volume of music player) to my customized ribbon. But it seems that the controls could be added to ribbon are really limited, and slider control is not one of them. Do you have any idea?

---

I tried to define a RibbonSlider class:

public class RibbonSlider:Slider,RibbonControl {
  ... // Some members required by RibbonControl interface
}

And use `groupTools.Items.Add(new RibbonSlider)` to add this control to a Ribbon Group. But VS gave me this error message "Unable to cast object of type 'Curtain.RibbonSlider' to type 'Microsoft.Office.Tools.Ribbon.RibbonControlImpl'."



Viewing all articles
Browse latest Browse all 2257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>