├── .vs └── MUINetPlus │ ├── v14 │ └── .suo │ └── v15 │ └── .suo ├── Code ├── MUINetPlus.Core.UI │ ├── MUINetPlus.Core.UI.csproj │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── Settings.Designer.cs │ │ └── Settings.settings │ ├── Src │ │ ├── AppSetup.cs │ │ └── MainWindow │ │ │ ├── MainWindow.xaml │ │ │ └── MainWindow.xaml.cs │ ├── bin │ │ └── Debug │ │ │ ├── FirstFloor.ModernUI.dll │ │ │ ├── FirstFloor.ModernUI.pdb │ │ │ ├── FirstFloor.ModernUI.xml │ │ │ ├── MUINetPlus.Core.UI.dll │ │ │ ├── MUINetPlus.Core.UI.pdb │ │ │ └── Microsoft.Windows.Shell.dll │ └── obj │ │ └── Debug │ │ ├── App.g.i.cs │ │ ├── CoreCompileInputs.cache │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ ├── MUINetPlus.Core.UI.Properties.Resources.resources │ │ ├── MUINetPlus.Core.UI.csproj.FileListAbsolute.txt │ │ ├── MUINetPlus.Core.UI.csproj.GenerateResource.Cache │ │ ├── MUINetPlus.Core.UI.csprojResolveAssemblyReference.cache │ │ ├── MUINetPlus.Core.UI.dll │ │ ├── MUINetPlus.Core.UI.g.resources │ │ ├── MUINetPlus.Core.UI.pdb │ │ ├── MUINetPlus.Core.UI_MarkupCompile.cache │ │ ├── MUINetPlus.Core.UI_MarkupCompile.i.cache │ │ ├── MainWindow.g.i.cs │ │ ├── Src │ │ └── MainWindow │ │ │ ├── MainWindow.baml │ │ │ ├── MainWindow.g.cs │ │ │ └── MainWindow.g.i.cs │ │ ├── TempPE │ │ └── Properties.Resources.Designer.cs.dll │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs │ │ └── Window1.g.i.cs ├── MUINetPlus.Core │ ├── Extension │ │ ├── ExtensionCheck.cs │ │ ├── ExtensionChildData.cs │ │ ├── ExtensionData.cs │ │ ├── ExtensionType.cs │ │ ├── LinkData.cs │ │ └── LinkGroupData.cs │ ├── MUINetPlus.Core.csproj │ ├── MUINetPlus.Core.csproj.user │ ├── Plugin │ │ ├── PluginGruop.cs │ │ ├── XmlExtension.cs │ │ ├── XmlLink.cs │ │ ├── XmlLinkGroup.cs │ │ └── XmlManager.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── ToolKit │ │ ├── AssemblyToolkit.cs │ │ ├── FileToolkit.cs │ │ └── ImageToolkit.cs │ ├── bin │ │ └── Debug │ │ │ ├── MUINetPlus.Core.dll │ │ │ └── MUINetPlus.Core.pdb │ └── obj │ │ └── Debug │ │ ├── CoreCompileInputs.cache │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ ├── MUINetPlus.Core.csproj.FileListAbsolute.txt │ │ ├── MUINetPlus.Core.csprojResolveAssemblyReference.cache │ │ ├── MUINetPlus.Core.dll │ │ ├── MUINetPlus.Core.pdb │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs ├── MUINetPlus.MainPlugin │ ├── MUINetPlus.MainPlugin.csproj │ ├── MUINetPlus.MainPlugin.plugin │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── TestUserControl.xaml │ ├── TestUserControl.xaml.cs │ ├── TestUserControl1.xaml │ ├── TestUserControl1.xaml.cs │ ├── TestUserControl2.xaml │ ├── TestUserControl2.xaml.cs │ ├── TestUserControl3.xaml │ ├── TestUserControl3.xaml.cs │ ├── TestUserControl4.xaml │ ├── TestUserControl4.xaml.cs │ ├── TestUserControl5.xaml │ ├── TestUserControl5.xaml.cs │ ├── TestUserControl6.xaml │ ├── TestUserControl6.xaml.cs │ ├── TestUserControl7.xaml │ ├── TestUserControl7.xaml.cs │ └── obj │ │ └── Debug │ │ ├── CoreCompileInputs.cache │ │ ├── DesignTimeResolveAssemblyReferences.cache │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ ├── MUINetPlus.MainPlugin.csproj.FileListAbsolute.txt │ │ ├── MUINetPlus.MainPlugin.csprojResolveAssemblyReference.cache │ │ ├── MUINetPlus.MainPlugin.dll │ │ ├── MUINetPlus.MainPlugin.g.resources │ │ ├── MUINetPlus.MainPlugin.pdb │ │ ├── MUINetPlus.MainPlugin_MarkupCompile.cache │ │ ├── MUINetPlus.MainPlugin_MarkupCompile.i.cache │ │ ├── MUINetPlus.MainPlugin_MarkupCompile.lref │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs │ │ ├── TestUserControl.baml │ │ ├── TestUserControl.g.cs │ │ ├── TestUserControl.g.i.cs │ │ ├── TestUserControl1.baml │ │ ├── TestUserControl1.g.cs │ │ ├── TestUserControl1.g.i.cs │ │ ├── TestUserControl2.baml │ │ ├── TestUserControl2.g.cs │ │ ├── TestUserControl2.g.i.cs │ │ ├── TestUserControl3.baml │ │ ├── TestUserControl3.g.cs │ │ ├── TestUserControl3.g.i.cs │ │ ├── TestUserControl4.baml │ │ ├── TestUserControl4.g.cs │ │ ├── TestUserControl4.g.i.cs │ │ ├── TestUserControl5.baml │ │ ├── TestUserControl5.g.cs │ │ ├── TestUserControl5.g.i.cs │ │ ├── TestUserControl6.baml │ │ ├── TestUserControl6.g.cs │ │ ├── TestUserControl6.g.i.cs │ │ ├── TestUserControl7.baml │ │ ├── TestUserControl7.g.cs │ │ └── TestUserControl7.g.i.cs └── MUINetPlus.Startup │ ├── App.config │ ├── App.xaml │ ├── App.xaml.cs │ ├── MUINetPlus.Startup.csproj │ ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings │ ├── bin │ └── Debug │ │ ├── MUINetPlus.Core.UI.dll │ │ ├── MUINetPlus.Core.UI.pdb │ │ ├── MUINetPlus.Startup.exe │ │ ├── MUINetPlus.Startup.exe.config │ │ ├── MUINetPlus.Startup.pdb │ │ ├── MUINetPlus.Startup.vshost.exe.config │ │ └── MUINetPlus.Startup.vshost.exe.manifest │ └── obj │ └── Debug │ ├── App.g.cs │ ├── App.g.i.cs │ ├── CoreCompileInputs.cache │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ ├── MUINetPlus.Startup.Properties.Resources.resources │ ├── MUINetPlus.Startup.csproj.FileListAbsolute.txt │ ├── MUINetPlus.Startup.csproj.GenerateResource.Cache │ ├── MUINetPlus.Startup.csprojResolveAssemblyReference.cache │ ├── MUINetPlus.Startup_MarkupCompile.i.cache │ ├── MUINetPlus.exe │ ├── MUINetPlus.pdb │ ├── MUINetPlus_MarkupCompile.cache │ ├── MUINetPlus_MarkupCompile.i.cache │ ├── MainWindow.g.i.cs │ ├── TempPE │ └── Properties.Resources.Designer.cs.dll │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs │ ├── TestUserControl.g.i.cs │ ├── UserControl1.g.i.cs │ └── Window1.g.i.cs ├── Library └── FirstFloor.ModernUI │ ├── Assets │ ├── Button.xaml │ ├── CheckBox.xaml │ ├── ComboBox.xaml │ ├── Converters.xaml │ ├── DataGrid.xaml │ ├── GridSplitter.xaml │ ├── Hyperlink.xaml │ ├── ListBox.xaml │ ├── ListView.xaml │ ├── ModernUI.Dark.xaml │ ├── ModernUI.Light.xaml │ ├── ModernUI.xaml │ ├── ModernWindowEx.xaml │ ├── PasswordBox.xaml │ ├── ProgressBar.xaml │ ├── RadioButton.xaml │ ├── ScrollBar.xaml │ ├── Slider.xaml │ ├── TextBlock.xaml │ ├── TextBox.xaml │ ├── ToolTip.xaml │ └── TreeView.xaml │ ├── FirstFloor.ModernUI.csproj │ ├── ModernUIHelper.cs │ ├── Presentation │ ├── AppearanceManager.cs │ ├── CommandBase.cs │ ├── Displayable.cs │ ├── FontSize.cs │ ├── Link.cs │ ├── LinkCollection.cs │ ├── LinkGroup.cs │ ├── LinkGroupCollection.cs │ ├── NotifyPropertyChanged.cs │ ├── ReadOnlyLinkGroupCollection.cs │ └── RelayCommand.cs │ ├── Properties │ └── AssemblyInfo.cs │ ├── Readme.txt │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Themes │ ├── BBCodeBlock.xaml │ ├── Generic.xaml │ ├── ModernButton.xaml │ ├── ModernDialog.xaml │ ├── ModernFrame.xaml │ ├── ModernMenu.xaml │ ├── ModernTab.xaml │ ├── ModernWindow.xaml │ └── TransitioningContentControl.xaml │ ├── Windows │ ├── CommandDictionary.cs │ ├── Controls │ │ ├── BBCode │ │ │ ├── BBCodeLexer.cs │ │ │ ├── BBCodeParser.cs │ │ │ ├── CharBuffer.cs │ │ │ ├── Lexer.cs │ │ │ ├── ParseException.cs │ │ │ ├── Parser.cs │ │ │ ├── Token.cs │ │ │ └── TokenBuffer.cs │ │ ├── BBCodeBlock.cs │ │ ├── DataGridCheckBoxColumn.cs │ │ ├── DataGridComboBoxColumn.cs │ │ ├── DataGridTextColumn.cs │ │ ├── ModernButton.cs │ │ ├── ModernDialog.cs │ │ ├── ModernFrame.cs │ │ ├── ModernMenu.cs │ │ ├── ModernTab.cs │ │ ├── ModernWindow.cs │ │ ├── RelativeAnimatingContentControl.cs │ │ ├── TabLayout.cs │ │ └── TransitioningContentControl.cs │ ├── Converters │ │ ├── BooleanToFontWeightConverter.cs │ │ ├── BooleanToVisibilityConverter.cs │ │ ├── ToLowerConverter.cs │ │ └── ToUpperConverter.cs │ ├── DefaultContentLoader.cs │ ├── DefaultContentLoader.cs.bak │ ├── IContent.cs │ ├── IContentLoader.cs │ ├── Media │ │ └── VisualTreeHelperEx.cs │ └── Navigation │ │ ├── DefaultLinkNavigator.cs │ │ ├── FragmentNavigationEventArgs.cs │ │ ├── ILinkNavigator.cs │ │ ├── NavigatingCancelEventArgs.cs │ │ ├── NavigationBaseEventArgs.cs │ │ ├── NavigationEventArgs.cs │ │ ├── NavigationFailedEventArgs.cs │ │ ├── NavigationHelper.cs │ │ └── NavigationType.cs │ ├── bin │ ├── Debug │ │ ├── FirstFloor.ModernUI.XML │ │ ├── FirstFloor.ModernUI.dll │ │ ├── FirstFloor.ModernUI.pdb │ │ └── Microsoft.Windows.Shell.dll │ └── Release │ │ ├── FirstFloor.ModernUI.XML │ │ ├── FirstFloor.ModernUI.dll │ │ └── Microsoft.Windows.Shell.dll │ ├── lib │ └── Microsoft.Windows.Shell.dll │ └── obj │ └── Debug │ ├── Assets │ ├── Button.baml │ ├── CheckBox.baml │ ├── ComboBox.baml │ ├── Converters.baml │ ├── DataGrid.baml │ ├── GridSplitter.baml │ ├── Hyperlink.baml │ ├── ListBox.baml │ ├── ListView.baml │ ├── ModernUI.Dark.baml │ ├── ModernUI.Light.baml │ ├── ModernUI.baml │ ├── ModernWindowEx.baml │ ├── PasswordBox.baml │ ├── ProgressBar.baml │ ├── RadioButton.baml │ ├── ScrollBar.baml │ ├── Slider.baml │ ├── TextBlock.baml │ ├── TextBox.baml │ ├── ToolTip.baml │ └── TreeView.baml │ ├── CoreCompileInputs.cache │ ├── DesignTimeResolveAssemblyReferences.cache │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ ├── FirstFloor.ModernUI.Resources.resources │ ├── FirstFloor.ModernUI.csproj.FileListAbsolute.txt │ ├── FirstFloor.ModernUI.csproj.GenerateResource.Cache │ ├── FirstFloor.ModernUI.csprojResolveAssemblyReference.cache │ ├── FirstFloor.ModernUI.dll │ ├── FirstFloor.ModernUI.g.resources │ ├── FirstFloor.ModernUI.pdb │ ├── FirstFloor.ModernUI_MarkupCompile.cache │ ├── FirstFloor.ModernUI_MarkupCompile.i.cache │ ├── FirstFloor.ModernUI_MarkupCompile.lref │ ├── GeneratedInternalTypeHelper.g.cs │ ├── GeneratedInternalTypeHelper.g.i.cs │ ├── TempPE │ └── Resources.Designer.cs.dll │ └── Themes │ ├── BBCodeBlock.baml │ ├── Generic.baml │ ├── ModernButton.baml │ ├── ModernDialog.baml │ ├── ModernFrame.baml │ ├── ModernMenu.baml │ ├── ModernTab.baml │ ├── ModernWindow.baml │ └── TransitioningContentControl.baml ├── MUINetPlus.sln ├── README.md └── bin ├── FirstFloor.ModernUI.dll ├── FirstFloor.ModernUI.pdb ├── FirstFloor.ModernUI.xml ├── Library ├── FirstFloor.ModernUI.XML ├── FirstFloor.ModernUI.dll ├── FirstFloor.ModernUI.pdb └── Microsoft.Windows.Shell.dll ├── MUINetPlus.Core.UI.dll ├── MUINetPlus.Core.UI.pdb ├── MUINetPlus.Core.dll ├── MUINetPlus.Core.pdb ├── MUINetPlus.exe ├── MUINetPlus.exe.config ├── MUINetPlus.pdb ├── MUINetPlus.vshost.exe ├── MUINetPlus.vshost.exe.config ├── MUINetPlus.vshost.exe.manifest ├── Microsoft.Windows.Shell.dll └── Plugins └── MainPlugin ├── MUINetPlus.MainPlugin.dll ├── MUINetPlus.MainPlugin.pdb └── MUINetPlus.MainPlugin.plugin /.vs/MUINetPlus/v14/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/.vs/MUINetPlus/v14/.suo -------------------------------------------------------------------------------- /.vs/MUINetPlus/v15/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/.vs/MUINetPlus/v15/.suo -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Resources; 3 | using System.Runtime.CompilerServices; 4 | using System.Runtime.InteropServices; 5 | using System.Windows; 6 | 7 | // 有关程序集的一般信息由以下 8 | // 控制。更改这些特性值可修改 9 | // 与程序集关联的信息。 10 | [assembly: AssemblyTitle("MUINetPlus.Core.UI")] 11 | [assembly: AssemblyDescription("")] 12 | [assembly: AssemblyConfiguration("")] 13 | [assembly: AssemblyCompany("")] 14 | [assembly: AssemblyProduct("MUINetPlus.Core.UI")] 15 | [assembly: AssemblyCopyright("Copyright © 2017")] 16 | [assembly: AssemblyTrademark("")] 17 | [assembly: AssemblyCulture("")] 18 | 19 | //将 ComVisible 设置为 false 将使此程序集中的类型 20 | //对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型, 21 | //请将此类型的 ComVisible 特性设置为 true。 22 | [assembly: ComVisible(false)] 23 | 24 | //若要开始生成可本地化的应用程序,请 25 | // 中的 .csproj 文件中 26 | //例如,如果您在源文件中使用的是美国英语, 27 | //使用的是美国英语,请将 设置为 en-US。 然后取消 28 | //对以下 NeutralResourceLanguage 特性的注释。 更新 29 | //以下行中的“en-US”以匹配项目文件中的 UICulture 设置。 30 | 31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] 32 | 33 | 34 | [assembly: ThemeInfo( 35 | ResourceDictionaryLocation.None, //主题特定资源词典所处位置 36 | //(当资源未在页面 37 | //或应用程序资源字典中找到时使用) 38 | ResourceDictionaryLocation.SourceAssembly //常规资源词典所处位置 39 | //(当资源未在页面 40 | //、应用程序或任何主题专用资源字典中找到时使用) 41 | )] 42 | 43 | 44 | // 程序集的版本信息由下列四个值组成: 45 | // 46 | // 主版本 47 | // 次版本 48 | // 生成号 49 | // 修订号 50 | // 51 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值, 52 | // 方法是按如下所示使用“*”: : 53 | // [assembly: AssemblyVersion("1.0.*")] 54 | [assembly: AssemblyVersion("1.0.0.0")] 55 | [assembly: AssemblyFileVersion("1.0.0.0")] 56 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码由工具生成。 4 | // 运行时版本: 4.0.30319.42000 5 | // 6 | // 对此文件的更改可能导致不正确的行为,如果 7 | // 重新生成代码,则所做更改将丢失。 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace MUINetPlus.Core.UI.Properties 12 | { 13 | 14 | 15 | /// 16 | /// 强类型资源类,用于查找本地化字符串等。 17 | /// 18 | // 此类是由 StronglyTypedResourceBuilder 19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 20 | // 若要添加或删除成员,请编辑 .ResX 文件,然后重新运行 ResGen 21 | // (以 /str 作为命令选项),或重新生成 VS 项目。 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources 26 | { 27 | 28 | private static global::System.Resources.ResourceManager resourceMan; 29 | 30 | private static global::System.Globalization.CultureInfo resourceCulture; 31 | 32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 33 | internal Resources() 34 | { 35 | } 36 | 37 | /// 38 | /// 返回此类使用的缓存 ResourceManager 实例。 39 | /// 40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 41 | internal static global::System.Resources.ResourceManager ResourceManager 42 | { 43 | get 44 | { 45 | if ((resourceMan == null)) 46 | { 47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("MUINetPlus.Core.UI.Properties.Resources", typeof(Resources).Assembly); 48 | resourceMan = temp; 49 | } 50 | return resourceMan; 51 | } 52 | } 53 | 54 | /// 55 | /// 覆盖当前线程的 CurrentUICulture 属性 56 | /// 使用此强类型的资源类的资源查找。 57 | /// 58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 59 | internal static global::System.Globalization.CultureInfo Culture 60 | { 61 | get 62 | { 63 | return resourceCulture; 64 | } 65 | set 66 | { 67 | resourceCulture = value; 68 | } 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace MUINetPlus.Core.UI.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/Src/AppSetup.cs: -------------------------------------------------------------------------------- 1 | using FirstFloor.ModernUI.Presentation; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace MUINetPlus.Core.UI 9 | { 10 | public class AppSetup 11 | { 12 | private static int flag = 0; 13 | 14 | public static void Setup(LinkGroupCollection menuLinkGroups, LinkCollection titleLinks, ref Uri contentSource) 15 | { 16 | foreach (var extensionData in PluginGruop.Singleton.ExtensionDatas) 17 | { 18 | foreach (var extensionNode in extensionData.ExtensionNodes) 19 | { 20 | if (extensionData.Type == ExtensionType.LinkGroup) 21 | { 22 | var linkGroupData = extensionNode as LinkGroupData; 23 | SetupLinkGroup(menuLinkGroups, titleLinks, linkGroupData,ref contentSource); 24 | } 25 | } 26 | } 27 | } 28 | 29 | private static void SetupLinkGroup(LinkGroupCollection menuLinkGroups, LinkCollection titleLinks, LinkGroupData linkGroupData, ref Uri contentSource) 30 | { 31 | Uri firstUri = null; 32 | var linkGroup = new LinkGroup { DisplayName = linkGroupData.DisplayName, GroupKey = linkGroupData.GroupKey }; 33 | foreach (var link in linkGroupData.Links) 34 | { 35 | var assemblyPath = AssemblyToolkit.GetDll(linkGroupData.Assembly); 36 | var settingsLink = new Link { DisplayName = link.DisplayName, Source = new Uri(assemblyPath + "+" + link.Source, UriKind.RelativeOrAbsolute) }; 37 | linkGroup.Links.Add(settingsLink); 38 | firstUri = new Uri(assemblyPath + "+" + link.Source, UriKind.RelativeOrAbsolute); 39 | if (flag++ == 0) 40 | contentSource = new Uri(assemblyPath + "+" + link.Source, UriKind.RelativeOrAbsolute); 41 | } 42 | if (linkGroupData.IsTitleLink) 43 | { 44 | titleLinks.Add(new Link { DisplayName = linkGroupData.DisplayName, Source = firstUri }); 45 | } 46 | menuLinkGroups.Add(linkGroup); 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/Src/MainWindow/MainWindow.xaml: -------------------------------------------------------------------------------- 1 |  9 | 10 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/Src/MainWindow/MainWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | using FirstFloor.ModernUI.Presentation; 2 | using FirstFloor.ModernUI.Windows.Controls; 3 | using System; 4 | 5 | namespace MUINetPlus.Core.UI 6 | { 7 | /// 8 | /// MainWindow.xaml 的交互逻辑 9 | /// 10 | public partial class MainWindow : ModernWindow 11 | { 12 | public MainWindow() 13 | { 14 | InitializeComponent(); 15 | XmlManager.SetupPlugin(); 16 | Uri contentSource = null; 17 | AppSetup.Setup(MenuLinkGroups, TitleLinks, ref contentSource); 18 | ContentSource = contentSource; 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/bin/Debug/FirstFloor.ModernUI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Core.UI/bin/Debug/FirstFloor.ModernUI.dll -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/bin/Debug/FirstFloor.ModernUI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Core.UI/bin/Debug/FirstFloor.ModernUI.pdb -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/bin/Debug/MUINetPlus.Core.UI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Core.UI/bin/Debug/MUINetPlus.Core.UI.dll -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/bin/Debug/MUINetPlus.Core.UI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Core.UI/bin/Debug/MUINetPlus.Core.UI.pdb -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/bin/Debug/Microsoft.Windows.Shell.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Core.UI/bin/Debug/Microsoft.Windows.Shell.dll -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/obj/Debug/App.g.i.cs: -------------------------------------------------------------------------------- 1 | #pragma checksum "..\..\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "2E4EAD80D5AE6A7AAE46F21151C73779" 2 | //------------------------------------------------------------------------------ 3 | // 4 | // 此代码由工具生成。 5 | // 运行时版本:4.0.30319.42000 6 | // 7 | // 对此文件的更改可能会导致不正确的行为,并且如果 8 | // 重新生成代码,这些更改将会丢失。 9 | // 10 | //------------------------------------------------------------------------------ 11 | 12 | using MUINetPlus.Core.UI; 13 | using System; 14 | using System.Diagnostics; 15 | using System.Windows; 16 | using System.Windows.Automation; 17 | using System.Windows.Controls; 18 | using System.Windows.Controls.Primitives; 19 | using System.Windows.Data; 20 | using System.Windows.Documents; 21 | using System.Windows.Ink; 22 | using System.Windows.Input; 23 | using System.Windows.Markup; 24 | using System.Windows.Media; 25 | using System.Windows.Media.Animation; 26 | using System.Windows.Media.Effects; 27 | using System.Windows.Media.Imaging; 28 | using System.Windows.Media.Media3D; 29 | using System.Windows.Media.TextFormatting; 30 | using System.Windows.Navigation; 31 | using System.Windows.Shapes; 32 | using System.Windows.Shell; 33 | 34 | 35 | namespace MUINetPlus.Core.UI { 36 | 37 | 38 | /// 39 | /// App 40 | /// 41 | public partial class App : System.Windows.Application { 42 | 43 | /// 44 | /// InitializeComponent 45 | /// 46 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 47 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] 48 | public void InitializeComponent() { 49 | 50 | #line 5 "..\..\App.xaml" 51 | this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative); 52 | 53 | #line default 54 | #line hidden 55 | } 56 | 57 | /// 58 | /// Application Entry Point. 59 | /// 60 | [System.STAThreadAttribute()] 61 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 62 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] 63 | public static void Main() { 64 | MUINetPlus.Core.UI.App app = new MUINetPlus.Core.UI.App(); 65 | app.InitializeComponent(); 66 | app.Run(); 67 | } 68 | } 69 | } 70 | 71 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/obj/Debug/CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 8ddd92104910f52bbaca309b684d2965bb14b306 2 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Core.UI/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/obj/Debug/MUINetPlus.Core.UI.Properties.Resources.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Core.UI/obj/Debug/MUINetPlus.Core.UI.Properties.Resources.resources -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/obj/Debug/MUINetPlus.Core.UI.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Core.UI\bin\Debug\MUINetPlus.Core.UI.dll 2 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Core.UI\bin\Debug\MUINetPlus.Core.UI.pdb 3 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Core.UI\obj\Debug\MUINetPlus.Core.UI.csprojResolveAssemblyReference.cache 4 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Core.UI\obj\Debug\MUINetPlus.Core.UI_MarkupCompile.cache 5 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Core.UI\obj\Debug\MUINetPlus.Core.UI.g.resources 6 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Core.UI\obj\Debug\MUINetPlus.Core.UI.Properties.Resources.resources 7 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Core.UI\obj\Debug\MUINetPlus.Core.UI.csproj.GenerateResource.Cache 8 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Core.UI\obj\Debug\MUINetPlus.Core.UI.dll 9 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Core.UI\obj\Debug\MUINetPlus.Core.UI.pdb 10 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Core.UI\bin\Debug\FirstFloor.ModernUI.dll 11 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Core.UI\bin\Debug\Microsoft.Windows.Shell.dll 12 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Core.UI\bin\Debug\FirstFloor.ModernUI.pdb 13 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Core.UI\bin\Debug\FirstFloor.ModernUI.xml 14 | E:\GitHub\MUINetPlus\bin\MUINetPlus.Core.UI.dll 15 | E:\GitHub\MUINetPlus\bin\MUINetPlus.Core.UI.pdb 16 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Core.UI\obj\Debug\Src\MainWindow\MainWindow.baml 17 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Core.UI\obj\Debug\Src\MainWindow\MainWindow.g.cs 18 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/obj/Debug/MUINetPlus.Core.UI.csproj.GenerateResource.Cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Core.UI/obj/Debug/MUINetPlus.Core.UI.csproj.GenerateResource.Cache -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/obj/Debug/MUINetPlus.Core.UI.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Core.UI/obj/Debug/MUINetPlus.Core.UI.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/obj/Debug/MUINetPlus.Core.UI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Core.UI/obj/Debug/MUINetPlus.Core.UI.dll -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/obj/Debug/MUINetPlus.Core.UI.g.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Core.UI/obj/Debug/MUINetPlus.Core.UI.g.resources -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/obj/Debug/MUINetPlus.Core.UI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Core.UI/obj/Debug/MUINetPlus.Core.UI.pdb -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/obj/Debug/MUINetPlus.Core.UI_MarkupCompile.cache: -------------------------------------------------------------------------------- 1 | MUINetPlus.Core.UI 2 | 3 | 4 | library 5 | C# 6 | .cs 7 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Core.UI\obj\Debug\ 8 | MUINetPlus.Core.UI 9 | none 10 | false 11 | DEBUG;TRACE 12 | 13 | 1-1379450943 14 | 15 | 51729310134 16 | 15-253050478 17 | Src\MainWindow\MainWindow.xaml; 18 | 19 | False 20 | 21 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/obj/Debug/MUINetPlus.Core.UI_MarkupCompile.i.cache: -------------------------------------------------------------------------------- 1 | MUINetPlus.Core.UI 2 | 3 | 4 | library 5 | C# 6 | .cs 7 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Core.UI\obj\Debug\ 8 | MUINetPlus.Core.UI 9 | none 10 | false 11 | DEBUG;TRACE 12 | 13 | 1-1379450943 14 | 15 | 9-1701275734 16 | 15-253050478 17 | Src\MainWindow\MainWindow.xaml; 18 | 19 | False 20 | 21 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/obj/Debug/Src/MainWindow/MainWindow.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Core.UI/obj/Debug/Src/MainWindow/MainWindow.baml -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Core.UI/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Core.UI/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Core.UI/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Core.UI/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /Code/MUINetPlus.Core.UI/obj/Debug/Window1.g.i.cs: -------------------------------------------------------------------------------- 1 | #pragma checksum "..\..\Window1.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "B8673F0CE7B74C9ADE6E9B19A3F34F17" 2 | //------------------------------------------------------------------------------ 3 | // 4 | // 此代码由工具生成。 5 | // 运行时版本:4.0.30319.42000 6 | // 7 | // 对此文件的更改可能会导致不正确的行为,并且如果 8 | // 重新生成代码,这些更改将会丢失。 9 | // 10 | //------------------------------------------------------------------------------ 11 | 12 | using MUINetPlus.Core.UI; 13 | using System; 14 | using System.Diagnostics; 15 | using System.Windows; 16 | using System.Windows.Automation; 17 | using System.Windows.Controls; 18 | using System.Windows.Controls.Primitives; 19 | using System.Windows.Data; 20 | using System.Windows.Documents; 21 | using System.Windows.Ink; 22 | using System.Windows.Input; 23 | using System.Windows.Markup; 24 | using System.Windows.Media; 25 | using System.Windows.Media.Animation; 26 | using System.Windows.Media.Effects; 27 | using System.Windows.Media.Imaging; 28 | using System.Windows.Media.Media3D; 29 | using System.Windows.Media.TextFormatting; 30 | using System.Windows.Navigation; 31 | using System.Windows.Shapes; 32 | using System.Windows.Shell; 33 | 34 | 35 | namespace MUINetPlus.Core.UI { 36 | 37 | 38 | /// 39 | /// Window1 40 | /// 41 | public partial class Window1 : System.Windows.Window, System.Windows.Markup.IComponentConnector { 42 | 43 | private bool _contentLoaded; 44 | 45 | /// 46 | /// InitializeComponent 47 | /// 48 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 49 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] 50 | public void InitializeComponent() { 51 | if (_contentLoaded) { 52 | return; 53 | } 54 | _contentLoaded = true; 55 | System.Uri resourceLocater = new System.Uri("/MUINetPlus.Core.UI;component/window1.xaml", System.UriKind.Relative); 56 | 57 | #line 1 "..\..\Window1.xaml" 58 | System.Windows.Application.LoadComponent(this, resourceLocater); 59 | 60 | #line default 61 | #line hidden 62 | } 63 | 64 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 65 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] 66 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] 67 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")] 68 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")] 69 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] 70 | void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { 71 | this._contentLoaded = true; 72 | } 73 | } 74 | } 75 | 76 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/Extension/ExtensionCheck.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace MUINetPlus.Core 8 | { 9 | public class ExtensionCheck 10 | { 11 | public static T LinkGroupExistValue(ExtensionData extensionData, Func funcWhere) where T : ExtensionChildData 12 | { 13 | T result = null; 14 | var existNodes = extensionData.ExtensionNodes.Where(funcWhere); 15 | if (existNodes.Count() > 0) 16 | { 17 | foreach (var data in existNodes) 18 | { 19 | result = data as T; 20 | break; 21 | } 22 | } 23 | return result; 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/Extension/ExtensionChildData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace MUINetPlus.Core 8 | { 9 | public class ExtensionChildData 10 | { 11 | public string Name 12 | { 13 | get; set; 14 | } 15 | 16 | public int Index 17 | { 18 | get; set; 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/Extension/ExtensionData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace MUINetPlus.Core 8 | { 9 | public class ExtensionData 10 | { 11 | public ExtensionType Type 12 | { 13 | get; set; 14 | } 15 | 16 | public string Assembly 17 | { 18 | get; set; 19 | } 20 | 21 | private List _extensionNodes = new List(); 22 | public List ExtensionNodes 23 | { 24 | get { return _extensionNodes; } 25 | } 26 | 27 | public static ExtensionData GetCurrentExtensionData(ExtensionType type) 28 | { 29 | ExtensionData extension = null; 30 | foreach (var e in PluginGruop.Singleton.ExtensionDatas) 31 | { 32 | if (e.Type == type) 33 | extension = e; 34 | } 35 | return extension; 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/Extension/ExtensionType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace MUINetPlus.Core 8 | { 9 | public enum ExtensionType 10 | { 11 | LinkPage, 12 | LinkGroup 13 | } 14 | 15 | public class ExtensionTypeManager 16 | { 17 | public static ExtensionType GetExtensionType(string typeString) 18 | { 19 | ExtensionType type = ExtensionType.LinkGroup; 20 | if (typeString.Equals("LinkGroup")) 21 | type = ExtensionType.LinkGroup; 22 | else if (typeString.Equals("LinkPage")) 23 | type = ExtensionType.LinkPage; 24 | return type; 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/Extension/LinkData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace MUINetPlus.Core 8 | { 9 | public class LinkData 10 | { 11 | public string Name 12 | { 13 | get; set; 14 | } 15 | 16 | public int Index 17 | { 18 | get; set; 19 | } 20 | 21 | public string DisplayName 22 | { 23 | get; set; 24 | } 25 | 26 | public string Source 27 | { 28 | get; set; 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/Extension/LinkGroupData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace MUINetPlus.Core 8 | { 9 | public class LinkGroupData : ExtensionChildData 10 | { 11 | public string Assembly 12 | { 13 | get; set; 14 | } 15 | 16 | public string DisplayName 17 | { 18 | get; set; 19 | } 20 | 21 | public string GroupKey 22 | { 23 | get; set; 24 | } 25 | 26 | public bool IsTitleLink 27 | { 28 | get; set; 29 | } 30 | 31 | private List _links = new List(); 32 | public List Links 33 | { 34 | get { return _links; } 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/MUINetPlus.Core.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | ProjectFiles 5 | 6 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/Plugin/PluginGruop.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace MUINetPlus.Core 8 | { 9 | public class PluginGruop 10 | { 11 | private static PluginGruop _singleton; 12 | public static PluginGruop Singleton 13 | { 14 | get 15 | { 16 | if (_singleton == null) 17 | { 18 | _singleton = new PluginGruop(); 19 | _singleton.ExtensionDatas.Add(new ExtensionData { Type = ExtensionType.LinkGroup }); 20 | _singleton.ExtensionDatas.Add(new ExtensionData { Type = ExtensionType.LinkPage }); 21 | } 22 | return _singleton; 23 | } 24 | } 25 | 26 | private List _extensionDatas = new List(); 27 | public List ExtensionDatas 28 | { 29 | get { return _extensionDatas; } 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/Plugin/XmlExtension.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Xml; 7 | 8 | namespace MUINetPlus.Core 9 | { 10 | public class XmlExtension 11 | { 12 | public void Setup(XmlReader reader) 13 | { 14 | while (reader.Read()) 15 | { 16 | if (reader.NodeType == XmlNodeType.Element && reader.IsStartElement() && reader.LocalName.Equals("Extension")) 17 | { 18 | var type = ExtensionTypeManager.GetExtensionType(reader.GetAttribute("Type")); 19 | var assembly = reader.GetAttribute("Assembly"); 20 | if (type == ExtensionType.LinkGroup) 21 | { 22 | ExtensionData extension = ExtensionData.GetCurrentExtensionData(type); 23 | extension.Assembly = assembly; 24 | XmlLinkGroup linkGroup = new XmlLinkGroup(); 25 | linkGroup.Setup(reader, ref extension); 26 | extension.Assembly = string.Empty; 27 | } 28 | } 29 | } 30 | } 31 | 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/Plugin/XmlLink.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Xml; 7 | 8 | namespace MUINetPlus.Core 9 | { 10 | public class XmlLink 11 | { 12 | public void Setup(XmlReader reader, ref LinkGroupData linkGroup) 13 | { 14 | while (reader.Read()) 15 | { 16 | if (reader.NodeType == XmlNodeType.EndElement && reader.LocalName.Equals("LinkGroup")) 17 | { 18 | break; 19 | } 20 | if (reader.NodeType == XmlNodeType.Element && reader.IsStartElement() && reader.LocalName.Equals("Link")) 21 | { 22 | LinkData link = new LinkData(); 23 | link.Index = Convert.ToInt32(reader.GetAttribute("Index")); 24 | link.Source = reader.GetAttribute("Source"); 25 | link.DisplayName = reader.GetAttribute("DisplayName"); 26 | link.Name = reader.GetAttribute("Name"); 27 | 28 | linkGroup.Links.Add(link); 29 | 30 | linkGroup.Links.Sort((a, b) => a.Index.CompareTo(b.Index)); 31 | } 32 | } 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/Plugin/XmlLinkGroup.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Xml; 3 | 4 | namespace MUINetPlus.Core 5 | { 6 | public class XmlLinkGroup 7 | { 8 | public void Setup(XmlReader reader, ref ExtensionData extension) 9 | { 10 | while (reader.Read()) 11 | { 12 | if (reader.NodeType == XmlNodeType.EndElement && reader.LocalName.Equals("Extension")) 13 | { 14 | break; 15 | } 16 | if (reader.NodeType == XmlNodeType.Element && reader.IsStartElement() && reader.LocalName.Equals("LinkGroup")) 17 | { 18 | var existValue = ExtensionCheck.LinkGroupExistValue 19 | ( 20 | extension, 21 | node => 22 | { 23 | var n = node as LinkGroupData; 24 | if (n != null) 25 | { 26 | var name = reader.GetAttribute("Name"); 27 | var groupKey = reader.GetAttribute("GroupKey") ?? string.Empty; 28 | return n.Name.Equals(name) && n.GroupKey.Equals(groupKey); 29 | } 30 | return false; 31 | } 32 | ); 33 | XmlLink link = new XmlLink(); 34 | if (existValue == null) 35 | { 36 | LinkGroupData linkGroup = new LinkGroupData(); 37 | linkGroup.Index = Convert.ToInt32(reader.GetAttribute("Index")); 38 | linkGroup.Name = reader.GetAttribute("Name"); 39 | linkGroup.DisplayName = reader.GetAttribute("DisplayName"); 40 | linkGroup.IsTitleLink = Convert.ToBoolean(reader.GetAttribute("IsTitleLink")); 41 | linkGroup.GroupKey = reader.GetAttribute("GroupKey") ?? string.Empty; 42 | linkGroup.Assembly = extension.Assembly; 43 | extension.ExtensionNodes.Add(linkGroup); 44 | link.Setup(reader, ref linkGroup); 45 | } 46 | else 47 | { 48 | link.Setup(reader, ref existValue); 49 | } 50 | 51 | extension.ExtensionNodes.Sort((a, b) => a.Index.CompareTo(b.Index)); 52 | } 53 | } 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/Plugin/XmlManager.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | using System.Xml; 8 | 9 | namespace MUINetPlus.Core 10 | { 11 | public class XmlManager 12 | { 13 | public static void SetupPlugin() 14 | { 15 | DirectoryInfo[] directories = CommonToolkit.GetPluginsDirectorys(); 16 | foreach (var dir in directories) 17 | { 18 | string[] files = CommonToolkit.GetConfigFiles(dir.FullName); 19 | foreach (var file in files) 20 | { 21 | SetupPlugin(file); 22 | } 23 | } 24 | } 25 | 26 | private static void SetupPlugin(string path) 27 | { 28 | using (XmlReader reader = XmlReader.Create(path)) 29 | { 30 | XmlExtension extension = new XmlExtension(); 31 | extension.Setup(reader); 32 | } 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的一般信息由以下 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("MUINetPlus.Core")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("MUINetPlus.Core")] 13 | [assembly: AssemblyCopyright("Copyright © 2017")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | //将 ComVisible 设置为 false 将使此程序集中的类型 18 | //对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型, 19 | //请将此类型的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("8eb2be99-a893-45d6-a043-4a4a0ad65abe")] 24 | 25 | // 程序集的版本信息由下列四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 生成号 30 | // 修订号 31 | // 32 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值, 33 | // 方法是按如下所示使用“*”: : 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/ToolKit/AssemblyToolkit.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Reflection; 5 | 6 | namespace MUINetPlus.Core 7 | { 8 | public class AssemblyToolkit 9 | { 10 | public static string[] GetDlls() 11 | { 12 | List dllFiles = new List(); 13 | DirectoryInfo[] directorys = CommonToolkit.GetPluginsDirectorys(); 14 | foreach (var dir in directorys) 15 | { 16 | string[] paths = CommonToolkit.GetDllFiles(dir.FullName); 17 | dllFiles.AddRange(paths); 18 | } 19 | return dllFiles.ToArray(); 20 | } 21 | 22 | public static string GetDll(string assemblyName) 23 | { 24 | string returnPath = null; 25 | DirectoryInfo[] directorys = CommonToolkit.GetPluginsDirectorys(); 26 | foreach (var dir in directorys) 27 | { 28 | string[] paths = CommonToolkit.GetDllFiles(dir.FullName); 29 | foreach (var path in paths) 30 | { 31 | if (path.Contains(assemblyName)) 32 | { 33 | returnPath = path; 34 | break; 35 | } 36 | } 37 | } 38 | return returnPath; 39 | } 40 | 41 | public static T ActivateObject(string path, string typeName) where T : class 42 | { 43 | Assembly assembly = Assembly.LoadFrom(path); 44 | var obj = assembly.CreateInstance(typeName); 45 | if (obj == null) 46 | { 47 | throw new NullReferenceException(); 48 | } 49 | return obj as T; 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/ToolKit/FileToolkit.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | 4 | namespace MUINetPlus.Core 5 | { 6 | public partial class CommonToolkit 7 | { 8 | public static string[] GetDllFiles(string directoryPath) 9 | { 10 | string[] files = Directory.GetFiles(directoryPath, "*.dll"); 11 | return files; 12 | } 13 | 14 | public static string[] GetConfigFiles(string directoryPath) 15 | { 16 | string[] files = Directory.GetFiles(directoryPath, "*.plugin"); 17 | return files; 18 | } 19 | 20 | public static DirectoryInfo[] GetPluginsDirectorys() 21 | { 22 | string exePath = Environment.CurrentDirectory; 23 | DirectoryInfo info = new DirectoryInfo(exePath + @"\Plugins"); 24 | return info.GetDirectories(); 25 | } 26 | 27 | public static string GetResourceDirectory(string imgPath) 28 | { 29 | string exePath = Environment.CurrentDirectory; 30 | DirectoryInfo info = new DirectoryInfo(exePath); 31 | if (!imgPath.StartsWith("\\")) 32 | { 33 | return info.FullName + "\\" + imgPath; 34 | } 35 | return info.FullName + imgPath; 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/ToolKit/ImageToolkit.cs: -------------------------------------------------------------------------------- 1 | using System.Drawing; 2 | 3 | namespace MUINetPlus.Core 4 | { 5 | public partial class CommonToolkit 6 | { 7 | public static Image GetResourceImage(string imgPath) 8 | { 9 | return Image.FromFile(imgPath); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/bin/Debug/MUINetPlus.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Core/bin/Debug/MUINetPlus.Core.dll -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/bin/Debug/MUINetPlus.Core.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Core/bin/Debug/MUINetPlus.Core.pdb -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/obj/Debug/CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 10ae648086d3436803c76e5b5e0aa91ecd6be064 2 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Core/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/obj/Debug/MUINetPlus.Core.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Core\bin\Debug\MUINetPlus.Core.dll 2 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Core\bin\Debug\MUINetPlus.Core.pdb 3 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Core\obj\Debug\MUINetPlus.Core.dll 4 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Core\obj\Debug\MUINetPlus.Core.pdb 5 | E:\GitHub\MUINetPlus\bin\MUINetPlus.Core.dll 6 | E:\GitHub\MUINetPlus\bin\MUINetPlus.Core.pdb 7 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Core\obj\Debug\MUINetPlus.Core.csprojResolveAssemblyReference.cache 8 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/obj/Debug/MUINetPlus.Core.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Core/obj/Debug/MUINetPlus.Core.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/obj/Debug/MUINetPlus.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Core/obj/Debug/MUINetPlus.Core.dll -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/obj/Debug/MUINetPlus.Core.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Core/obj/Debug/MUINetPlus.Core.pdb -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Core/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Core/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /Code/MUINetPlus.Core/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Core/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/MUINetPlus.MainPlugin.plugin: -------------------------------------------------------------------------------- 1 |  2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的一般信息由以下 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("MUINetPlus.MainPlugin")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("MUINetPlus.MainPlugin")] 13 | [assembly: AssemblyCopyright("Copyright © 2017")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | //将 ComVisible 设置为 false 将使此程序集中的类型 18 | //对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型, 19 | //请将此类型的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("dc5e146e-5bc6-4904-8a6d-9d0c1ee2ce89")] 24 | 25 | // 程序集的版本信息由下列四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 生成号 30 | // 修订号 31 | // 32 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值, 33 | // 方法是按如下所示使用“*”: : 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/TestUserControl.xaml: -------------------------------------------------------------------------------- 1 |  9 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/TestUserControl6.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | using System.Windows.Controls; 8 | using System.Windows.Data; 9 | using System.Windows.Documents; 10 | using System.Windows.Input; 11 | using System.Windows.Media; 12 | using System.Windows.Media.Imaging; 13 | using System.Windows.Navigation; 14 | using System.Windows.Shapes; 15 | 16 | namespace MUINetPlus.MainPlugin 17 | { 18 | /// 19 | /// TestUserControl6.xaml 的交互逻辑 20 | /// 21 | public partial class TestUserControl6 : UserControl 22 | { 23 | public TestUserControl6() 24 | { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/TestUserControl7.xaml: -------------------------------------------------------------------------------- 1 |  9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/TestUserControl7.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | using System.Windows.Controls; 8 | using System.Windows.Data; 9 | using System.Windows.Documents; 10 | using System.Windows.Input; 11 | using System.Windows.Media; 12 | using System.Windows.Media.Imaging; 13 | using System.Windows.Navigation; 14 | using System.Windows.Shapes; 15 | 16 | namespace MUINetPlus.MainPlugin 17 | { 18 | /// 19 | /// TestUserControl7.xaml 的交互逻辑 20 | /// 21 | public partial class TestUserControl7 : UserControl 22 | { 23 | public TestUserControl7() 24 | { 25 | InitializeComponent(); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/obj/Debug/CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 9b9446ff73d5c59c27ca60e5ccc5fea994ff3339 2 | -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/obj/Debug/DesignTimeResolveAssemblyReferences.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.MainPlugin/obj/Debug/DesignTimeResolveAssemblyReferences.cache -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.MainPlugin/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/obj/Debug/MUINetPlus.MainPlugin.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | E:\GitHub\MUINetPlus\bin\Plugins\MainPlugin\MUINetPlus.MainPlugin.dll 2 | E:\GitHub\MUINetPlus\bin\Plugins\MainPlugin\MUINetPlus.MainPlugin.pdb 3 | E:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\obj\Debug\MUINetPlus.MainPlugin.dll 4 | E:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\obj\Debug\MUINetPlus.MainPlugin.pdb 5 | E:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\obj\Debug\MUINetPlus.MainPlugin.csprojResolveAssemblyReference.cache 6 | E:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\obj\Debug\TestUserControl.g.cs 7 | E:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\obj\Debug\TestUserControl1.g.cs 8 | E:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\obj\Debug\TestUserControl2.g.cs 9 | E:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\obj\Debug\MUINetPlus.MainPlugin_MarkupCompile.cache 10 | E:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\obj\Debug\MUINetPlus.MainPlugin_MarkupCompile.lref 11 | E:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\obj\Debug\TestUserControl.baml 12 | E:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\obj\Debug\TestUserControl1.baml 13 | E:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\obj\Debug\TestUserControl2.baml 14 | E:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\obj\Debug\MUINetPlus.MainPlugin.g.resources 15 | E:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\obj\Debug\TestUserControl3.g.cs 16 | E:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\obj\Debug\TestUserControl3.baml 17 | E:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\obj\Debug\TestUserControl4.g.cs 18 | E:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\obj\Debug\TestUserControl5.g.cs 19 | E:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\obj\Debug\TestUserControl4.baml 20 | E:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\obj\Debug\TestUserControl5.baml 21 | E:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\obj\Debug\TestUserControl6.g.cs 22 | E:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\obj\Debug\TestUserControl7.g.cs 23 | E:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\obj\Debug\TestUserControl6.baml 24 | E:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\obj\Debug\TestUserControl7.baml 25 | -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/obj/Debug/MUINetPlus.MainPlugin.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.MainPlugin/obj/Debug/MUINetPlus.MainPlugin.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/obj/Debug/MUINetPlus.MainPlugin.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.MainPlugin/obj/Debug/MUINetPlus.MainPlugin.dll -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/obj/Debug/MUINetPlus.MainPlugin.g.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.MainPlugin/obj/Debug/MUINetPlus.MainPlugin.g.resources -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/obj/Debug/MUINetPlus.MainPlugin.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.MainPlugin/obj/Debug/MUINetPlus.MainPlugin.pdb -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/obj/Debug/MUINetPlus.MainPlugin_MarkupCompile.cache: -------------------------------------------------------------------------------- 1 | MUINetPlus.MainPlugin 2 | 3 | 4 | library 5 | C# 6 | .cs 7 | E:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\obj\Debug\ 8 | MUINetPlus.MainPlugin 9 | none 10 | false 11 | DEBUG;TRACE 12 | 13 | 8-154410127 14 | 15 | 9126562821 16 | 151270957945 17 | TestUserControl.xaml;TestUserControl1.xaml;TestUserControl2.xaml;TestUserControl3.xaml;TestUserControl4.xaml;TestUserControl5.xaml;TestUserControl6.xaml;TestUserControl7.xaml; 18 | 19 | False 20 | 21 | -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/obj/Debug/MUINetPlus.MainPlugin_MarkupCompile.i.cache: -------------------------------------------------------------------------------- 1 | MUINetPlus.MainPlugin 2 | 3 | 4 | library 5 | C# 6 | .cs 7 | E:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\obj\Debug\ 8 | MUINetPlus.MainPlugin 9 | none 10 | false 11 | DEBUG;TRACE 12 | 13 | 8-154410127 14 | 15 | 13990944249 16 | 151270957945 17 | TestUserControl.xaml;TestUserControl1.xaml;TestUserControl2.xaml;TestUserControl3.xaml;TestUserControl4.xaml;TestUserControl5.xaml;TestUserControl6.xaml;TestUserControl7.xaml; 18 | 19 | False 20 | 21 | -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/obj/Debug/MUINetPlus.MainPlugin_MarkupCompile.lref: -------------------------------------------------------------------------------- 1 |  2 | 3 | FE:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\TestUserControl.xaml;; 4 | FE:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\TestUserControl1.xaml;; 5 | FE:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\TestUserControl2.xaml;; 6 | FE:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\TestUserControl3.xaml;; 7 | FE:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\TestUserControl4.xaml;; 8 | FE:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\TestUserControl5.xaml;; 9 | FE:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\TestUserControl6.xaml;; 10 | FE:\GitHub\MUINetPlus\Code\MUINetPlus.MainPlugin\TestUserControl7.xaml;; 11 | 12 | -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.MainPlugin/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.MainPlugin/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.MainPlugin/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/obj/Debug/TestUserControl.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.MainPlugin/obj/Debug/TestUserControl.baml -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/obj/Debug/TestUserControl1.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.MainPlugin/obj/Debug/TestUserControl1.baml -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/obj/Debug/TestUserControl2.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.MainPlugin/obj/Debug/TestUserControl2.baml -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/obj/Debug/TestUserControl3.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.MainPlugin/obj/Debug/TestUserControl3.baml -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/obj/Debug/TestUserControl3.g.cs: -------------------------------------------------------------------------------- 1 | #pragma checksum "..\..\TestUserControl3.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "410BE8BB3991ABE48728A3B6B9627449" 2 | //------------------------------------------------------------------------------ 3 | // 4 | // 此代码由工具生成。 5 | // 运行时版本:4.0.30319.42000 6 | // 7 | // 对此文件的更改可能会导致不正确的行为,并且如果 8 | // 重新生成代码,这些更改将会丢失。 9 | // 10 | //------------------------------------------------------------------------------ 11 | 12 | using MUINetPlus.MainPlugin; 13 | using System; 14 | using System.Diagnostics; 15 | using System.Windows; 16 | using System.Windows.Automation; 17 | using System.Windows.Controls; 18 | using System.Windows.Controls.Primitives; 19 | using System.Windows.Data; 20 | using System.Windows.Documents; 21 | using System.Windows.Ink; 22 | using System.Windows.Input; 23 | using System.Windows.Markup; 24 | using System.Windows.Media; 25 | using System.Windows.Media.Animation; 26 | using System.Windows.Media.Effects; 27 | using System.Windows.Media.Imaging; 28 | using System.Windows.Media.Media3D; 29 | using System.Windows.Media.TextFormatting; 30 | using System.Windows.Navigation; 31 | using System.Windows.Shapes; 32 | using System.Windows.Shell; 33 | 34 | 35 | namespace MUINetPlus.MainPlugin { 36 | 37 | 38 | /// 39 | /// TestUserControl3 40 | /// 41 | public partial class TestUserControl3 : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector { 42 | 43 | private bool _contentLoaded; 44 | 45 | /// 46 | /// InitializeComponent 47 | /// 48 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 49 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] 50 | public void InitializeComponent() { 51 | if (_contentLoaded) { 52 | return; 53 | } 54 | _contentLoaded = true; 55 | System.Uri resourceLocater = new System.Uri("/MUINetPlus.MainPlugin;component/testusercontrol3.xaml", System.UriKind.Relative); 56 | 57 | #line 1 "..\..\TestUserControl3.xaml" 58 | System.Windows.Application.LoadComponent(this, resourceLocater); 59 | 60 | #line default 61 | #line hidden 62 | } 63 | 64 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 65 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] 66 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] 67 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")] 68 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")] 69 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] 70 | void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { 71 | this._contentLoaded = true; 72 | } 73 | } 74 | } 75 | 76 | -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/obj/Debug/TestUserControl3.g.i.cs: -------------------------------------------------------------------------------- 1 | #pragma checksum "..\..\TestUserControl3.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "410BE8BB3991ABE48728A3B6B9627449" 2 | //------------------------------------------------------------------------------ 3 | // 4 | // 此代码由工具生成。 5 | // 运行时版本:4.0.30319.42000 6 | // 7 | // 对此文件的更改可能会导致不正确的行为,并且如果 8 | // 重新生成代码,这些更改将会丢失。 9 | // 10 | //------------------------------------------------------------------------------ 11 | 12 | using MUINetPlus.MainPlugin; 13 | using System; 14 | using System.Diagnostics; 15 | using System.Windows; 16 | using System.Windows.Automation; 17 | using System.Windows.Controls; 18 | using System.Windows.Controls.Primitives; 19 | using System.Windows.Data; 20 | using System.Windows.Documents; 21 | using System.Windows.Ink; 22 | using System.Windows.Input; 23 | using System.Windows.Markup; 24 | using System.Windows.Media; 25 | using System.Windows.Media.Animation; 26 | using System.Windows.Media.Effects; 27 | using System.Windows.Media.Imaging; 28 | using System.Windows.Media.Media3D; 29 | using System.Windows.Media.TextFormatting; 30 | using System.Windows.Navigation; 31 | using System.Windows.Shapes; 32 | using System.Windows.Shell; 33 | 34 | 35 | namespace MUINetPlus.MainPlugin { 36 | 37 | 38 | /// 39 | /// TestUserControl3 40 | /// 41 | public partial class TestUserControl3 : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector { 42 | 43 | private bool _contentLoaded; 44 | 45 | /// 46 | /// InitializeComponent 47 | /// 48 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 49 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] 50 | public void InitializeComponent() { 51 | if (_contentLoaded) { 52 | return; 53 | } 54 | _contentLoaded = true; 55 | System.Uri resourceLocater = new System.Uri("/MUINetPlus.MainPlugin;component/testusercontrol3.xaml", System.UriKind.Relative); 56 | 57 | #line 1 "..\..\TestUserControl3.xaml" 58 | System.Windows.Application.LoadComponent(this, resourceLocater); 59 | 60 | #line default 61 | #line hidden 62 | } 63 | 64 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 65 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] 66 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] 67 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")] 68 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")] 69 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] 70 | void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { 71 | this._contentLoaded = true; 72 | } 73 | } 74 | } 75 | 76 | -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/obj/Debug/TestUserControl4.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.MainPlugin/obj/Debug/TestUserControl4.baml -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/obj/Debug/TestUserControl5.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.MainPlugin/obj/Debug/TestUserControl5.baml -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/obj/Debug/TestUserControl6.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.MainPlugin/obj/Debug/TestUserControl6.baml -------------------------------------------------------------------------------- /Code/MUINetPlus.MainPlugin/obj/Debug/TestUserControl7.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.MainPlugin/obj/Debug/TestUserControl7.baml -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/App.xaml: -------------------------------------------------------------------------------- 1 |  4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using MUINetPlus.Core.UI; 2 | using System; 3 | using System.Windows; 4 | 5 | namespace MUINetPlus.Startup 6 | { 7 | /// 8 | /// App.xaml 的交互逻辑 9 | /// 10 | public partial class App : Application 11 | { 12 | 13 | public App() 14 | { 15 | RegistAppEvent(); 16 | } 17 | 18 | private void RegistAppEvent() 19 | { 20 | Startup += App_Start; 21 | } 22 | 23 | private void App_Start(object sender, StartupEventArgs e) 24 | { 25 | MainWindow window = new MainWindow(); 26 | this.MainWindow = window; 27 | window.Show(); 28 | 29 | SetResource(); 30 | } 31 | 32 | private void SetResource() 33 | { 34 | //设置初始化主题 35 | ResourceDictionary r = new ResourceDictionary(); 36 | r.MergedDictionaries.Add(new ResourceDictionary() { Source = new Uri("/FirstFloor.ModernUI,Version=1.0.3.0;component/Assets/ModernUI.xaml", UriKind.RelativeOrAbsolute) }); 37 | r.MergedDictionaries.Add(new ResourceDictionary() { Source = new Uri("/FirstFloor.ModernUI,Version=1.0.3.0;component/Assets/ModernUI.Light.xaml", UriKind.RelativeOrAbsolute) }); 38 | Resources = r; 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Resources; 3 | using System.Runtime.CompilerServices; 4 | using System.Runtime.InteropServices; 5 | using System.Windows; 6 | 7 | // 有关程序集的一般信息由以下 8 | // 控制。更改这些特性值可修改 9 | // 与程序集关联的信息。 10 | [assembly: AssemblyTitle("MUINetPlus.Startup")] 11 | [assembly: AssemblyDescription("")] 12 | [assembly: AssemblyConfiguration("")] 13 | [assembly: AssemblyCompany("")] 14 | [assembly: AssemblyProduct("MUINetPlus.Startup")] 15 | [assembly: AssemblyCopyright("Copyright © 2017")] 16 | [assembly: AssemblyTrademark("")] 17 | [assembly: AssemblyCulture("")] 18 | 19 | //将 ComVisible 设置为 false 将使此程序集中的类型 20 | //对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型, 21 | //请将此类型的 ComVisible 特性设置为 true。 22 | [assembly: ComVisible(false)] 23 | 24 | //若要开始生成可本地化的应用程序,请 25 | // 中的 .csproj 文件中 26 | //例如,如果您在源文件中使用的是美国英语, 27 | //使用的是美国英语,请将 设置为 en-US。 然后取消 28 | //对以下 NeutralResourceLanguage 特性的注释。 更新 29 | //以下行中的“en-US”以匹配项目文件中的 UICulture 设置。 30 | 31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] 32 | 33 | 34 | [assembly: ThemeInfo( 35 | ResourceDictionaryLocation.None, //主题特定资源词典所处位置 36 | //(当资源未在页面 37 | //或应用程序资源字典中找到时使用) 38 | ResourceDictionaryLocation.SourceAssembly //常规资源词典所处位置 39 | //(当资源未在页面 40 | //、应用程序或任何主题专用资源字典中找到时使用) 41 | )] 42 | 43 | 44 | // 程序集的版本信息由下列四个值组成: 45 | // 46 | // 主版本 47 | // 次版本 48 | // 生成号 49 | // 修订号 50 | // 51 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值, 52 | // 方法是按如下所示使用“*”: : 53 | // [assembly: AssemblyVersion("1.0.*")] 54 | [assembly: AssemblyVersion("1.0.0.0")] 55 | [assembly: AssemblyFileVersion("1.0.0.0")] 56 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码由工具生成。 4 | // 运行时版本: 4.0.30319.42000 5 | // 6 | // 对此文件的更改可能导致不正确的行为,如果 7 | // 重新生成代码,则所做更改将丢失。 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace MUINetPlus.Startup.Properties 12 | { 13 | 14 | 15 | /// 16 | /// 强类型资源类,用于查找本地化字符串等。 17 | /// 18 | // 此类是由 StronglyTypedResourceBuilder 19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 20 | // 若要添加或删除成员,请编辑 .ResX 文件,然后重新运行 ResGen 21 | // (以 /str 作为命令选项),或重新生成 VS 项目。 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources 26 | { 27 | 28 | private static global::System.Resources.ResourceManager resourceMan; 29 | 30 | private static global::System.Globalization.CultureInfo resourceCulture; 31 | 32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 33 | internal Resources() 34 | { 35 | } 36 | 37 | /// 38 | /// 返回此类使用的缓存 ResourceManager 实例。 39 | /// 40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 41 | internal static global::System.Resources.ResourceManager ResourceManager 42 | { 43 | get 44 | { 45 | if ((resourceMan == null)) 46 | { 47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("MUINetPlus.Startup.Properties.Resources", typeof(Resources).Assembly); 48 | resourceMan = temp; 49 | } 50 | return resourceMan; 51 | } 52 | } 53 | 54 | /// 55 | /// 覆盖当前线程的 CurrentUICulture 属性 56 | /// 使用此强类型的资源类的资源查找。 57 | /// 58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 59 | internal static global::System.Globalization.CultureInfo Culture 60 | { 61 | get 62 | { 63 | return resourceCulture; 64 | } 65 | set 66 | { 67 | resourceCulture = value; 68 | } 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace MUINetPlus.Startup.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/bin/Debug/MUINetPlus.Core.UI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Startup/bin/Debug/MUINetPlus.Core.UI.dll -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/bin/Debug/MUINetPlus.Core.UI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Startup/bin/Debug/MUINetPlus.Core.UI.pdb -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/bin/Debug/MUINetPlus.Startup.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Startup/bin/Debug/MUINetPlus.Startup.exe -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/bin/Debug/MUINetPlus.Startup.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/bin/Debug/MUINetPlus.Startup.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Startup/bin/Debug/MUINetPlus.Startup.pdb -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/bin/Debug/MUINetPlus.Startup.vshost.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/bin/Debug/MUINetPlus.Startup.vshost.exe.manifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/obj/Debug/App.g.cs: -------------------------------------------------------------------------------- 1 | #pragma checksum "..\..\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "346FC93D299325AAEE3CDB77AB8D10BC" 2 | //------------------------------------------------------------------------------ 3 | // 4 | // 此代码由工具生成。 5 | // 运行时版本:4.0.30319.42000 6 | // 7 | // 对此文件的更改可能会导致不正确的行为,并且如果 8 | // 重新生成代码,这些更改将会丢失。 9 | // 10 | //------------------------------------------------------------------------------ 11 | 12 | using System; 13 | using System.Diagnostics; 14 | using System.Windows; 15 | using System.Windows.Automation; 16 | using System.Windows.Controls; 17 | using System.Windows.Controls.Primitives; 18 | using System.Windows.Data; 19 | using System.Windows.Documents; 20 | using System.Windows.Ink; 21 | using System.Windows.Input; 22 | using System.Windows.Markup; 23 | using System.Windows.Media; 24 | using System.Windows.Media.Animation; 25 | using System.Windows.Media.Effects; 26 | using System.Windows.Media.Imaging; 27 | using System.Windows.Media.Media3D; 28 | using System.Windows.Media.TextFormatting; 29 | using System.Windows.Navigation; 30 | using System.Windows.Shapes; 31 | using System.Windows.Shell; 32 | 33 | 34 | namespace MUINetPlus.Startup { 35 | 36 | 37 | /// 38 | /// App 39 | /// 40 | public partial class App : System.Windows.Application { 41 | 42 | /// 43 | /// Application Entry Point. 44 | /// 45 | [System.STAThreadAttribute()] 46 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 47 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] 48 | public static void Main() { 49 | MUINetPlus.Startup.App app = new MUINetPlus.Startup.App(); 50 | app.Run(); 51 | } 52 | } 53 | } 54 | 55 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/obj/Debug/App.g.i.cs: -------------------------------------------------------------------------------- 1 | #pragma checksum "..\..\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "346FC93D299325AAEE3CDB77AB8D10BC" 2 | //------------------------------------------------------------------------------ 3 | // 4 | // 此代码由工具生成。 5 | // 运行时版本:4.0.30319.42000 6 | // 7 | // 对此文件的更改可能会导致不正确的行为,并且如果 8 | // 重新生成代码,这些更改将会丢失。 9 | // 10 | //------------------------------------------------------------------------------ 11 | 12 | using System; 13 | using System.Diagnostics; 14 | using System.Windows; 15 | using System.Windows.Automation; 16 | using System.Windows.Controls; 17 | using System.Windows.Controls.Primitives; 18 | using System.Windows.Data; 19 | using System.Windows.Documents; 20 | using System.Windows.Ink; 21 | using System.Windows.Input; 22 | using System.Windows.Markup; 23 | using System.Windows.Media; 24 | using System.Windows.Media.Animation; 25 | using System.Windows.Media.Effects; 26 | using System.Windows.Media.Imaging; 27 | using System.Windows.Media.Media3D; 28 | using System.Windows.Media.TextFormatting; 29 | using System.Windows.Navigation; 30 | using System.Windows.Shapes; 31 | using System.Windows.Shell; 32 | 33 | 34 | namespace MUINetPlus.Startup { 35 | 36 | 37 | /// 38 | /// App 39 | /// 40 | public partial class App : System.Windows.Application { 41 | 42 | /// 43 | /// Application Entry Point. 44 | /// 45 | [System.STAThreadAttribute()] 46 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 47 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] 48 | public static void Main() { 49 | MUINetPlus.Startup.App app = new MUINetPlus.Startup.App(); 50 | app.Run(); 51 | } 52 | } 53 | } 54 | 55 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/obj/Debug/CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | d76d36b0a3f44971bbc334c92e730a07d4dc95c4 2 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Startup/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/obj/Debug/MUINetPlus.Startup.Properties.Resources.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Startup/obj/Debug/MUINetPlus.Startup.Properties.Resources.resources -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/obj/Debug/MUINetPlus.Startup.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Startup\bin\Debug\MUINetPlus.Startup.exe.config 2 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Startup\bin\Debug\MUINetPlus.Startup.exe 3 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Startup\bin\Debug\MUINetPlus.Startup.pdb 4 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Startup\obj\Debug\App.g.cs 5 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Startup\obj\Debug\MUINetPlus.Startup.Properties.Resources.resources 6 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Startup\obj\Debug\MUINetPlus.Startup.csproj.GenerateResource.Cache 7 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Startup\obj\Debug\MUINetPlus.Startup.csprojResolveAssemblyReference.cache 8 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Startup\bin\Debug\MUINetPlus.Core.UI.dll 9 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Startup\bin\Debug\MUINetPlus.Core.UI.pdb 10 | E:\GitHub\MUINetPlus\bin\MUINetPlus.exe.config 11 | E:\GitHub\MUINetPlus\bin\MUINetPlus.exe 12 | E:\GitHub\MUINetPlus\bin\MUINetPlus.pdb 13 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Startup\obj\Debug\MUINetPlus_MarkupCompile.cache 14 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Startup\obj\Debug\MUINetPlus.exe 15 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Startup\obj\Debug\MUINetPlus.pdb 16 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/obj/Debug/MUINetPlus.Startup.csproj.GenerateResource.Cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Startup/obj/Debug/MUINetPlus.Startup.csproj.GenerateResource.Cache -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/obj/Debug/MUINetPlus.Startup.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Startup/obj/Debug/MUINetPlus.Startup.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/obj/Debug/MUINetPlus.Startup_MarkupCompile.i.cache: -------------------------------------------------------------------------------- 1 | MUINetPlus.Startup 2 | 3 | 4 | winexe 5 | C# 6 | .cs 7 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Startup\obj\Debug\ 8 | MUINetPlus.Startup 9 | none 10 | false 11 | DEBUG;TRACE 12 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Startup\App.xaml 13 | 14 | 15 | 8-2064224751 16 | 15927924577 17 | 18 | 19 | False 20 | 21 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/obj/Debug/MUINetPlus.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Startup/obj/Debug/MUINetPlus.exe -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/obj/Debug/MUINetPlus.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Startup/obj/Debug/MUINetPlus.pdb -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/obj/Debug/MUINetPlus_MarkupCompile.cache: -------------------------------------------------------------------------------- 1 | MUINetPlus 2 | 3 | 4 | winexe 5 | C# 6 | .cs 7 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Startup\obj\Debug\ 8 | MUINetPlus.Startup 9 | none 10 | false 11 | DEBUG;TRACE 12 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Startup\App.xaml 13 | 14 | 15 | 41366361117 16 | 15927924577 17 | 18 | 19 | False 20 | 21 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/obj/Debug/MUINetPlus_MarkupCompile.i.cache: -------------------------------------------------------------------------------- 1 | MUINetPlus 2 | 3 | 4 | winexe 5 | C# 6 | .cs 7 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Startup\obj\Debug\ 8 | MUINetPlus.Startup 9 | none 10 | false 11 | DEBUG;TRACE 12 | E:\GitHub\MUINetPlus\Code\MUINetPlus.Startup\App.xaml 13 | 14 | 15 | 8-2064224751 16 | 15927924577 17 | 18 | 19 | False 20 | 21 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Startup/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Startup/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Startup/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Code/MUINetPlus.Startup/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/obj/Debug/UserControl1.g.i.cs: -------------------------------------------------------------------------------- 1 | #pragma checksum "..\..\UserControl1.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "70D07CDD021CB2DFC1B2AC56687435F8" 2 | //------------------------------------------------------------------------------ 3 | // 4 | // 此代码由工具生成。 5 | // 运行时版本:4.0.30319.42000 6 | // 7 | // 对此文件的更改可能会导致不正确的行为,并且如果 8 | // 重新生成代码,这些更改将会丢失。 9 | // 10 | //------------------------------------------------------------------------------ 11 | 12 | using MUINetPlus.Startup; 13 | using System; 14 | using System.Diagnostics; 15 | using System.Windows; 16 | using System.Windows.Automation; 17 | using System.Windows.Controls; 18 | using System.Windows.Controls.Primitives; 19 | using System.Windows.Data; 20 | using System.Windows.Documents; 21 | using System.Windows.Ink; 22 | using System.Windows.Input; 23 | using System.Windows.Markup; 24 | using System.Windows.Media; 25 | using System.Windows.Media.Animation; 26 | using System.Windows.Media.Effects; 27 | using System.Windows.Media.Imaging; 28 | using System.Windows.Media.Media3D; 29 | using System.Windows.Media.TextFormatting; 30 | using System.Windows.Navigation; 31 | using System.Windows.Shapes; 32 | using System.Windows.Shell; 33 | 34 | 35 | namespace MUINetPlus.Startup { 36 | 37 | 38 | /// 39 | /// UserControl1 40 | /// 41 | public partial class UserControl1 : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector { 42 | 43 | private bool _contentLoaded; 44 | 45 | /// 46 | /// InitializeComponent 47 | /// 48 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 49 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] 50 | public void InitializeComponent() { 51 | if (_contentLoaded) { 52 | return; 53 | } 54 | _contentLoaded = true; 55 | System.Uri resourceLocater = new System.Uri("/MUINetPlus.Startup;component/usercontrol1.xaml", System.UriKind.Relative); 56 | 57 | #line 1 "..\..\UserControl1.xaml" 58 | System.Windows.Application.LoadComponent(this, resourceLocater); 59 | 60 | #line default 61 | #line hidden 62 | } 63 | 64 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 65 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] 66 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] 67 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")] 68 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")] 69 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] 70 | void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { 71 | this._contentLoaded = true; 72 | } 73 | } 74 | } 75 | 76 | -------------------------------------------------------------------------------- /Code/MUINetPlus.Startup/obj/Debug/Window1.g.i.cs: -------------------------------------------------------------------------------- 1 | #pragma checksum "..\..\Window1.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "D8B1076B34339FD4D8EAA6534BEC6CDD" 2 | //------------------------------------------------------------------------------ 3 | // 4 | // 此代码由工具生成。 5 | // 运行时版本:4.0.30319.42000 6 | // 7 | // 对此文件的更改可能会导致不正确的行为,并且如果 8 | // 重新生成代码,这些更改将会丢失。 9 | // 10 | //------------------------------------------------------------------------------ 11 | 12 | using MUINetPlus.Startup; 13 | using System; 14 | using System.Diagnostics; 15 | using System.Windows; 16 | using System.Windows.Automation; 17 | using System.Windows.Controls; 18 | using System.Windows.Controls.Primitives; 19 | using System.Windows.Data; 20 | using System.Windows.Documents; 21 | using System.Windows.Ink; 22 | using System.Windows.Input; 23 | using System.Windows.Markup; 24 | using System.Windows.Media; 25 | using System.Windows.Media.Animation; 26 | using System.Windows.Media.Effects; 27 | using System.Windows.Media.Imaging; 28 | using System.Windows.Media.Media3D; 29 | using System.Windows.Media.TextFormatting; 30 | using System.Windows.Navigation; 31 | using System.Windows.Shapes; 32 | using System.Windows.Shell; 33 | 34 | 35 | namespace MUINetPlus.Startup { 36 | 37 | 38 | /// 39 | /// Window1 40 | /// 41 | public partial class Window1 : System.Windows.Window, System.Windows.Markup.IComponentConnector { 42 | 43 | private bool _contentLoaded; 44 | 45 | /// 46 | /// InitializeComponent 47 | /// 48 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 49 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] 50 | public void InitializeComponent() { 51 | if (_contentLoaded) { 52 | return; 53 | } 54 | _contentLoaded = true; 55 | System.Uri resourceLocater = new System.Uri("/MUINetPlus.Startup;component/window1.xaml", System.UriKind.Relative); 56 | 57 | #line 1 "..\..\Window1.xaml" 58 | System.Windows.Application.LoadComponent(this, resourceLocater); 59 | 60 | #line default 61 | #line hidden 62 | } 63 | 64 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 65 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] 66 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] 67 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")] 68 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")] 69 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] 70 | void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { 71 | this._contentLoaded = true; 72 | } 73 | } 74 | } 75 | 76 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Assets/Converters.xaml: -------------------------------------------------------------------------------- 1 |  4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Assets/GridSplitter.xaml: -------------------------------------------------------------------------------- 1 |  3 | 4 | 16 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Assets/Hyperlink.xaml: -------------------------------------------------------------------------------- 1 |  3 | 4 | 19 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Assets/ModernUI.xaml: -------------------------------------------------------------------------------- 1 |  4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | #1ba1e2 29 | 30 | 31 | 32 | 微软雅黑 33 | 13 34 | 35 | 微软雅黑 36 | 13.333 37 | 38 | 11 39 | 40 | 41 | -36,-8,-16,-16 42 | 16,28,16,16 43 | -16,16,0,0 44 | 0,-28,44,0 45 | 46 | 0,0,0,0 47 | 16,0,0,0 48 | 49 | 50 | 53 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Assets/PasswordBox.xaml: -------------------------------------------------------------------------------- 1 |  3 | 4 | 48 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Assets/RadioButton.xaml: -------------------------------------------------------------------------------- 1 |  3 | 40 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Assets/TextBlock.xaml: -------------------------------------------------------------------------------- 1 |  3 | 4 | 9 | 10 | 16 | 17 | 22 | 23 | 28 | 29 | 35 | 36 | 41 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Assets/ToolTip.xaml: -------------------------------------------------------------------------------- 1 |  3 | 4 | 39 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/ModernUIHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace FirstFloor.ModernUI 10 | { 11 | /// 12 | /// Provides various common helper methods. 13 | /// 14 | public static class ModernUIHelper 15 | { 16 | private static bool? isInDesignMode; 17 | 18 | /// 19 | /// Determines whether the current code is executed in a design time environment such as Visual Studio or Blend. 20 | /// 21 | public static bool IsInDesignMode 22 | { 23 | get 24 | { 25 | if (!isInDesignMode.HasValue) { 26 | isInDesignMode = DesignerProperties.GetIsInDesignMode(new DependencyObject()); 27 | } 28 | return isInDesignMode.Value; 29 | } 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Presentation/CommandBase.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows.Input; 7 | 8 | namespace FirstFloor.ModernUI.Presentation 9 | { 10 | /// 11 | /// The base implementation of a command. 12 | /// 13 | public abstract class CommandBase 14 | : ICommand 15 | { 16 | /// 17 | /// Occurs when changes occur that affect whether or not the command should execute. 18 | /// 19 | public event EventHandler CanExecuteChanged 20 | { 21 | add { System.Windows.Input.CommandManager.RequerySuggested += value; } 22 | remove { System.Windows.Input.CommandManager.RequerySuggested -= value; } 23 | } 24 | 25 | /// 26 | /// Raises the event. 27 | /// 28 | public void OnCanExecuteChanged() 29 | { 30 | System.Windows.Input.CommandManager.InvalidateRequerySuggested(); 31 | } 32 | 33 | /// 34 | /// Defines the method that determines whether the command can execute in its current state. 35 | /// 36 | /// Data used by the command. If the command does not require data to be passed, this object can be set to null. 37 | /// 38 | /// true if this command can be executed; otherwise, false. 39 | /// 40 | public virtual bool CanExecute(object parameter) 41 | { 42 | return true; 43 | } 44 | 45 | /// 46 | /// Defines the method to be called when the command is invoked. 47 | /// 48 | /// Data used by the command. If the command does not require data to be passed, this object can be set to null. 49 | public void Execute(object parameter) 50 | { 51 | if (!CanExecute(parameter)) { 52 | return; 53 | } 54 | OnExecute(parameter); 55 | } 56 | 57 | /// 58 | /// Executes the command. 59 | /// 60 | /// The parameter. 61 | protected abstract void OnExecute(object parameter); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Presentation/Displayable.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace FirstFloor.ModernUI.Presentation 8 | { 9 | /// 10 | /// Provides a base implementation for objects that are displayed in the UI. 11 | /// 12 | public abstract class Displayable 13 | : NotifyPropertyChanged 14 | { 15 | private string displayName; 16 | 17 | /// 18 | /// Gets or sets the display name. 19 | /// 20 | /// The display name. 21 | public string DisplayName 22 | { 23 | get { return this.displayName; } 24 | set 25 | { 26 | if (this.displayName != value) { 27 | this.displayName = value; 28 | OnPropertyChanged("DisplayName"); 29 | } 30 | } 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Presentation/FontSize.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace FirstFloor.ModernUI.Presentation 8 | { 9 | /// 10 | /// Identifies the available font size. 11 | /// 12 | public enum FontSize 13 | { 14 | /// 15 | /// Large fonts. 16 | /// 17 | Large, 18 | /// 19 | /// Small fonts. 20 | /// 21 | Small 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Presentation/Link.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace FirstFloor.ModernUI.Presentation 8 | { 9 | /// 10 | /// Represents a displayable link. 11 | /// 12 | public class Link 13 | : Displayable 14 | { 15 | private Uri source; 16 | 17 | /// 18 | /// Gets or sets the source uri. 19 | /// 20 | /// The source. 21 | public Uri Source 22 | { 23 | get { return this.source; } 24 | set 25 | { 26 | if (this.source != value) { 27 | this.source = value; 28 | OnPropertyChanged("Source"); 29 | } 30 | } 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Presentation/LinkCollection.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Collections.ObjectModel; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | using System.Windows.Input; 8 | 9 | namespace FirstFloor.ModernUI.Presentation 10 | { 11 | /// 12 | /// Represents an observable collection of links. 13 | /// 14 | public class LinkCollection 15 | : ObservableCollection 16 | { 17 | /// 18 | /// Initializes a new instance of the class. 19 | /// 20 | public LinkCollection() 21 | { 22 | } 23 | 24 | /// 25 | /// Initializes a new instance of the class that contains specified links. 26 | /// 27 | /// The links that are copied to this collection. 28 | public LinkCollection(IEnumerable links) 29 | { 30 | if (links == null) { 31 | throw new ArgumentNullException("links"); 32 | } 33 | foreach (var link in links) { 34 | Add(link); 35 | } 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Presentation/LinkGroup.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace FirstFloor.ModernUI.Presentation 8 | { 9 | /// 10 | /// Represents a named group of links. 11 | /// 12 | public class LinkGroup 13 | : Displayable 14 | { 15 | private string groupKey; 16 | private Link selectedLink; 17 | private LinkCollection links = new LinkCollection(); 18 | 19 | /// 20 | /// Gets or sets the name of the group. 21 | /// 22 | /// The name of the group. 23 | public string GroupKey 24 | { 25 | get { return this.groupKey; } 26 | set 27 | { 28 | if (this.groupKey != value) 29 | { 30 | this.groupKey = value; 31 | OnPropertyChanged("GroupKey"); 32 | } 33 | } 34 | } 35 | 36 | /// 37 | /// Gets or sets the selected link in this group. 38 | /// 39 | /// The selected link. 40 | internal Link SelectedLink 41 | { 42 | get { return this.selectedLink; } 43 | set 44 | { 45 | if (this.selectedLink != value) 46 | { 47 | this.selectedLink = value; 48 | OnPropertyChanged("SelectedLink"); 49 | } 50 | } 51 | } 52 | 53 | /// 54 | /// Gets the links. 55 | /// 56 | /// The links. 57 | public LinkCollection Links 58 | { 59 | get { return this.links; } 60 | } 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Presentation/LinkGroupCollection.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Collections.ObjectModel; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | using System.Windows.Input; 8 | 9 | namespace FirstFloor.ModernUI.Presentation 10 | { 11 | /// 12 | /// Represents an observable collection of link groups. 13 | /// 14 | public class LinkGroupCollection 15 | : ObservableCollection 16 | { 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Presentation/NotifyPropertyChanged.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace FirstFloor.ModernUI.Presentation 9 | { 10 | /// 11 | /// The base implementation of the INotifyPropertyChanged contract. 12 | /// 13 | public abstract class NotifyPropertyChanged 14 | : INotifyPropertyChanged 15 | { 16 | /// 17 | /// Occurs when a property value changes. 18 | /// 19 | public event PropertyChangedEventHandler PropertyChanged; 20 | 21 | /// 22 | /// Raises the PropertyChanged event. 23 | /// 24 | /// Name of the property. 25 | protected virtual void OnPropertyChanged(string propertyName) 26 | { 27 | if (PropertyChanged != null) { 28 | PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); 29 | } 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Presentation/ReadOnlyLinkGroupCollection.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Collections.ObjectModel; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | using System.Windows.Input; 8 | 9 | namespace FirstFloor.ModernUI.Presentation 10 | { 11 | /// 12 | /// Represents a read-only observable collection of link groups. 13 | /// 14 | public class ReadOnlyLinkGroupCollection 15 | : ReadOnlyObservableCollection 16 | { 17 | /// 18 | /// Initializes a new instance of the class. 19 | /// 20 | /// The with which to create this instance of the class. 21 | public ReadOnlyLinkGroupCollection(LinkGroupCollection list) 22 | : base(list) 23 | { 24 | this.List = list; 25 | } 26 | 27 | /// 28 | /// Provides access to the wrapped list. 29 | /// 30 | internal LinkGroupCollection List { get; private set; } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Presentation/RelayCommand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace FirstFloor.ModernUI.Presentation 8 | { 9 | /// 10 | /// The command that relays its functionality by invoking delegates. 11 | /// 12 | public class RelayCommand 13 | : CommandBase 14 | { 15 | private Action execute; 16 | private Func canExecute; 17 | 18 | /// 19 | /// Initializes a new instance of the class. 20 | /// 21 | /// The execute. 22 | /// The can execute. 23 | public RelayCommand(Action execute, Func canExecute = null) 24 | { 25 | if (execute == null) { 26 | throw new ArgumentNullException("execute"); 27 | } 28 | if (canExecute == null) { 29 | // no can execute provided, then always executable 30 | canExecute = (o) => true; 31 | } 32 | this.execute = execute; 33 | this.canExecute = canExecute; 34 | } 35 | 36 | /// 37 | /// Defines the method that determines whether the command can execute in its current state. 38 | /// 39 | /// Data used by the command. If the command does not require data to be passed, this object can be set to null. 40 | /// 41 | /// true if this command can be executed; otherwise, false. 42 | /// 43 | public override bool CanExecute(object parameter) 44 | { 45 | return canExecute(parameter); 46 | } 47 | 48 | /// 49 | /// Executes the command. 50 | /// 51 | /// The parameter. 52 | protected override void OnExecute(object parameter) 53 | { 54 | execute(parameter); 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | using System.Windows; 5 | using System.Windows.Markup; 6 | 7 | // General Information about an assembly is controlled through the following 8 | // set of attributes. Change these attribute values to modify the information 9 | // associated with an assembly. 10 | [assembly: AssemblyTitle("ModernUI")] 11 | #if NET4 12 | [assembly: AssemblyDescription("Modern UI for WPF 4")] 13 | #else 14 | [assembly: AssemblyDescription("Modern UI for WPF 4.5")] 15 | #endif 16 | [assembly: AssemblyConfiguration("retail")] 17 | [assembly: AssemblyCompany("First Floor Software")] 18 | [assembly: AssemblyProduct("ModernUI")] 19 | [assembly: AssemblyCopyright("Copyright © First Floor Software 2013")] 20 | [assembly: AssemblyTrademark("")] 21 | [assembly: AssemblyCulture("")] 22 | 23 | // Setting ComVisible to false makes the types in this assembly not visible 24 | // to COM components. If you need to access a type in this assembly from 25 | // COM, set the ComVisible attribute to true on that type. 26 | [assembly: ComVisible(false)] 27 | 28 | // The following GUID is for the ID of the typelib if this project is exposed to COM 29 | [assembly: Guid("e467fe5a-70ee-4907-8d06-156e4c988e7d")] 30 | 31 | // Version information for an assembly consists of the following four values: 32 | // 33 | // Major Version 34 | // Minor Version 35 | // Build Number 36 | // Revision 37 | // 38 | // You can specify all the values or you can default the Build and Revision Numbers 39 | // by using the '*' as shown below: 40 | // [assembly: AssemblyVersion("1.0.*")] 41 | [assembly: AssemblyVersion("1.0.3.0")] 42 | [assembly: AssemblyFileVersion("1.0.3.0")] 43 | 44 | [assembly: XmlnsDefinition("http://firstfloorsoftware.com/ModernUI", "FirstFloor.ModernUI.Presentation")] 45 | [assembly: XmlnsDefinition("http://firstfloorsoftware.com/ModernUI", "FirstFloor.ModernUI.Windows")] 46 | [assembly: XmlnsDefinition("http://firstfloorsoftware.com/ModernUI", "FirstFloor.ModernUI.Windows.Controls")] 47 | [assembly: XmlnsDefinition("http://firstfloorsoftware.com/ModernUI", "FirstFloor.ModernUI.Windows.Converters")] 48 | [assembly: XmlnsDefinition("http://firstfloorsoftware.com/ModernUI", "FirstFloor.ModernUI.Windows.Navigation")] 49 | [assembly: XmlnsPrefix("http://firstfloorsoftware.com/ModernUI", "mui")] 50 | 51 | [assembly: ThemeInfo( 52 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located 53 | //(used if a resource is not found in the page, 54 | // or application resource dictionaries) 55 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located 56 | //(used if a resource is not found in the page, 57 | // app, or any theme specific resource dictionaries) 58 | )] -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Readme.txt: -------------------------------------------------------------------------------- 1 | 1 修改了DefaultContentLoader,支持插件的内容加载 2 | 2 更改了默认字体,可以使用原来的文件进行修复 -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Themes/BBCodeBlock.xaml: -------------------------------------------------------------------------------- 1 |  4 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Themes/Generic.xaml: -------------------------------------------------------------------------------- 1 |  5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Windows/CommandDictionary.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows.Input; 7 | 8 | namespace FirstFloor.ModernUI.Windows 9 | { 10 | /// 11 | /// Represents a collection of commands keyed by a uri. 12 | /// 13 | public class CommandDictionary 14 | : Dictionary 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Windows/Controls/BBCode/CharBuffer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics.CodeAnalysis; 3 | 4 | namespace FirstFloor.ModernUI.Windows.Controls.BBCode 5 | { 6 | /// 7 | /// Represents a character buffer. 8 | /// 9 | internal class CharBuffer 10 | { 11 | private string value; 12 | private int position; 13 | private int mark; 14 | 15 | /// 16 | /// Initializes a new instance of the class. 17 | /// 18 | /// The value. 19 | public CharBuffer(string value) 20 | { 21 | if (value == null) { 22 | throw new ArgumentNullException("value"); 23 | } 24 | this.value = value; 25 | } 26 | 27 | /// 28 | /// Performs a look-ahead. 29 | /// 30 | /// The number of character to look ahead. 31 | /// 32 | public char LA(int count) 33 | { 34 | int index = this.position + count - 1; 35 | if (index < this.value.Length) { 36 | return this.value[index]; 37 | } 38 | 39 | return char.MaxValue; 40 | } 41 | 42 | /// 43 | /// Marks the current position. 44 | /// 45 | public void Mark() 46 | { 47 | this.mark = this.position; 48 | } 49 | 50 | /// 51 | /// Gets the mark. 52 | /// 53 | /// 54 | [SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")] 55 | public string GetMark() 56 | { 57 | if (this.mark < this.position) { 58 | return this.value.Substring(this.mark, this.position - this.mark); 59 | } 60 | return string.Empty; 61 | } 62 | 63 | /// 64 | /// Consumes the next character. 65 | /// 66 | public void Consume() 67 | { 68 | this.position++; 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Windows/Controls/BBCode/ParseException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.Serialization; 3 | 4 | namespace FirstFloor.ModernUI.Windows.Controls.BBCode 5 | { 6 | /// 7 | /// The exception for parse errors. 8 | /// 9 | internal class ParseException 10 | : Exception 11 | { 12 | /// 13 | /// Initializes a new instance of the class. 14 | /// 15 | public ParseException() 16 | { 17 | } 18 | 19 | /// 20 | /// Initializes a new instance of the class. 21 | /// 22 | /// The message. 23 | public ParseException(string message) 24 | : base(message) 25 | { 26 | } 27 | 28 | /// 29 | /// Initializes a new instance of the class. 30 | /// 31 | /// The message. 32 | /// The inner exception. 33 | public ParseException(string message, Exception innerException) 34 | : base(message, innerException) 35 | { 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Windows/Controls/BBCode/Token.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics.CodeAnalysis; 3 | using System.Globalization; 4 | 5 | namespace FirstFloor.ModernUI.Windows.Controls.BBCode 6 | { 7 | /// 8 | /// Represents a single token. 9 | /// 10 | internal class Token 11 | { 12 | /// 13 | /// Represents the token that marks the end of the input. 14 | /// 15 | [SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")] // token is immutable 16 | public static readonly Token End = new Token(string.Empty, Lexer.TokenEnd); 17 | 18 | private string value; 19 | private int tokenType; 20 | 21 | /// 22 | /// Initializes a new instance of the class. 23 | /// 24 | /// The value. 25 | /// Type of the token. 26 | public Token(string value, int tokenType) 27 | { 28 | this.value = value; 29 | this.tokenType = tokenType; 30 | } 31 | 32 | /// 33 | /// Gets the value. 34 | /// 35 | /// The value. 36 | public string Value 37 | { 38 | get { return this.value; } 39 | } 40 | 41 | /// 42 | /// Gets the type of the token. 43 | /// 44 | /// The type. 45 | public int TokenType 46 | { 47 | get { return this.tokenType; } 48 | } 49 | 50 | /// 51 | /// Returns a that represents the current . 52 | /// 53 | /// 54 | /// A that represents the current . 55 | /// 56 | public override string ToString() 57 | { 58 | return string.Format(CultureInfo.InvariantCulture, "{0}: {1}", this.tokenType, this.value); 59 | } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Windows/Controls/BBCode/TokenBuffer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace FirstFloor.ModernUI.Windows.Controls.BBCode 5 | { 6 | /// 7 | /// Represents a token buffer. 8 | /// 9 | internal class TokenBuffer 10 | { 11 | private List tokens = new List(); 12 | private int position; 13 | //private int mark; 14 | 15 | /// 16 | /// Initializes a new instance of the class. 17 | /// 18 | /// The lexer. 19 | public TokenBuffer(Lexer lexer) 20 | { 21 | if (lexer == null) { 22 | throw new ArgumentNullException("lexer"); 23 | } 24 | 25 | Token token; 26 | do { 27 | token = lexer.NextToken(); 28 | this.tokens.Add(token); 29 | } 30 | while (token.TokenType != Lexer.TokenEnd); 31 | } 32 | 33 | /// 34 | /// Performs a look-ahead. 35 | /// 36 | /// The number of tokens to look ahead. 37 | /// 38 | public Token LA(int count) 39 | { 40 | int index = this.position + count - 1; 41 | if (index < this.tokens.Count) { 42 | return this.tokens[index]; 43 | } 44 | 45 | return Token.End; 46 | } 47 | 48 | ///// 49 | ///// Marks the current position. 50 | ///// 51 | //public void Mark() 52 | //{ 53 | // this.mark = this.position; 54 | //} 55 | 56 | ///// 57 | ///// Gets the mark. 58 | ///// 59 | ///// 60 | //public Token[] GetMark() 61 | //{ 62 | // if (this.mark < this.position) { 63 | // Token[] result = new Token[this.position - this.mark]; 64 | // for (int i = this.mark; i < this.position; i++) { 65 | // result[i - this.mark] = this.tokens[i]; 66 | // } 67 | 68 | // return result; 69 | // } 70 | // return new Token[0]; 71 | //} 72 | 73 | /// 74 | /// Consumes the next token. 75 | /// 76 | public void Consume() 77 | { 78 | this.position++; 79 | } 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Windows/Controls/DataGridCheckBoxColumn.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | 8 | namespace FirstFloor.ModernUI.Windows.Controls 9 | { 10 | /// 11 | /// A DataGrid checkbox column using default Modern UI element styles. 12 | /// 13 | public class DataGridCheckBoxColumn 14 | : System.Windows.Controls.DataGridCheckBoxColumn 15 | { 16 | /// 17 | /// Initializes a new instance of the class. 18 | /// 19 | public DataGridCheckBoxColumn() 20 | { 21 | this.ElementStyle = Application.Current.Resources["DataGridCheckBoxStyle"] as Style; 22 | this.EditingElementStyle = Application.Current.Resources["DataGridEditingCheckBoxStyle"] as Style; 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Windows/Controls/DataGridComboBoxColumn.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | 8 | namespace FirstFloor.ModernUI.Windows.Controls 9 | { 10 | /// 11 | /// A DataGrid checkbox column using default Modern UI element styles. 12 | /// 13 | public class DataGridComboBoxColumn 14 | : System.Windows.Controls.DataGridComboBoxColumn 15 | { 16 | /// 17 | /// Initializes a new instance of the class. 18 | /// 19 | public DataGridComboBoxColumn() 20 | { 21 | this.EditingElementStyle = Application.Current.Resources["DataGridEditingComboBoxStyle"] as Style; 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Windows/Controls/DataGridTextColumn.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | 8 | namespace FirstFloor.ModernUI.Windows.Controls 9 | { 10 | /// 11 | /// A DataGrid text column using default Modern UI element styles. 12 | /// 13 | public class DataGridTextColumn 14 | : System.Windows.Controls.DataGridTextColumn 15 | { 16 | /// 17 | /// Initializes a new instance of the class. 18 | /// 19 | public DataGridTextColumn() 20 | { 21 | this.ElementStyle = Application.Current.Resources["DataGridTextStyle"] as Style; 22 | this.EditingElementStyle = Application.Current.Resources["DataGridEditingTextStyle"] as Style; 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Windows/Controls/ModernButton.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | using System.Windows.Controls; 8 | using System.Windows.Media; 9 | 10 | namespace FirstFloor.ModernUI.Windows.Controls 11 | { 12 | /// 13 | /// Adds icon content to a standard button. 14 | /// 15 | public class ModernButton 16 | : Button 17 | { 18 | /// 19 | /// Identifies the IconData property. 20 | /// 21 | public static readonly DependencyProperty IconDataProperty = DependencyProperty.Register("IconData", typeof(Geometry), typeof(ModernButton)); 22 | /// 23 | /// Identifies the IconHeight property. 24 | /// 25 | public static readonly DependencyProperty IconHeightProperty = DependencyProperty.Register("IconHeight", typeof(double), typeof(ModernButton), new PropertyMetadata(10D)); 26 | /// 27 | /// Identifies the IconWidth property. 28 | /// 29 | public static readonly DependencyProperty IconWidthProperty = DependencyProperty.Register("IconWidth", typeof(double), typeof(ModernButton), new PropertyMetadata(10D)); 30 | 31 | /// 32 | /// Initializes a new instance of the class. 33 | /// 34 | public ModernButton() 35 | { 36 | this.DefaultStyleKey = typeof(ModernButton); 37 | } 38 | 39 | /// 40 | /// Gets or sets the icon path data. 41 | /// 42 | /// 43 | /// The icon path data. 44 | /// 45 | public Geometry IconData 46 | { 47 | get { return (Geometry)GetValue(IconDataProperty); } 48 | set { SetValue(IconDataProperty, value); } 49 | } 50 | 51 | /// 52 | /// Gets or sets the icon height. 53 | /// 54 | /// 55 | /// The icon height. 56 | /// 57 | public double IconHeight 58 | { 59 | get { return (double)GetValue(IconHeightProperty); } 60 | set { SetValue(IconHeightProperty, value); } 61 | } 62 | 63 | /// 64 | /// Gets or sets the icon width. 65 | /// 66 | /// 67 | /// The icon width. 68 | /// 69 | public double IconWidth 70 | { 71 | get { return (double)GetValue(IconWidthProperty); } 72 | set { SetValue(IconWidthProperty, value); } 73 | } 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Windows/Controls/TabLayout.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace FirstFloor.ModernUI.Windows.Controls 8 | { 9 | /// 10 | /// Define the available tab layouts. 11 | /// 12 | public enum TabLayout 13 | { 14 | /// 15 | /// Tab layout. 16 | /// 17 | Tab, 18 | /// 19 | /// List layout. 20 | /// 21 | List 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Windows/Converters/BooleanToFontWeightConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Windows.Data; 6 | using System.Windows; 7 | 8 | namespace FirstFloor.ModernUI.Windows.Converters 9 | { 10 | /// 11 | /// Converts a boolean value to a font weight (false: normal, true: bold) 12 | /// 13 | public class BooleanToFontWeightConverter 14 | : IValueConverter 15 | { 16 | /// 17 | /// Converts a value. 18 | /// 19 | /// The value produced by the binding source. 20 | /// The type of the binding target property. 21 | /// The converter parameter to use. 22 | /// The culture to use in the converter. 23 | /// 24 | /// A converted value. If the method returns null, the valid null value is used. 25 | /// 26 | public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 27 | { 28 | bool inverse = (parameter as string) == "inverse"; 29 | 30 | var bold = value as bool?; 31 | if (bold.HasValue && bold.Value) { 32 | return inverse ? FontWeights.Normal : FontWeights.Bold; 33 | } 34 | return inverse ? FontWeights.Bold : FontWeights.Normal; 35 | } 36 | 37 | /// 38 | /// Converts a value. 39 | /// 40 | /// The value that is produced by the binding target. 41 | /// The type to convert to. 42 | /// The converter parameter to use. 43 | /// The culture to use in the converter. 44 | /// 45 | /// A converted value. If the method returns null, the valid null value is used. 46 | /// 47 | public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 48 | { 49 | throw new NotSupportedException(); 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Windows/Converters/BooleanToVisibilityConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Windows.Data; 6 | using System.Globalization; 7 | using System.Windows; 8 | 9 | namespace FirstFloor.ModernUI.Windows.Converters 10 | { 11 | /// 12 | /// Converts boolean to visibility values. 13 | /// 14 | public class BooleanToVisibilityConverter 15 | : IValueConverter 16 | { 17 | /// 18 | /// Converts a value. 19 | /// 20 | /// The value produced by the binding source. 21 | /// The type of the binding target property. 22 | /// The converter parameter to use. 23 | /// The culture to use in the converter. 24 | /// 25 | /// A converted value. If the method returns null, the valid null value is used. 26 | /// 27 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture) 28 | { 29 | bool flag = false; 30 | if (value is bool) { 31 | flag = (bool)value; 32 | } 33 | else if (value is bool?) { 34 | bool? nullable = (bool?)value; 35 | flag = nullable.HasValue ? nullable.Value : false; 36 | } 37 | 38 | bool inverse = (parameter as string) == "inverse"; 39 | 40 | if (inverse) { 41 | return (flag ? Visibility.Collapsed : Visibility.Visible); 42 | } 43 | else { 44 | return (flag ? Visibility.Visible : Visibility.Collapsed); 45 | } 46 | } 47 | 48 | /// 49 | /// Converts a value. 50 | /// 51 | /// The value that is produced by the binding target. 52 | /// The type to convert to. 53 | /// The converter parameter to use. 54 | /// The culture to use in the converter. 55 | /// 56 | /// A converted value. If the method returns null, the valid null value is used. 57 | /// 58 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) 59 | { 60 | throw new NotSupportedException(); 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Windows/Converters/ToLowerConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics.CodeAnalysis; 3 | using System.Windows.Data; 4 | 5 | namespace FirstFloor.ModernUI.Windows.Converters 6 | { 7 | /// 8 | /// Converts string values to lower case. 9 | /// 10 | public class ToLowerConverter 11 | : IValueConverter 12 | { 13 | /// 14 | /// Converts a value. 15 | /// 16 | /// The value produced by the binding source. 17 | /// The type of the binding target property. 18 | /// The converter parameter to use. 19 | /// The culture to use in the converter. 20 | /// 21 | /// A converted value. If the method returns null, the valid null value is used. 22 | /// 23 | [SuppressMessage("Microsoft.Globalization", "CA1308:NormalizeStringsToUppercase")] 24 | public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 25 | { 26 | if (value != null) { 27 | var strValue = value.ToString(); 28 | 29 | 30 | return strValue.ToLowerInvariant(); 31 | } 32 | return null; 33 | } 34 | 35 | /// 36 | /// Converts a value. 37 | /// 38 | /// The value that is produced by the binding target. 39 | /// The type to convert to. 40 | /// The converter parameter to use. 41 | /// The culture to use in the converter. 42 | /// 43 | /// A converted value. If the method returns null, the valid null value is used. 44 | /// 45 | public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 46 | { 47 | throw new NotSupportedException(); 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Windows/Converters/ToUpperConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Windows.Data; 6 | 7 | namespace FirstFloor.ModernUI.Windows.Converters 8 | { 9 | /// 10 | /// Converts string values to upper case. 11 | /// 12 | public class ToUpperConverter 13 | : IValueConverter 14 | { 15 | /// 16 | /// Converts a value. 17 | /// 18 | /// The value produced by the binding source. 19 | /// The type of the binding target property. 20 | /// The converter parameter to use. 21 | /// The culture to use in the converter. 22 | /// 23 | /// A converted value. If the method returns null, the valid null value is used. 24 | /// 25 | public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 26 | { 27 | if (value != null) { 28 | var strValue = value.ToString(); 29 | 30 | return strValue.ToUpperInvariant(); 31 | } 32 | return null; 33 | } 34 | 35 | /// 36 | /// Converts a value. 37 | /// 38 | /// The value that is produced by the binding target. 39 | /// The type to convert to. 40 | /// The converter parameter to use. 41 | /// The culture to use in the converter. 42 | /// 43 | /// A converted value. If the method returns null, the valid null value is used. 44 | /// 45 | public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 46 | { 47 | throw new NotSupportedException(); 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Windows/DefaultContentLoader.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | using System.Threading; 4 | using System.Threading.Tasks; 5 | using System.Windows; 6 | 7 | namespace FirstFloor.ModernUI.Windows 8 | { 9 | /// 10 | /// Loads XAML files using Application.LoadComponent. 11 | /// 12 | public class DefaultContentLoader 13 | : IContentLoader 14 | { 15 | /// 16 | /// Asynchronously loads content from specified uri. 17 | /// 18 | /// The content uri. 19 | /// The token used to cancel the load content task. 20 | /// The loaded content. 21 | public Task LoadContentAsync(Uri uri, CancellationToken cancellationToken) 22 | { 23 | if (!Application.Current.Dispatcher.CheckAccess()) 24 | { 25 | throw new InvalidOperationException(Resources.UIThreadRequired); 26 | } 27 | 28 | // scheduler ensures LoadContent is executed on the current UI thread 29 | var scheduler = TaskScheduler.FromCurrentSynchronizationContext(); 30 | return Task.Factory.StartNew(() => LoadContent(uri), cancellationToken, TaskCreationOptions.None, scheduler); 31 | } 32 | 33 | /// 34 | /// Loads the content from specified uri. 35 | /// 36 | /// The content uri 37 | /// The loaded content. 38 | protected virtual object LoadContent(Uri uri) 39 | { 40 | // don't do anything in design mode 41 | if (ModernUIHelper.IsInDesignMode) 42 | { 43 | return null; 44 | } 45 | //return Application.LoadComponent(uri); 46 | string[] strs = uri.OriginalString.Split('+'); 47 | return ActivateObject(strs[0], strs[1]); 48 | } 49 | 50 | /// 51 | /// 反射实例化对象 52 | /// 53 | /// 54 | /// 55 | /// 56 | public static object ActivateObject(string path, string typeName) 57 | { 58 | Assembly assembly = Assembly.LoadFrom(path); 59 | var obj = assembly.CreateInstance(typeName); 60 | if (obj == null) 61 | { 62 | throw new NullReferenceException(); 63 | } 64 | return obj; 65 | } 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Windows/IContent.cs: -------------------------------------------------------------------------------- 1 | using FirstFloor.ModernUI.Windows.Navigation; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace FirstFloor.ModernUI.Windows 9 | { 10 | /// 11 | /// Defines the optional contract for content loaded in a ModernFrame. 12 | /// 13 | public interface IContent 14 | { 15 | /// 16 | /// Called when navigation to a content fragment begins. 17 | /// 18 | /// An object that contains the navigation data. 19 | void OnFragmentNavigation(FragmentNavigationEventArgs e); 20 | /// 21 | /// Called when this instance is no longer the active content in a frame. 22 | /// 23 | /// An object that contains the navigation data. 24 | void OnNavigatedFrom(NavigationEventArgs e); 25 | /// 26 | /// Called when a this instance becomes the active content in a frame. 27 | /// 28 | /// An object that contains the navigation data. 29 | void OnNavigatedTo(NavigationEventArgs e); 30 | /// 31 | /// Called just before this instance is no longer the active content in a frame. 32 | /// 33 | /// An object that contains the navigation data. 34 | /// The method is also invoked when parent frames are about to navigate. 35 | void OnNavigatingFrom(NavigatingCancelEventArgs e); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Windows/IContentLoader.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading; 6 | using System.Threading.Tasks; 7 | 8 | namespace FirstFloor.ModernUI.Windows 9 | { 10 | /// 11 | /// The contract for loading content. 12 | /// 13 | public interface IContentLoader 14 | { 15 | /// 16 | /// Asynchronously loads content from specified uri. 17 | /// 18 | /// The content uri. 19 | /// The token used to cancel the load content task. 20 | /// The loaded content. 21 | Task LoadContentAsync(Uri uri, CancellationToken cancellationToken); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Windows/Navigation/FragmentNavigationEventArgs.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace FirstFloor.ModernUI.Windows.Navigation 8 | { 9 | /// 10 | /// Provides data for fragment navigation events. 11 | /// 12 | public class FragmentNavigationEventArgs 13 | : EventArgs 14 | { 15 | /// 16 | /// Gets the uniform resource identifier (URI) fragment. 17 | /// 18 | public string Fragment { get; internal set; } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Windows/Navigation/ILinkNavigator.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using System.Windows; 7 | 8 | namespace FirstFloor.ModernUI.Windows.Navigation 9 | { 10 | /// 11 | /// The hyperlink navigator contract. 12 | /// 13 | public interface ILinkNavigator 14 | { 15 | /// 16 | /// Gets or sets the navigable commands. 17 | /// 18 | CommandDictionary Commands { get; set; } 19 | /// 20 | /// Performs navigation to specified link. 21 | /// 22 | /// The uri to navigate to. 23 | /// The source element that triggers the navigation. Required for frame navigation. 24 | /// An optional command parameter or navigation target. 25 | void Navigate(Uri uri, FrameworkElement source, string parameter = null); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Windows/Navigation/NavigatingCancelEventArgs.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | using System.Windows.Controls; 8 | using FirstFloor.ModernUI.Windows.Controls; 9 | 10 | namespace FirstFloor.ModernUI.Windows.Navigation 11 | { 12 | /// 13 | /// Provides data for the method and the event. 14 | /// 15 | public class NavigatingCancelEventArgs 16 | : NavigationBaseEventArgs 17 | { 18 | /// 19 | /// Gets a value indicating whether the frame performing the navigation is a parent frame or the frame itself. 20 | /// 21 | public bool IsParentFrameNavigating { get; internal set; } 22 | /// 23 | /// Gets a value that indicates the type of navigation that is occurring. 24 | /// 25 | public NavigationType NavigationType { get; internal set; } 26 | /// 27 | /// Gets or sets a value indicating whether the event should be canceled. 28 | /// 29 | public bool Cancel { get; set; } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Windows/Navigation/NavigationBaseEventArgs.cs: -------------------------------------------------------------------------------- 1 | using FirstFloor.ModernUI.Windows.Controls; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace FirstFloor.ModernUI.Windows.Navigation 9 | { 10 | /// 11 | /// Defines the base navigation event arguments. 12 | /// 13 | public abstract class NavigationBaseEventArgs 14 | : EventArgs 15 | { 16 | /// 17 | /// Gets the frame that raised this event. 18 | /// 19 | public ModernFrame Frame { get; internal set; } 20 | /// 21 | /// Gets the source uri for the target being navigated to. 22 | /// 23 | public Uri Source { get; internal set; } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Windows/Navigation/NavigationEventArgs.cs: -------------------------------------------------------------------------------- 1 | using FirstFloor.ModernUI.Windows.Controls; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace FirstFloor.ModernUI.Windows.Navigation 9 | { 10 | /// 11 | /// Provides data for frame navigation events. 12 | /// 13 | public class NavigationEventArgs 14 | : NavigationBaseEventArgs 15 | { 16 | /// 17 | /// Gets a value that indicates the type of navigation that is occurring. 18 | /// 19 | public NavigationType NavigationType { get; internal set; } 20 | /// 21 | /// Gets the content of the target being navigated to. 22 | /// 23 | public object Content { get; internal set; } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Windows/Navigation/NavigationFailedEventArgs.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using FirstFloor.ModernUI.Windows.Controls; 7 | 8 | namespace FirstFloor.ModernUI.Windows.Navigation 9 | { 10 | /// 11 | /// Provides data for the event. 12 | /// 13 | public class NavigationFailedEventArgs 14 | : NavigationBaseEventArgs 15 | { 16 | /// 17 | /// Gets the error from the failed navigation. 18 | /// 19 | public Exception Error { get; internal set; } 20 | /// 21 | /// Gets or sets a value that indicates whether the failure event has been handled. 22 | /// 23 | /// 24 | /// When not handled, the error is displayed in the ModernFrame raising the NavigationFailed event. 25 | /// 26 | public bool Handled { get; set; } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/Windows/Navigation/NavigationType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace FirstFloor.ModernUI.Windows.Navigation 8 | { 9 | /// 10 | /// Identifies the types of navigation that are supported. 11 | /// 12 | public enum NavigationType 13 | { 14 | /// 15 | /// Navigating to new content. 16 | /// 17 | New, 18 | /// 19 | /// Navigating back in the back navigation history. 20 | /// 21 | Back, 22 | /// 23 | /// Reloading the current content. 24 | /// 25 | Refresh 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/bin/Debug/FirstFloor.ModernUI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/bin/Debug/FirstFloor.ModernUI.dll -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/bin/Debug/FirstFloor.ModernUI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/bin/Debug/FirstFloor.ModernUI.pdb -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/bin/Debug/Microsoft.Windows.Shell.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/bin/Debug/Microsoft.Windows.Shell.dll -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/bin/Release/FirstFloor.ModernUI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/bin/Release/FirstFloor.ModernUI.dll -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/bin/Release/Microsoft.Windows.Shell.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/bin/Release/Microsoft.Windows.Shell.dll -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/lib/Microsoft.Windows.Shell.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/lib/Microsoft.Windows.Shell.dll -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Assets/Button.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Assets/Button.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Assets/CheckBox.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Assets/CheckBox.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Assets/ComboBox.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Assets/ComboBox.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Assets/Converters.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Assets/Converters.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Assets/DataGrid.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Assets/DataGrid.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Assets/GridSplitter.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Assets/GridSplitter.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Assets/Hyperlink.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Assets/Hyperlink.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Assets/ListBox.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Assets/ListBox.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Assets/ListView.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Assets/ListView.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Assets/ModernUI.Dark.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Assets/ModernUI.Dark.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Assets/ModernUI.Light.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Assets/ModernUI.Light.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Assets/ModernUI.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Assets/ModernUI.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Assets/ModernWindowEx.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Assets/ModernWindowEx.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Assets/PasswordBox.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Assets/PasswordBox.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Assets/ProgressBar.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Assets/ProgressBar.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Assets/RadioButton.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Assets/RadioButton.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Assets/ScrollBar.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Assets/ScrollBar.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Assets/Slider.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Assets/Slider.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Assets/TextBlock.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Assets/TextBlock.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Assets/TextBox.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Assets/TextBox.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Assets/ToolTip.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Assets/ToolTip.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Assets/TreeView.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Assets/TreeView.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 71e076e0557a22ec529278cb285e27809452b494 2 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/DesignTimeResolveAssemblyReferences.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/DesignTimeResolveAssemblyReferences.cache -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/FirstFloor.ModernUI.Resources.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/FirstFloor.ModernUI.Resources.resources -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/FirstFloor.ModernUI.csproj.GenerateResource.Cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/FirstFloor.ModernUI.csproj.GenerateResource.Cache -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/FirstFloor.ModernUI.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/FirstFloor.ModernUI.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/FirstFloor.ModernUI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/FirstFloor.ModernUI.dll -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/FirstFloor.ModernUI.g.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/FirstFloor.ModernUI.g.resources -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/FirstFloor.ModernUI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/FirstFloor.ModernUI.pdb -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/FirstFloor.ModernUI_MarkupCompile.cache: -------------------------------------------------------------------------------- 1 | FirstFloor.ModernUI 2 | 3 | 4 | library 5 | C# 6 | .cs 7 | E:\GitHub\MUINetPlus\Library\FirstFloor.ModernUI\obj\Debug\ 8 | FirstFloor.ModernUI 9 | none 10 | false 11 | TRACE;DEBUG;NET4 12 | 13 | 31-1789322327 14 | 2492382252 15 | 53-2105592321 16 | 14-248981468 17 | Assets\Converters.xaml;Assets\Button.xaml;Assets\CheckBox.xaml;Assets\ComboBox.xaml;Assets\ModernWindowEx.xaml;Assets\DataGrid.xaml;Assets\Slider.xaml;Assets\RadioButton.xaml;Assets\Hyperlink.xaml;Assets\ProgressBar.xaml;Assets\TreeView.xaml;Assets\ListView.xaml;Assets\PasswordBox.xaml;Assets\TextBox.xaml;Assets\GridSplitter.xaml;Assets\TextBlock.xaml;Assets\ScrollBar.xaml;Assets\ListBox.xaml;Assets\ToolTip.xaml;Assets\ModernUI.Light.xaml;Assets\ModernUI.Dark.xaml;Assets\ModernUI.xaml;Themes\BBCodeBlock.xaml;Themes\ModernDialog.xaml;Themes\ModernTab.xaml;Themes\ModernButton.xaml;Themes\TransitioningContentControl.xaml;Themes\ModernFrame.xaml;Themes\ModernMenu.xaml;Themes\ModernWindow.xaml;Themes\Generic.xaml; 18 | 19 | False 20 | 21 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/FirstFloor.ModernUI_MarkupCompile.i.cache: -------------------------------------------------------------------------------- 1 | FirstFloor.ModernUI 2 | 3 | 4 | library 5 | C# 6 | .cs 7 | E:\GitHub\MUINetPlus\Library\FirstFloor.ModernUI\obj\Debug\ 8 | FirstFloor.ModernUI 9 | none 10 | false 11 | TRACE;DEBUG;NET4 12 | 13 | 31-1789322327 14 | 2492382252 15 | 54-449182084 16 | 14-248981468 17 | Assets\Converters.xaml;Assets\Button.xaml;Assets\CheckBox.xaml;Assets\ComboBox.xaml;Assets\ModernWindowEx.xaml;Assets\DataGrid.xaml;Assets\Slider.xaml;Assets\RadioButton.xaml;Assets\Hyperlink.xaml;Assets\ProgressBar.xaml;Assets\TreeView.xaml;Assets\ListView.xaml;Assets\PasswordBox.xaml;Assets\TextBox.xaml;Assets\GridSplitter.xaml;Assets\TextBlock.xaml;Assets\ScrollBar.xaml;Assets\ListBox.xaml;Assets\ToolTip.xaml;Assets\ModernUI.Light.xaml;Assets\ModernUI.Dark.xaml;Assets\ModernUI.xaml;Themes\BBCodeBlock.xaml;Themes\ModernDialog.xaml;Themes\ModernTab.xaml;Themes\ModernButton.xaml;Themes\TransitioningContentControl.xaml;Themes\ModernFrame.xaml;Themes\ModernMenu.xaml;Themes\ModernWindow.xaml;Themes\Generic.xaml; 18 | 19 | False 20 | 21 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/FirstFloor.ModernUI_MarkupCompile.lref: -------------------------------------------------------------------------------- 1 |  2 | 3 | FE:\GitHub\MUINetPlus\Library\FirstFloor.ModernUI\Assets\Converters.xaml;; 4 | FE:\GitHub\MUINetPlus\Library\FirstFloor.ModernUI\Assets\ModernWindowEx.xaml;; 5 | FE:\GitHub\MUINetPlus\Library\FirstFloor.ModernUI\Assets\Slider.xaml;; 6 | FE:\GitHub\MUINetPlus\Library\FirstFloor.ModernUI\Assets\ProgressBar.xaml;; 7 | FE:\GitHub\MUINetPlus\Library\FirstFloor.ModernUI\Themes\BBCodeBlock.xaml;; 8 | FE:\GitHub\MUINetPlus\Library\FirstFloor.ModernUI\Themes\ModernDialog.xaml;; 9 | FE:\GitHub\MUINetPlus\Library\FirstFloor.ModernUI\Themes\ModernTab.xaml;; 10 | FE:\GitHub\MUINetPlus\Library\FirstFloor.ModernUI\Themes\ModernButton.xaml;; 11 | FE:\GitHub\MUINetPlus\Library\FirstFloor.ModernUI\Themes\TransitioningContentControl.xaml;; 12 | FE:\GitHub\MUINetPlus\Library\FirstFloor.ModernUI\Themes\ModernFrame.xaml;; 13 | FE:\GitHub\MUINetPlus\Library\FirstFloor.ModernUI\Themes\ModernMenu.xaml;; 14 | FE:\GitHub\MUINetPlus\Library\FirstFloor.ModernUI\Themes\ModernWindow.xaml;; 15 | FE:\GitHub\MUINetPlus\Library\FirstFloor.ModernUI\Themes\Generic.xaml;; 16 | 17 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/GeneratedInternalTypeHelper.g.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码由工具生成。 4 | // 运行时版本:4.0.30319.42000 5 | // 6 | // 对此文件的更改可能会导致不正确的行为,并且如果 7 | // 重新生成代码,这些更改将会丢失。 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace XamlGeneratedNamespace { 12 | 13 | 14 | /// 15 | /// GeneratedInternalTypeHelper 16 | /// 17 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 18 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] 19 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] 20 | public sealed class GeneratedInternalTypeHelper : System.Windows.Markup.InternalTypeHelper { 21 | 22 | /// 23 | /// CreateInstance 24 | /// 25 | protected override object CreateInstance(System.Type type, System.Globalization.CultureInfo culture) { 26 | return System.Activator.CreateInstance(type, ((System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic) 27 | | (System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.CreateInstance)), null, null, culture); 28 | } 29 | 30 | /// 31 | /// GetPropertyValue 32 | /// 33 | protected override object GetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, System.Globalization.CultureInfo culture) { 34 | return propertyInfo.GetValue(target, System.Reflection.BindingFlags.Default, null, null, culture); 35 | } 36 | 37 | /// 38 | /// SetPropertyValue 39 | /// 40 | protected override void SetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, object value, System.Globalization.CultureInfo culture) { 41 | propertyInfo.SetValue(target, value, System.Reflection.BindingFlags.Default, null, null, culture); 42 | } 43 | 44 | /// 45 | /// CreateDelegate 46 | /// 47 | protected override System.Delegate CreateDelegate(System.Type delegateType, object target, string handler) { 48 | return ((System.Delegate)(target.GetType().InvokeMember("_CreateDelegate", (System.Reflection.BindingFlags.InvokeMethod 49 | | (System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance)), null, target, new object[] { 50 | delegateType, 51 | handler}, null))); 52 | } 53 | 54 | /// 55 | /// AddEventHandler 56 | /// 57 | protected override void AddEventHandler(System.Reflection.EventInfo eventInfo, object target, System.Delegate handler) { 58 | eventInfo.AddEventHandler(target, handler); 59 | } 60 | } 61 | } 62 | 63 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/GeneratedInternalTypeHelper.g.i.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码由工具生成。 4 | // 运行时版本:4.0.30319.42000 5 | // 6 | // 对此文件的更改可能会导致不正确的行为,并且如果 7 | // 重新生成代码,这些更改将会丢失。 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace XamlGeneratedNamespace { 12 | 13 | 14 | /// 15 | /// GeneratedInternalTypeHelper 16 | /// 17 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 18 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] 19 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] 20 | public sealed class GeneratedInternalTypeHelper : System.Windows.Markup.InternalTypeHelper { 21 | 22 | /// 23 | /// CreateInstance 24 | /// 25 | protected override object CreateInstance(System.Type type, System.Globalization.CultureInfo culture) { 26 | return System.Activator.CreateInstance(type, ((System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic) 27 | | (System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.CreateInstance)), null, null, culture); 28 | } 29 | 30 | /// 31 | /// GetPropertyValue 32 | /// 33 | protected override object GetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, System.Globalization.CultureInfo culture) { 34 | return propertyInfo.GetValue(target, System.Reflection.BindingFlags.Default, null, null, culture); 35 | } 36 | 37 | /// 38 | /// SetPropertyValue 39 | /// 40 | protected override void SetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, object value, System.Globalization.CultureInfo culture) { 41 | propertyInfo.SetValue(target, value, System.Reflection.BindingFlags.Default, null, null, culture); 42 | } 43 | 44 | /// 45 | /// CreateDelegate 46 | /// 47 | protected override System.Delegate CreateDelegate(System.Type delegateType, object target, string handler) { 48 | return ((System.Delegate)(target.GetType().InvokeMember("_CreateDelegate", (System.Reflection.BindingFlags.InvokeMethod 49 | | (System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance)), null, target, new object[] { 50 | delegateType, 51 | handler}, null))); 52 | } 53 | 54 | /// 55 | /// AddEventHandler 56 | /// 57 | protected override void AddEventHandler(System.Reflection.EventInfo eventInfo, object target, System.Delegate handler) { 58 | eventInfo.AddEventHandler(target, handler); 59 | } 60 | } 61 | } 62 | 63 | -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/TempPE/Resources.Designer.cs.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/TempPE/Resources.Designer.cs.dll -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Themes/BBCodeBlock.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Themes/BBCodeBlock.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Themes/Generic.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Themes/Generic.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Themes/ModernButton.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Themes/ModernButton.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Themes/ModernDialog.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Themes/ModernDialog.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Themes/ModernFrame.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Themes/ModernFrame.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Themes/ModernMenu.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Themes/ModernMenu.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Themes/ModernTab.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Themes/ModernTab.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Themes/ModernWindow.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Themes/ModernWindow.baml -------------------------------------------------------------------------------- /Library/FirstFloor.ModernUI/obj/Debug/Themes/TransitioningContentControl.baml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/Library/FirstFloor.ModernUI/obj/Debug/Themes/TransitioningContentControl.baml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MUINetPlus 2 | 3 | ## 框架介绍 4 | [MUINetPlus](https://github.com/MrocCyen/MUINetPlus)是WPF的一个插件式的开发框架,界面库基于FirstFloor.ModernUI,可根据配置文件动态配置界面与功能。 5 | 6 | 相比UIShell.iOpenWorks.WPF,增加了可在不同Dll中配置同一菜单下的子菜单项,并且可自定义排序。 7 | 8 | ## 配置文件 9 | 10 | ``` 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | ``` 40 | 41 | 每个节点的解释: 42 | 43 | - Extension:插件的扩展节点,里面可包含一个或者多个插件项。 44 | - LinkGroup:第一级菜单项,可以根据Index属性设置顺序优先级。 45 | - Link:LinkGroup下的子菜单,同样可根据Index属性设置顺序优先级,同时Source设置显示的页面。 46 | 47 | ## 使用方法 48 | 只需要将相应的Dll和配置文件所在文件夹放在Plugins目录下即可。 49 | 50 | 51 | ### 意见 52 | 如果有什么意见和建议欢迎给我发邮件,大家一起探讨探讨。 53 | -------------------------------------------------------------------------------- /bin/FirstFloor.ModernUI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/bin/FirstFloor.ModernUI.dll -------------------------------------------------------------------------------- /bin/FirstFloor.ModernUI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/bin/FirstFloor.ModernUI.pdb -------------------------------------------------------------------------------- /bin/Library/FirstFloor.ModernUI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/bin/Library/FirstFloor.ModernUI.dll -------------------------------------------------------------------------------- /bin/Library/FirstFloor.ModernUI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/bin/Library/FirstFloor.ModernUI.pdb -------------------------------------------------------------------------------- /bin/Library/Microsoft.Windows.Shell.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/bin/Library/Microsoft.Windows.Shell.dll -------------------------------------------------------------------------------- /bin/MUINetPlus.Core.UI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/bin/MUINetPlus.Core.UI.dll -------------------------------------------------------------------------------- /bin/MUINetPlus.Core.UI.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/bin/MUINetPlus.Core.UI.pdb -------------------------------------------------------------------------------- /bin/MUINetPlus.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/bin/MUINetPlus.Core.dll -------------------------------------------------------------------------------- /bin/MUINetPlus.Core.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/bin/MUINetPlus.Core.pdb -------------------------------------------------------------------------------- /bin/MUINetPlus.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/bin/MUINetPlus.exe -------------------------------------------------------------------------------- /bin/MUINetPlus.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /bin/MUINetPlus.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/bin/MUINetPlus.pdb -------------------------------------------------------------------------------- /bin/MUINetPlus.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/bin/MUINetPlus.vshost.exe -------------------------------------------------------------------------------- /bin/MUINetPlus.vshost.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /bin/MUINetPlus.vshost.exe.manifest: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /bin/Microsoft.Windows.Shell.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/bin/Microsoft.Windows.Shell.dll -------------------------------------------------------------------------------- /bin/Plugins/MainPlugin/MUINetPlus.MainPlugin.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/bin/Plugins/MainPlugin/MUINetPlus.MainPlugin.dll -------------------------------------------------------------------------------- /bin/Plugins/MainPlugin/MUINetPlus.MainPlugin.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mroccyen/MUINetPlus/1297910b863d4f2e3cdee41ee3eb5b4d8d1121c8/bin/Plugins/MainPlugin/MUINetPlus.MainPlugin.pdb -------------------------------------------------------------------------------- /bin/Plugins/MainPlugin/MUINetPlus.MainPlugin.plugin: -------------------------------------------------------------------------------- 1 |  2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | --------------------------------------------------------------------------------