C# WPF Change Resource On Click -
my xaml here:
<window.resources> <xmldataprovider x:key="rsssource" xpath="//item" source="https://news.google.com/news?output=rss" /> </window.resources>
i need change when button click event:
<window.resources> <xmldataprovider x:key="rsssource" xpath="//item" source="change textbox value" /> </window.resources>
how can it?
like maybe
xmldataprovider provider = (xmldataprovider) this.findresource("rsssource"); provider.source = new uri("change textbox value");
Comments
Post a Comment