Configuring Verizon FiOS router for NAT loopback

Standard

I run my own server at home, and host my site on it.  The WHS software provides a subdomain on the homeserver.com domain.  Browsing this domain from within my network has always caused problems – essentially, my browser ends up showing me my router’s configuration page.

Continue reading

C# default text for WPF textbox

Standard

I’m working on a project developing an application for a touch-screen interface.  As such, all of my screen elements are BIG, to accommodate navigation via touch.  It occurred to me that I could save space by eliminating labels for textboxes.  Of course, I don’t really want to have a bunch of textboxes with no way of knowing which textbox is for which bit of data.  I wanted a way to have the textbox display default text when it’s empty, but to allow for otherwise normal input.  I chose to implement both the OnTextChanged and PreviewTextInput methods to accommodate this functionality.

Continue reading