This file contains 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
public class ContentViewRoundedCorners : ContentView | |
{ | |
public static readonly BindableProperty CornerRaidusProperty = | |
BindableProperty.Create<ContentViewRoundedCorners, float>(x => x.CornerRadius, 0); | |
public float CornerRadius | |
{ | |
get { return (float) GetValue(CornerRaidusProperty); } | |
set { SetValue(CornerRaidusProperty, value); } | |
} |
This file contains 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
class ContentViewRoundedCornersRenderer : VisualElementRenderer<ContentView> | |
{ | |
private float _cornerRadius; | |
private RectF _bounds; | |
private Path _path; | |
protected override void OnElementChanged(ElementChangedEventArgs<ContentView> e) | |
{ | |
base.OnElementChanged(e); |
This file contains 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
class ContentViewRoundedCornersRenderer : VisualElementRenderer<ContentView> | |
{ | |
protected override void OnElementChanged(ElementChangedEventArgs<ContentView> e) | |
{ | |
base.OnElementChanged(e); | |
if (e.OldElement != null) | |
{ | |
return; | |
} |
This file contains 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
<yournamespace:ContentViewRoundedCorners | |
CornerRadius="10"> | |
<ContentView.Content> | |
<Label TextColor="Blue" | |
Text="Cool Demo Jared" | |
VerticalTextAlignment="Center" HorizontalTextAlignment="Center"></Label> | |
</ContentView.Content> | |
</yournamespace:ContentViewRoundedCorners> |
This file contains 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
#include "curl_client.hpp" | |
#include <folly/FileUtil.h> | |
#include <folly/String.h> | |
#include <proxygen/lib/http/HTTPCommonHeaders.h> | |
#include <proxygen/lib/http/HTTPMessage.h> | |
#include <proxygen/lib/http/session/HTTPUpstreamSession.h> | |
#include <proxygen/lib/ssl/SSLContextConfig.h> | |
using namespace folly; |
This file contains 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
public class ValueConverterGroup : List<IValueConverter>, IValueConverter | |
{ | |
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) | |
{ | |
return this.Aggregate(value, (current, converter) => converter.Convert(current, targetType, parameter, culture)); | |
} | |
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) | |
{ | |
throw new NotImplementedException(); |
This file contains 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
public class BooleanToObjectConverter : BindableObject, IValueConverter | |
{ | |
public static readonly BindableProperty TrueObjectProperty = BindableProperty.Create<BooleanToObjectConverter, Object>(x => x.TrueObject, null); | |
public static readonly BindableProperty FalseObjectProperty = BindableProperty.Create<BooleanToObjectConverter, Object>(x => x.FalseObject, null); | |
public object FalseObject | |
{ | |
get { return GetValue(FalseObjectProperty); } | |
set { SetValue(FalseObjectProperty, value); } | |
} |
This file contains 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
<?xml version="1.0" encoding="utf-8" ?> | |
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
x:Class="LoadingPage" | |
x:Name="ContentPage"> | |
<ContentPage.Content> | |
<AbsoluteLayout> | |
<ContentView Content="{Binding Source={x:Reference ContentPage},Path=MainContent}" | |
HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" | |
AbsoluteLayout.LayoutBounds="0,0,1,1" AbsoluteLayout.LayoutFlags="All"> |
OlderNewer