Support for Fit and Fill display mode

Jul 22, 2011 at 10:34 AM

Hi there,

Really nice app you have develloped here. 

I noticed that it doesn't support Fit and Fill display mode. It's a simple change I tested. If you are interested in it here are the modifications :

winWallpaper.cs :

public enum Style : int {
            Tiled, Centered, Stretched, Fill, Fit
        }

///....



case Style.Fill:
                    key.SetValue(@"WallpaperStyle", "10");
                    key.SetValue(@"TileWallpaper", "0");
                    break;
                case Style.Fit:
                    key.SetValue(@"WallpaperStyle", "6");
                    key.SetValue(@"TileWallpaper", "0");
                    break;
            }

Form1.cs

//in Form1_Load
ddPosition.Items.Add("Fill");
ddPosition.Items.Add("Fit");


//in GetDisplayStyle()
case "fill": return winWallpaper.Style.Fill;
case "fit": return winWallpaper.Style.Fit;

Thanks again for the app !

Coordinator
Aug 24, 2011 at 10:32 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.