View AzureMobileAgent.cs
MobileServiceClient.Logout() |
View index.html
<div data-bind='component: { | |
name: "message-editor", | |
params: { initialText: "Hello, world!" } | |
}'></div> |
View messageEdit.html
<message-editor params='initialText: "Hello, world!"'></message-editor> |
View web.config.xml
<rewrite> | |
<rules> | |
<rule name="Route Requests from localhost api to Remote API url" stopProcessing="true"> | |
<match url="^api/(.*)" /> | |
<conditions> | |
<add input="{CACHE_URL}" pattern="^(https?)://" /> | |
</conditions> | |
<action type="Rewrite" url="https://www.wrapcode.com:1234/api/{R:1}" logRewrittenUrl="true" /> | |
<serverVariables> | |
<set name="HTTP_ACCEPT_ENCODING" value="" /> |
View CircleImageView.cs
using Android.Content; | |
using Android.Content.Res; | |
using Android.Graphics; | |
using Android.Graphics.Drawables; | |
using Android.Util; | |
using Android.Views; | |
using Android.Widget; | |
namespace WrapCode.Util | |
{ |
View myprofile.xml
<!-- Don't forget to add custom namespace in first xml element, otherwise get ready for exceptions and errors --> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:custom="http://schemas.android.com/apk/res-auto" | |
android:minWidth="25px" | |
android:minHeight="25px" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:background="@android:color/white" | |
android:id="@+id/parentLayout"> |
View attr.xml
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<declare-styleable name="CircleImageView"> | |
<attr name="border" format="boolean"></attr> | |
<attr name="border_width" format="dimension"></attr> | |
<attr name="border_color" format="color"></attr> | |
<attr name="shadow" format="boolean"></attr> | |
</declare-styleable> |
View GetPathToImage.cs
protected override void OnActivityResult(int requestCode, Result resultCode, Intent data) | |
{ | |
if ((requestCode == PickImageId) && (resultCode == Result.Ok) && (data != null)) | |
{ | |
Uri uri = data.Data; | |
_imageView.SetImageURI(uri); | |
string path = GetPathToImage(uri); |
View GetPathToImage.cs
private string GetPathToImage(Android.Net.Uri uri) | |
{ | |
ICursor cursor = this.ContentResolver.Query(uri, null, null, null, null); | |
cursor.MoveToFirst(); | |
string document_id = cursor.GetString(0); | |
document_id = document_id.Split(':')[1]; | |
cursor.Close(); | |
cursor = ContentResolver.Query( | |
Android.Provider.MediaStore.Images.Media.ExternalContentUri, |
OlderNewer