wpf 我如何使用 Elysium 项目?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11704835/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I use the Elysium Project?
提问by JimDel
The Elysiumproject on CodePlex looks interesting. One problem. I can't figure out how to use it. I can only assume that there is an assumption that the user knows what he or she is doing. I don't apparently. I download the Debug Binary from here. It has a batch file for loading the files, and it looks to have run without error. But I can't figure out where to go from here. When I open Blend, I see no templates or themes. Can someone please help?
CodePlex 上的Elysium项目看起来很有趣。一个问题。我无法弄清楚如何使用它。我只能假设有一个假设,即用户知道他或她在做什么。我显然没有。我从这里下载调试二进制文件。它有一个用于加载文件的批处理文件,它看起来运行没有错误。但我不知道从这里去哪里。当我打开 Blend 时,我看不到模板或主题。有人可以帮忙吗?
Thanks
谢谢
回答by OJ.
- Download the binaries either from Codeplex or Nuget.
- Add references to the binaries:
Elysium.Theme.dll,Microsoft.Expression.Interactions.dll,Microsoft.Windows.Shell.dllandSystem.Windows.Interactivity.dll- Note: some of the binaries that come with the package aren't added correctly if you do it via Nuget so you'll have to add them manually.
- When you add a new window to your application, add this namespace to your XAML:
xmlns:metro="http://schemas.codeplex.com/elysium/theme" - Then change your XAML so that the window isn't just a
<Window ..>...</Window>but is instead a<metro:Window ..>...</metro:Window>. - There are lots of other examples in the test project on the Elysium site which show how to use the custom controls, etc.
- 从 Codeplex 或 Nuget 下载二进制文件。
- 添加对二进制文件:
Elysium.Theme.dll,Microsoft.Expression.Interactions.dll,Microsoft.Windows.Shell.dll和System.Windows.Interactivity.dll- 注意:如果您通过 Nuget 执行此操作,则软件包附带的某些二进制文件将无法正确添加,因此您必须手动添加它们。
- 向应用程序添加新窗口时,将此命名空间添加到 XAML:
xmlns:metro="http://schemas.codeplex.com/elysium/theme" - 然后更改您的 XAML,使窗口不只是一个
<Window ..>...</Window>,而是一个<metro:Window ..>...</metro:Window>. - Elysium 站点上的测试项目中还有许多其他示例,它们展示了如何使用自定义控件等。
That should get you started.
这应该让你开始。
Best of luck.
祝你好运。
回答by JeeShen Lee
For Elysium 1.5 onwards, here's the step
对于 Elysium 1.5 以后的版本,这里是步骤
- Downloadand extractzip file.
- Look for "Elysium.dll" and "Elysium.Notifications.dll". You might need to extract a zip again if you are using x86 system.
- Add referenceto both Elysium.dll and Elysium.Notifications.dll
- Add Elysium theme controls at the visual studio toolbox
- Drag and drop any Elysium theme controlto your user interface, visual studio will automatically add the xmlns reference in the xaml.
- 下载并解压zip 文件。
- 寻找“ Elysium.dll”和“ Elysium.Notifications.dll”。如果您使用的是 x86 系统,则可能需要再次解压缩 zip。
- 添加对Elysium.dll 和 Elysium.Notifications.dll 的引用
- 在 Visual Studio工具箱中添加 Elysium 主题控件
- 将任何 Elysium 主题控件拖放到您的用户界面,visual studio 将自动在 xaml 中添加 xmlns 引用。
Refer http://bizvise.com/2012/09/24/how-to-install-elysium-on-visual-studio-project/for a complete step by step guide.
有关完整的分步指南,请参阅http://bizvise.com/2012/09/24/how-to-install-elysium-on-visual-studio-project/。
回答by JeeShen Lee
回答by Christian Mark
For Elysium Version 2.0, here's what I did:
对于 Elysium 2.0 版,这是我所做的:
- Download the SDK here.
- Extract the .zipfile.
- Install the correct .exefile (x86 or x64).
- Restart your Visual Studio (if opened).
Create a new project with WPF Metro application:

Finally, you can add the controls manually on your toolbar:

- 在此处下载SDK。
- 解压缩.zip文件。
- 安装正确的.exe文件(x86 或 x64)。
- 重新启动您的 Visual Studio(如果已打开)。
使用 WPF Metro 应用程序创建一个新项目:

最后,您可以在工具栏上手动添加控件:

If you like this extension, then you can donate on their website.
如果你喜欢这个扩展,那么你可以在他们的网站上捐赠。

