<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Windows Development on Bloodforge Blog</title><link>https://www.bloodforge.com/categories/windows-development/</link><description>Recent content in Windows Development on Bloodforge Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 19 Jan 2017 00:00:27 +0000</lastBuildDate><atom:link href="https://www.bloodforge.com/categories/windows-development/index.xml" rel="self" type="application/rss+xml"/><item><title>Running Local Web Pages in CefSharp.WPF</title><link>https://www.bloodforge.com/2017/01/running-local-web-pages-in-cefsharp-wpf/</link><pubDate>Thu, 19 Jan 2017 00:00:27 +0000</pubDate><guid>https://www.bloodforge.com/2017/01/running-local-web-pages-in-cefsharp-wpf/</guid><description>&lt;p&gt;I needed to create a program which will run a web page from the local file system. Using the WebBrowser control wasn&amp;#8217;t really an option since that uses the Trident engine which didn&amp;#8217;t support many of the things we were trying to do in the web page. I went with the latest build of&amp;nbsp;&lt;a href="https://www.nuget.org/packages/CefSharp.Wpf/"&gt;CefSharp.Wpf&lt;/a&gt;, but that doesn&amp;#8217;t natively run local files, so it had to be modified. Fortunately, I found some posts on how to enable that feature (&lt;a href="https://thechriskent.com/2014/04/21/use-local-files-in-cefsharp/"&gt;here&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://github.com/cefsharp/CefSharp/blob/master/CefSharp.Example/CefSharpSchemeHandler.cs"&gt;here&lt;/a&gt;) &amp;#8211; however, the first link was for an older version of CefSharp, and the second link only works with static resource files. I ended up merging both concepts to get it to work.&lt;/p&gt;</description></item><item><title>Extract Formatted Text From Excel Cell With C# (Rich Text Format)</title><link>https://www.bloodforge.com/2009/09/extract-formatted-text-from-excel-cell-with-c-rich-text-format/</link><pubDate>Thu, 17 Sep 2009 00:00:25 +0000</pubDate><guid>https://www.bloodforge.com/2009/09/extract-formatted-text-from-excel-cell-with-c-rich-text-format/</guid><description>&lt;p&gt;I was writing an application that needed to convert text in a cell in an Excel workbook to HTML. It is fairly trivial to get formatting for the entire cell, but each individual character in the cell could have different formatting itself, so I needed something more specific than cell-level formatting info.&lt;/p&gt;
&lt;p&gt;At first, I started using the&amp;nbsp;&lt;strong&gt;Excel.Range.get_Characters( pos, len )&lt;/strong&gt;&amp;nbsp;method to get info out of the cell.&amp;nbsp; The code would loop through all characters, get them one by one, and check the formatting.&amp;nbsp; For example:&lt;/p&gt;</description></item><item><title>Vista Sidebar Gadget, Transparent Backgrounds, and Font Color</title><link>https://www.bloodforge.com/2008/05/vista-sidebar-gadget-transparent-backgrounds-and-font-color/</link><pubDate>Fri, 09 May 2008 00:00:00 +0000</pubDate><guid>https://www.bloodforge.com/2008/05/vista-sidebar-gadget-transparent-backgrounds-and-font-color/</guid><description>&lt;p&gt;We&amp;#8217;ve had a request from a client to build a Windows Vista Sidebar Gadget.  The background on the gadget is to be somewhat see-through.  So I&amp;#8217;ve played around with gadgets, and noticed that when I make a semi-transparent background on the gadget, the font color gets all messed up.  For example, I wanted white text on a blue background with 50% opacity, and the font appeared blueish, even though it was supposed to be white.  If I turn off the opacity on the background, the font becomes white, but as long as there&amp;#8217;s opacity, the font is messed up.&lt;/p&gt;</description></item></channel></rss>