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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -