<p>I have used Photoshop CS2's "Save for Web" feature to create a table of images for my site layout.</p>

<p>This HTML appears fine in a web browser, however when imported into Visual Studio and viewed in the site designer, the metrics are wrong and there are horizontal gaps between images (table cells).</p>

<p>The output from Photoshop does not refer to any stylesheets.<br>
The table attributes set border, cellpadding and cellspacing to 0.</p>

<p>Here is how it looks in the Designer:</p>

<p><img src="https://sites.google.com/site/sizerfx/Home/layout1.png?attredirects=0" alt="alt text"></p>

<p>And here is how it looks in the browser:</p>

<p><img src="https://sites.google.com/site/sizerfx/Home/layout2.png?attredirects=0" alt="alt text"></p>

<p>Is Visual Studio picky about layout of tables and images?  Is this a bug in Visual Studio 2005?</p>

Kris, I'm not sure this is the best way to bind ApplicationSettings, but this is how I did it in
Witty
.
1) Create a dependency property for the setting that you want to bind in the window/page/usercontrol/container. This is case I have an user setting to play sounds.
```
```
public bool PlaySounds
    {
        get { return (bool)GetValue(PlaySoundsProperty); }
        set { SetValue(PlaySoundsProperty, value); }
    }

    public static readonly DependencyProperty PlaySoundsProperty =
        DependencyProperty.Register("PlaySounds", typeof(bool), typeof(Options),
        new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnPlaySoundsChanged)));

    private static void OnPlaySoundsChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
    {
        Properties.Settings.Default.PlaySounds = (bool)args.NewValue;
        Properties.Settings.Default.Save();
    }
```
```
2) In the constructor, initialize the property value to match the application settings
```
```
PlaySounds = Properties.Settings.Default.PlaySounds;
```
```
3) Bind the property in XAML
```
```
<CheckBox Content="Play Sounds on new Tweets" x:Name="PlaySoundsCheckBox" IsChecked="{Binding Path=PlaySounds, ElementName=Window, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
```
```
You can download the full
Witty source
to see it in action or browse just the
code for options window
.