Click here to Skip to main content
12,357,409 members (74,301 online)
Click here to Skip to main content

Tagged as

Stats

16K views
2.1K downloads
18 bookmarked
Posted

How To Embed An Application Into a Docking Library

, 3 Sep 2011 CPOL
Step by Step conversion of an application into a Docking application component
Examples
Step by step SofaComponization
0. Original CSWPFMasterDetailBinding
CSWPFMasterDetailBinding.suo
Data
Properties
1. From Application To Component
1. From Application To Component.suo
CSWPFMasterDetailBinding
CSWPFMasterDetailBinding.csproj.user
Data
Properties
SofaBasicContainer
Properties
app.manifest
Resources
Sofa.bmp
Sofa
SofaBasicContainer.csproj - Copie.user
Perspectives
_Dev_SofaBasicContainer.csproj.user
_SofaBasicContainer.csproj.user
2. From Simple Component to sub-Components
2. From Simple Component to sub-Components.suo
CSWPFMasterDetailBinding
CSWPFMasterDetailBinding.csproj.user
Data
MainComponent.xaml.cs.bak
Properties
SofaBasicContainer
BaseWindow.xaml.cs.bak
Properties
app.manifest
Resources
Sofa.bmp
Sofa
SofaBasicContainer.csproj - Copie.user
Perspectives
_Dev_SofaBasicContainer.csproj.user
_SofaBasicContainer.csproj.user
3. About Perspectives
3. About Perspectives.suo
CSWPFMasterDetailBinding
CSWPFMasterDetailBinding.csproj.user
Data
MainComponent.xaml.cs.bak
Properties
Service References
SofaBasicContainer
BaseWindow.xaml.cs.bak
Properties
app.manifest
Resources
Sofa.bmp
Sofa
SofaBasicContainer.csproj - Copie.user
Perspectives
_Dev_SofaBasicContainer.csproj.user
_SofaBasicContainer.csproj.user
External dependencies
log4net.dll
Mef.Codeplex
System.ComponentModel.Composition.Codeplex.dll
System.ComponentModel.Composition.Registration.dll
System.Reflection.Context.dll
Prism.Mef_Codeplex
Microsoft.Practices.Prism.dll
Microsoft.Practices.Prism.Interactivity.dll
Microsoft.Practices.Prism.MefExtensions.dll
Microsoft.Practices.Prism.UnityExtensions.dll
Microsoft.Practices.ServiceLocation.dll
Microsoft.Practices.Unity.dll
Microsoft.Practices.Unity.Interception.dll
WPFToolkit.dll
Libraries
ExternalFrameworks.dll
Sofa.Commons.dll
Sofa.Component.dll
Sofa.Container.dll
Sofa.Themes.dll
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace SofaBasicContainer
{
    public static class Parameters
    {
        public class PSettings : ApplicationSettingsBase
        {

            [UserScopedSetting]
            public string CurrentPerspective
            {
                get
                {
                    if (this["CurrentPerspective"] != null) return ((string)this["CurrentPerspective"]);
                    return "";
                }
                set { this["CurrentPerspective"] = value; }
            }

            [UserScopedSetting]
            public string CurrentCustomTheme
            {
                get
                {
                    if (this["CurrentCustomTheme"] != null) return ((string)this["CurrentCustomTheme"]);
                    return "";
                }
                set { this["CurrentCustomTheme"] = value; }
            }

            [UserScopedSetting]
            public string CurrentStandardTheme
            {
                get
                {
                    if (this["CurrentStandardTheme"] != null) return ((string)this["CurrentStandardTheme"]);
                    return "";
                }
                set {this["CurrentStandardTheme"] = value; }
            }

            [UserScopedSetting]
            public string CurrentThemeColor
            {
                get
                {
                    if (this["CurrentThemeColor"] != null) return ((string)this["CurrentThemeColor"]);
                    return "";
                }
                set { this["CurrentThemeColor"] = value; }
            }
        }

        private static PSettings defaultInstance = ((PSettings)(ApplicationSettingsBase.Synchronized(new PSettings())));
        public static PSettings Default
        {
            get { return defaultInstance; }
        }
        
    }
}

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 Code Project Open License (CPOL)

Share

About the Author

Sofa Team
United States United States
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160621.1 | Last Updated 3 Sep 2011
Article Copyright 2011 by Sofa Team
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid