コード例 #1
0
 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;
 }
コード例 #2
0
        public void InsertImage(object source)
        {
            InlineImageViewModel image = InlineImageViewModel.Create(source.ToString());

            ImageService.InsertImage(image);
        }