This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.ComponentModel; | |
using CoreGraphics; | |
using CustomRendererTest.Controls; | |
using CustomRendererTest.iOS.Renderers; | |
using UIKit; | |
using Xamarin.Forms; | |
using Xamarin.Forms.Platform.iOS; | |
[assembly: ExportRenderer (typeof(CustomLabel), typeof(CustomLabelRenderer))] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using AltBeaconOrg.BoundBeacon; | |
using AltBeaconOrg.BoundBeacon.Powersave; | |
using AltBeaconOrg.BoundBeacon.Startup; | |
using Android.App; | |
using Android.Runtime; | |
namespace CustomApp.Droid | |
{ | |
[Application] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://forums.xamarin.com/discussion/comment/144204/#Comment_144204 | |
// Projects is an ObservableCollection | |
<ListView x:Name="projectListView" | |
ItemsSource="{Binding Projects}" | |
SelectedItem="{Binding SelectedProject, Mode=TwoWay}"> | |
<ListView.ItemTemplate> | |
<DataTemplate> | |
<TextCell x:Name="textCell" | |
Text="{Binding Name}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using Xamarin.Forms; | |
namespace App | |
{ | |
public class ConcreteTypeConverter<T> | |
: JsonConverter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// RoundRectLabel.cs | |
using System; | |
using Xamarin.Forms; | |
namespace App | |
{ | |
public class RoundRectLabel : Label | |
{ | |
public static readonly BindableProperty BorderColorProperty = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SkinnableApp/App.xaml | |
<?xml version="1.0" encoding="UTF-8"?> | |
<Application xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SkinnableApp.App"> | |
<Application.Resources> | |
<ResourceDictionary> | |
</ResourceDictionary> | |
</Application.Resources> | |
</Application> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<SearchBar x:Name="search" Placeholder="Search" | |
SearchCommandParameter="{Binding Text, Source={x:Reference search}}" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://forums.xamarin.com/discussion/comment/129611/#Comment_129611 | |
public interface IPageWithResult<out T> | |
{ | |
T PageResult { get; } | |
} | |
public static class PageExtensions | |
{ | |
public static Task<TResult> ShowModalAsync<TPage, TResult>(this TPage page) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://forums.xamarin.com/discussion/comment/89964/#Comment_89964 | |
namespace Core.Converters | |
{ | |
public class ByteArrayToImageSource : IValueConverter | |
{ | |
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) | |
{ | |
if (value == null || value is DBNull) | |
return null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.InteropServices; | |
namespace Circuit | |
{ | |
public static class Dsp | |
{ | |
class FftSetupD : IDisposable | |
{ | |
public IntPtr Handle; |