P
P
Panicrust2013-11-23 15:56:06
.NET
Panicrust, 2013-11-23 15:56:06

XmlDataProvider Source and btn_Click

XAML

<TabItem.Resources>
    <XmlDataProvider x:Key="rssData" XPath="//item" Source="http://domain.ru/rss/"/>
</TabItem.Resources>

C#
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

1 answer(s)
P
Panicrust, 2013-11-23
@Panicrust

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;
        }

It seems to work, but the control container is not updated, so it was not useful =/
And so, if anyone needs it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question