Click here to Skip to main content
15,891,905 members

Comments by Medtronic WPF Developer (Top 4 by date)

Medtronic WPF Developer 6-Mar-18 19:45pm View    
Thanks, I fixed it, and works great.
Medtronic WPF Developer 1-Mar-18 15:28pm View    
You did make a couple of mistakes, but you led me in the right direction. This is the right code in the middle:
return Pattern.Replace(String, match =>
{
var str = match.Groups[0].Value;
var provideStr = str.Substring(1, str.Length - 2);
var value = new StaticResourceExtension(provideStr).ProvideValue(serviceProvider);
return Convert.ToString(value);
});
Medtronic WPF Developer 1-Mar-18 14:40pm View    
Thanks for your response...Just what I was looking for.
Medtronic WPF Developer 1-Mar-18 14:35pm View    
Thanks so much I knew there was something, but I completely forgot (it was years ago) and it was hard to find the answer since most information on RegEx is the basic stuff, which is still hard to remember unless you work with it all the time. I figured there was some brain out there I could pick and appreciate that you took the time to answer.