How to call a XML Service without adding Service Reference
string url = "http://etcetcetc"; HttpWebRequest req = (HttpWebRequest) HttpWebRequest.Create(new Uri(url)); HttpWebResponse resp = (HttpWebResponse)req.GetResponse(); XmlDocument doc = new XmlDocument(); doc.Load(resp.GetResponseStream()); var totals = doc.SelectSingleNode("/root/eventFundraisingTotals_collection/eventFundraisingTotals"); var verifiedGoal = totals.SelectSingleNode("eventVerifiedFundraisingGoal/text()").Value; var unverifiedGoal = totals.SelectSingleNode("eventUnVerifiedFundraisingGoal/text()").Value; var statusMessage = totals.SelectSingleNode("statusMessage/text()").Value;
Silverlight Links
Subscribing to Change Notifications without Memory Leaks
JavaFX and RxJava
Netflix has released a Java port of .NET’s Reactive Extensions called RxJava. I’m new to RxJava although I’ve played around a little with its .NET counterpart. In a nutshell, reactive programming is a not unlike the traditional days of unix shell scripting where you’d pipe streams of text from simple primitives to one another. Here [...]
Adding Global Behaviors to Silverlight Controls
Take a look at the two buttons below, and hover your mouse over them. You’ll notice that the buttons hide themselves. However, when you take a look at the XAML, it is not obvious how this is implemented. <UserControl x:Class="GlobalBehavior.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:local="clr-namespace:GlobalBehavior" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400"> <Grid x:Name="LayoutRoot" Background="White"> <Button Content="Click Me" [...]