1

我正在尝试本地化我的 .wav 音频文件。我得到这样的例外:

MS.Internal.Data.DynamicValueConverter' converter failed to convert value 'System.IO.UnmanagedMemoryStream' (type 'System.IO.UnmanagedMemoryStream');
BindingExpression: Path='LocalizedResources.AudioTest' DataItem='WPLocalizationMultilingualAppToolkit.LocalizedStrings' (HashCode=77186600);
target element is 'System.Windows.Controls.MediaElement' (Name='AudioTestElement'); 
target property is 'Source' (type 'System.Uri').. System.InvalidOperationException: Can't convert type System.IO.UnmanagedMemoryStream to type System.Uri.

如何转换UnmanagedMemoryStream为 Uri?

4

0 回答 0