What is application's site of origin and when to use it

前端 未结 2 540
臣服心动
臣服心动 2020-12-17 10:15
  • What is application\'s site of origin
  • When to use it
  • How is the build action of a resource file associated with it
  • What is the difference be
2条回答
  •  旧巷少年郎
    2020-12-17 10:48

    If you do not want to be bound by the restrictions of having your application resources declared at compile time, there is another option for you. No, this doesn't involve using fully qualified Uris to reference resources over the internet. Although, that is indeed supported. WPF provides you with an abstraction for the application's conceptual site of origin i.e. the location from where the application was deployed. For instance, if your application was launched from http://nerddawg.blogspot.com , then your application's site of origin is http://nerddawg.blogspot.com . To access an image at images/AuntDahlia.gif at that location, you would specify in markup:

    
    

    for more

    http://nerddawg.blogspot.com/2005/11/resources-in-windows-presentation.html

提交回复
热议问题