0
我看到C#代码行:什么是分号“;”在Uri字符串中做?
Image = new BitmapImage(
new Uri("/MyProgramName;component/Images/a.png", UriKind.Relative));
那有什么 “;”在这个Uri字符串中做什么?
那a.png实际上是在MyProgramName/Images/a.png下。
我看到C#代码行:什么是分号“;”在Uri字符串中做?
Image = new BitmapImage(
new Uri("/MyProgramName;component/Images/a.png", UriKind.Relative));
那有什么 “;”在这个Uri字符串中做什么?
那a.png实际上是在MyProgramName/Images/a.png下。
它只是WPF Resource URIs其中一个变体的分隔符。分号对于所有URI不具有任何特定的通用含义。
谢谢你的链接:) – laishiekai