XmlDataProvider Source = "pack: // application: ,, / FinanceExplorer / Equity.xml"

Can anyone explain the syntax in the original attribute? What the hell is "pack:" and "application:" and why 3 commas? I couldn't find any decent descriptions.

+1


source to share


2 answers


Here's the MS documentation on Pack URI Scheme



The three commas represent the XAML resource file, which is located at the root of the local assembly project folder.

+1


source


The URI package is actually a URI within a URI, so it is encoded by converting it with a forward slash to a comma.

Hence, triple commas are actually slash encoded.

Also you can replace with something like

pack://application:,,,/logo.jpg

      



with this

/logo.jpg

      

The runtime will be prefixed with the package: // application: ,,.

+1


source







All Articles