Feed Icon  

Contact

  • Bryant Likes
  • Send mail to the author(s) E-mail
  • twitter
  • View Bryant Likes's profile on LinkedIn
  • del.icio.us
Get Microsoft Silverlight
by clicking "Install Microsoft Silverlight" you accept the
Silverlight license agreement

Hosting By

Hot Topics

Tags

Open Source Projects

Archives

Ads

Previous Page Page 2 of 2 in the NET category(RSS)

Clipboard Paste Live Writer Plugin

Posted in .NET | Live Writer at Thursday, 17 August 2006 11:55 Pacific Daylight Time

If you copy source as html (or have any html in the clipboard), hitting paste in Windows Live Writer pastes the text without the markup. So since there is an SDK and some great samples, I went ahead and wrote a simple plugin to paste the clipboard contents as html (in about 10 minutes).

public override DialogResult CreateContent(IWin32Window dialogOwner, ref string newContent)
        {
            DialogResult result = DialogResult.OK;
            if (Clipboard.ContainsText() == true)
            {
                newContent = Clipboard.GetText();
            }
            else
            {
                result = MessageBox.Show(dialogOwner, "Copy your HTML to the clipboard.", "Paste as Html", MessageBoxButtons.OKCancel);
                if (result == DialogResult.OK && Clipboard.ContainsText() == true)
                {
                    newContent = Clipboard.GetText();
                }
            }
 
            return result;
        }

I've applied to join the CodePlex project so maybe my humble contribution will get added, but for now you can download it here.

Technorati Tags: -

WPF vs. CAB

Posted in .NET | WPF at Tuesday, 15 August 2006 09:09 Pacific Daylight Time

I'm starting a new project where we will be using Windows Presentation Foundation (WPF). I've done very little work with WinForms in the past, but from what I understand the Composite UI Application Block (CAB) is the way to go for WinForms development. I've also seen a few posts about integrating the two using crossbow. However, I don't want to host WPF inside of WinForms, I want to use pure WPF.

So does WPF replace CAB as a UI framework or are there things in CAB that WPF is missing?

I haven't been able to find much on the subject so far. I'm just getting started on my project and still learning the WPF basics (and some CAB basics), so it is certainly possible that I'm just missing the obvious answer. Any feedback or suggestions are welcome...

Previous Page Page 2 of 2 in the NET category(RSS)