Answer the question
In order to leave comments, you need to log in
XmlDataProvider Source and btn_Click
XAML
<TabItem.Resources>
<XmlDataProvider x:Key="rssData" XPath="//item" Source="http://domain.ru/rss/"/>
</TabItem.Resources>
private void btn_Click(object sender, RoutedEventArgs e)
{
//Как сменить URL domain.ru в Source отсюда?
}
Answer the question
In order to leave comments, you need to log in
using System.Windows.Data;
private void btn_Click(object sender, RoutedEventArgs e)
{
Uri rssData = new Uri ("http://another-domain.ru/rss/");
XmlDataProvider rsrs = new XmlDataProvider();
rsrs.Source = rssData;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question