Expression Blend使用VB而不是C# [英] Expression Blend to use VB instead of C#

查看:52
本文介绍了Expression Blend使用VB而不是C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Encoder中选择了一个播放器模板,然后将模板复制到Blend中。

I am selecting a player template in Encoder and then copying a template into Blend.

如何让Blend创建结果项目我们用VB而不是C#为xaml页面后面的代码?

How do I make Blend create the resultant project us VB instead of C# for the xaml code behind pages?

我在Blend中打开一个新项目时将语言设置为VB,现在Blend在新项目中默认为VB,但是当从Encoder编辑模板时,Blend仍然打开C#。

I have set the language to VB when opening a new project in Blend and now Blend defaults to VB on new projects but when editing a template from Encoder, Blend still opens using C#.

非常感谢您的帮助。

感谢您的期待。

Roger

 

推荐答案

hello withers,

hello withers,

非常有趣的是,编辑器中只有cs模板可以在混合中编辑。我不知道。

very interesting that there are only cs templates from encoder to edit in blend. I didn't knew that.

然而,对于你的问题:我想似乎编码器没有提供vb模板来编辑混合。我在搜索,一无所获。所以,我想这取决于你想要实现的目标。两种选择:

However, to your question: I guess it seems that there are no vb templates provided from encoder to edit them in blend. I was searching and found nothing. So, I guess it depends what you want to achieve. Two alternatives:

Alt。 1:您需要编辑播放器模板本身

如果是这样,您需要在cs中编辑模板文件的源代码。

If so, you need to edit the source code of the template files in cs.

Alt。 2:您只想在vb项目中使用基于cs模板的播放器

如果是这样,您应该能够添加对cs提供的dll文件的引用基于模板的玩家到处女新的vb silverlight projekt。当您查看基于cs模板的播放器项目的引用时,例如"Chrome"和"Chrome"。玩家
模板,您会注意到,有一些dll文件的引用。这些dll文件引用基于cs模板的播放器项目的相应项目。例如,在"Chrome"中。播放器模板,有一个名为"Chrome"的项目,而
这个"Chrome", project包含一个page.xaml,它提供播放器的起始页面。打开"Chrome"的Page.xaml。项目,你会注意到我的意思。在Page.xaml中,您将在Grid LayoutRoot下找到ChromePlayer类型的元素。这是玩家的

If so, you should be able to add references to the dll files provided by the cs template based player to a virgin new vb silverlight projekt. When you take a look at the references of the cs template based player projetc(s) of for example the "Chrome" player template, you will notice, that there are references to a few dll-files. These dll-files refer to the corresponding projects of the cs template based player project(s). For example, in the "Chrome" player templates, there is a project called "Chrome", whereas this "Chrome" project contains a page.xaml that provides the starting page of the player. Open Page.xaml of the "Chrome" project and you will notice what I mean. Inside Page.xaml you will find an element of type ChromePlayer under Grid LayoutRoot. This is the player.

当您添加对"ExpressionPlayer.dll","MediaPlayer.dll","mscorlib.dll"的引用时。和"PlugInMssCtrl.dll"对于一个处女新的vb silverlight项目,你应该可以使用ChromePlayer,这只不过是一个
控制。因为它是一个控件,你应该能够将它添加到你的vb项目控件中。此外,您应该复制并粘贴"Chrome"的Page.xaml中的UserControl.Resources部分。项目到你的新vb项目。

When you add references to "ExpressionPlayer.dll", "MediaPlayer.dll", "mscorlib.dll" and "PlugInMssCtrl.dll" to a virgin new vb silverlight project, you should be able to use the ChromePlayer, which is nothing more than a Control. Because it is a control you should be able to add it to your vb project a control. Additionally you should copy and paste the UserControl.Resources section from Page.xaml of the "Chrome" project to your new vb project.

我没有时间自己检查它是否正常,因为我认为它应该工作。所以,不幸的是,你必须自己尝试一下。但我很确定,它应该有用。

I didn't had the time to check by myself if it works as I assume it should work. So, you must try it on your own, unfortunately. But I'm quite sure, it should work.

请再次发布并告诉我,这是否适合你。

Please post again and tell me, if this works for you.

问候,

Martin


这篇关于Expression Blend使用VB而不是C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆