English 中文(简体)
关于共享银灯资源的咨询意见
原标题:Advice about sharing resources for Silverlight

我的公司正在慢慢地把我们的商业企业转往银灯(从严格意义上的 as子)。 我们有几大规模、网基应用和不同的开发商团队就不同产品开展工作。 尽管这些产品,因此项目/解决办法是分开的,但我们确实需要有一些共同的东西。 虽然数据结构无疑是其中一项内容,但我今天的问题是关于国库资源的问题,例如共同的肤色主题、标志、风格、习俗控制、地方化等。 我希望确保,如果改变一个地方的话,这一变化将尽可能地向我们的所有应用传播。

显然,(对我来说)应用xaml是把大部分资源用于其中的场所,但是,这仍然只涵盖一个项目,除非我们确保在每个解决方案中将同一应用系统输入每个项目,然后在文件变更时提供更新该档案(例如与它的联系)。 这使人感到悲观。

我不禁要问,是否有其他人必须解决这一问题,以及你是否能够分享你的技巧或想法? 是否可将其中的任何部分储存在数据库中? 在云层? 能否轻易地将它储存在每个项目中。 你们如何对待?

问题回答

你们需要做的唯一事情是把你的所有资源放在一个特定的大会,并从你的资源字典中提一下:

<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/AltinetSilver;component/AltiStyles.xaml" />
            <ResourceDictionary Source="Assets/AltiStyles.xaml"/>
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>                
</Application.Resources>

The first ResourceDictionary is from Assembly altinetSilver and it takes AltiStyles.xaml. The second one is the regular one. So i think that should cover it.





相关问题
Silverlight Rich text box control

Our team decided that we need our own custom Rich text box control for Silverlight app we are developing. We looked at existing controls mentioned at A good rich text control for Silverlight but ...

Silverlight ImageBrush not rendering (with Bing Map Control)

I m trying to add an image to a Pushpin instance from the Silverlight Bing Map Control, but I can t seem to get it to render (the pushpin renders fine). This is probably a general WPF question rather ...

Silverlight OpenFileDialog DoEvents equivalent

I m processing large files after they are selected by the user. My code looks like the following: if (FileDialog.ShowDialog() == true) { // process really big file } This freezes up the UI so ...

list of controls with templates in silverlight

Does anyone know where to find a list of controls that you can set the template on in Silverlight? I ve wasted several hours now trying to create control templates only to find that the control doesn ...

Silverlight, Updating the UI during processing

I have a simple silverlight multifile upload application, and i want to provide the user with some feedback, right now its only in a test phase and i dont have the webservice. Somehow i cant get the ...

Silverlight 3 - FindName returns null

This looks a bug to me.. Using Silverlight 3 and i have a user control defined in XAML and trying to access the object during runtime returns a null. <Grid> <common:CommonGridEditPanel x:...

silverlight 3 collection binding

Someone please help me understand why this binding does not work... I have a class called SelectionManager with a property called dates which is populated by a WCF service. The property is an ...

热门标签