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 Converter : IValueConverter | |
{ | |
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) | |
{ | |
return !(bool)value; | |
} | |
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) | |
{ | |
return !(bool)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
<ContentView.Content> | |
<StackLayout VerticalOptions="Center" HorizontalOptions="Center"> | |
<Image Source="empty.png"/> | |
<Label Text="There is nothing in here." FontSize="Medium" TextColor="{DynamicResource TextColorLight}"/> | |
</StackLayout> | |
</ContentView.Content> |
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
<dict> | |
<key>CFBundleIcons</key> | |
<dict> | |
<key>CFBundleAlternateIcons</key> | |
<dict> | |
<key>apple</key> | |
<dict> | |
<key>CFBundleIconFiles</key> | |
<array> | |
<string>apple</string> |
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
[assembly: Dependency(typeof(ChangeIconService))] | |
namespace XamarinFormsChangeIcon.iOS.Helpers | |
{ | |
public class ChangeIconService : IChangeIconService | |
{ | |
NSError error = new NSError(); | |
public ChangeIconService() | |
{ | |
} |
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
<StackLayout VerticalOptions="Center"> | |
<renderers:CustomPicker DoneButtonText="My Custom Done Text" CancelButtonText="My Custom Cancel Text" /> | |
<renderers:CustomPicker DoneButtonText="My Other Custom Done Text" CancelButtonText="My Other Custom Cancel Text"/> | |
</StackLayout> |
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 CustomPickerRenderer : PickerRenderer | |
{ | |
protected override void OnElementChanged(ElementChangedEventArgs<Picker> e) | |
{ | |
base.OnElementChanged(e); | |
if (e.NewElement == null) return; | |
var customPicker = e.NewElement as CustomPicker; | |
if (Control == null) | |
{ | |
SetNativeControl(new UITextField |
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 CustomPickerRenderer : PickerRenderer | |
{ | |
AlertDialog _dialog; | |
IElementController ElementController => Element as IElementController; | |
CustomPicker customPicker; | |
public CustomPickerRenderer(Context context) : base(context) | |
{ | |
} | |
protected override void OnElementChanged(ElementChangedEventArgs<Picker> 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
public class CustomPicker : Picker | |
{ | |
public string DoneButtonText | |
{ | |
get | |
{ | |
return (string)GetValue(DoneButtonTextProperty); | |
} | |
set | |
{ |
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
{ | |
"IsEncrypted": false, | |
"Values": { | |
"AzureWebJobsStorage": "UseDevelopmentStorage=true", | |
"AzureWebJobsDashboard": "UseDevelopmentStorage=true" | |
}, | |
"ConnectionStrings": { | |
"MyConnectionString": "<sqlclient-connection-string>" | |
} | |
} |
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
using System; | |
using System.Configuration; | |
using System.Data.SqlClient; | |
using System.Threading.Tasks; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Azure.WebJobs.Host; | |
namespace MyFunctionApp | |
{ | |
public static class DeactivateSomething |