Elements with Build Action
of Content
are included in the package file (.xap) and are accessible through Uri
. You are still using Application.GetResourceStream()
to get the stream
var si = Application.GetResourceStream(new Uri("FileName.ext", UriKind.Relative)); using (var sr = new StreamReader(si.Stream)) {
This is fairly well described in the MSDN Help. Application.GetResourceStream
source share