public RibbonSimplePad() { InitializeComponent(); richControl.Document.Blocks.Add(new Paragraph(new Run("Select the image below to show a contextual tab."))); richControl.Document.Blocks.Add(new Paragraph(new InlineUIContainer() { Child = new InlineImage(InlineImageViewModel.Create("/RibbonDemo;component/Images/Clipart/caCompClientEnabled.png")) })); ModuleAppear += OnModuleAppear; ThemeManager.ThemeChanged += (s, e) => FontEditWidth = ThemeManager.GetIsTouchEnabled(this) ? 90 : 50; }
public void InsertImage(object source) { InlineImageViewModel image = InlineImageViewModel.Create(source.ToString()); ImageService.InsertImage(image); }