Click here to Skip to main content
15,896,207 members
Articles / Web Development / XHTML

Introducing SilverlightDesktop.net

Rate me:
Please Sign up or sign in to vote.
4.11/5 (4 votes)
19 Oct 2008BSD5 min read 38.6K   266   49  
SilverlightDesktop.net is a Open-Source ASP.NET framework that allows you to dynamically load Silverlight modules into resizable draggable windows.
/*** This script will only run if the version number in the database is less than 01.60.00 ***/
if((SELECT REPLACE(VersionNumber,'.','') FROM Version) < '016000')
BEGIN

/****** Object:  Table [dbo].[SilverlightDesktopInstance] ******/
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[SilverlightDesktopInstance]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[SilverlightDesktopInstance](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[DesktopName] [nvarchar](50) NOT NULL,
	[DesktopSizeHorizontal] [int] NOT NULL,
	[DesktopSizeVertical] [int] NOT NULL,
	[Transparent] [bit] NOT NULL,
	[ShowToolbar] [bit] NOT NULL,
	[AutoLoadModule] [int] NOT NULL,
 CONSTRAINT [PK_SilverlightDesktopInstances] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END

/****** Object:  Table [dbo].[SilverlightDesktopInstanceModules] ******/
IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[SilverlightDesktopInstanceModules]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
CREATE TABLE [dbo].[SilverlightDesktopInstanceModules](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[InstanceID] [int] NOT NULL,
	[ModuleID] [int] NOT NULL,
 CONSTRAINT [PK_SilverlightDesktopInstanceModules] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
END
	
	/** Update Version **/
	DELETE FROM Version
	INSERT INTO Version(VersionNumber) VALUES (N'01.60.00')

END

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The BSD License


Written By
Software Developer (Senior) http://ADefWebserver.com
United States United States
Michael Washington is a Microsoft MVP. He is a ASP.NET and
C# programmer.
He is the founder of
AiHelpWebsite.com,
LightSwitchHelpWebsite.com, and
HoloLensHelpWebsite.com.

He has a son, Zachary and resides in Los Angeles with his wife Valerie.

He is the Author of:

Comments and Discussions