<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Xamarin &#8211; Other Things</title>
	<atom:link href="https://blog.adamzolo.com/category/xamarin/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.adamzolo.com</link>
	<description>Blog about Things by Adam Zolotarev</description>
	<lastBuildDate>Sun, 04 Sep 2016 03:05:21 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>Starting Xamarin with MVVM binding in Code</title>
		<link>https://blog.adamzolo.com/xamarin-mvvm-binding-in-code/</link>
					<comments>https://blog.adamzolo.com/xamarin-mvvm-binding-in-code/#respond</comments>
		
		<dc:creator><![CDATA[Adam Zolo]]></dc:creator>
		<pubDate>Wed, 17 Aug 2016 03:06:07 +0000</pubDate>
				<category><![CDATA[Xamarin]]></category>
		<guid isPermaLink="false">http://www.eazolo.com/blog/?p=338</guid>

					<description><![CDATA[Create your view model which implements INotifyPropertyChanged: Bind it to your view: If you need to retrieve your view model on some action:]]></description>
										<content:encoded><![CDATA[<p>Create your view model which implements INotifyPropertyChanged:</p>
<pre class="brush: csharp; title: ; notranslate">
public class ViewModel : INotifyPropertyChanged
{
private string someValue;
public event PropertyChangedEventHandler PropertyChanged;

public string SomeValue
{
get { return someValue; }
set
{
if (someValue!= value)
{
someValue= value;
OnPropertyChanged(nameof(SomeValue));
}
}
}

protected void OnPropertyChanged(string propertyName)
{
PropertyChangedEventHandler handler = PropertyChanged;
if (handler != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
</pre>
<p>Bind it to your view:</p>
<pre class="brush: csharp; title: ; notranslate">
var searchBar = new SearchBar();
searchBar.SetBinding(SearchBar.TextProperty, new Binding("SearchText", BindingMode.TwoWay));
</pre>
<p>If you need to retrieve your view model on some action:</p>
<pre class="brush: csharp; title: ; notranslate">
var viewModel = BindingContext as ViewModel;
// update your viewModel then reassign to BindingContext
BindingContext = viewModel;

</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.adamzolo.com/xamarin-mvvm-binding-in-code/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Making Rest Get Web Service Call in Xamarin Forms</title>
		<link>https://blog.adamzolo.com/making-rest-web-service-call-xamarin-forms/</link>
					<comments>https://blog.adamzolo.com/making-rest-web-service-call-xamarin-forms/#respond</comments>
		
		<dc:creator><![CDATA[Adam Zolo]]></dc:creator>
		<pubDate>Wed, 17 Aug 2016 02:54:26 +0000</pubDate>
				<category><![CDATA[Xamarin]]></category>
		<guid isPermaLink="false">http://www.eazolo.com/blog/?p=335</guid>

					<description><![CDATA[Since api is a little different from regular C#, the code is slightly different. var httpClient = new HttpClient(); var response = await httpClient.GetStringAsync(url);]]></description>
										<content:encoded><![CDATA[<p>Since api is a little different from regular C#, the code is slightly different.</p>
<p><code><br />
var httpClient = new HttpClient();<br />
var response = await httpClient.GetStringAsync(url);<br />
</code></p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.adamzolo.com/making-rest-web-service-call-xamarin-forms/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
