Skip to content

Instantly share code, notes, and snippets.

View seansparkman's full-sized avatar

Sean Sparkman seansparkman

View GitHub Profile
<ContentPage.BindingContext>
<vm:AboutViewModel />
</ContentPage.BindingContext>
<ContentPage.Behaviors>
<behaviors:EventToCommandBehavior Command="{Binding LoadCommand}" EventName="Appearing" />
<behaviors:EventToCommandBehavior Command="{Binding AnotherLoadCommand}" EventName="Appearing" />
<behaviors:EventToCommandBehavior Command="{Binding UnloadCommand}" EventName="Disappearing" />
</ContentPage.Behaviors>
@seansparkman
seansparkman / ContentPageRender.cs
Last active June 19, 2019 09:09
Fix for Xamarin Forms Shell UseSafeAreaInsets Bug
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CommonAlly.iOS.Controls;
using Foundation;
using UIKit;
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;
9 + 3 * 3 + 1 * 3 / (6 * 3 * 0)
3> EForms.iOS -> C:\Users\seans\Desktop\BBQMVP-bbqmvp-mobile-fbc92223b190\Lib\EForms\EForms.iOS\bin\iPhone\Debug\EForms.iOS.dll
2>C:\Users\seans\Desktop\BBQMVP-bbqmvp-mobile-fbc92223b190\Lib\Bequeathit.SE\Bequeathit.SE.iOS\Src\SESceneView.cs(72,13,72,17): warning CS0162: Unreachable code detected
2> Bequeathit.SE.iOS -> C:\Users\seans\Desktop\BBQMVP-bbqmvp-mobile-fbc92223b190\Lib\Bequeathit.SE\Bequeathit.SE.iOS\bin\Debug\Bequeathit.SE.iOS.dll
4> Media.Plugin.iOS -> C:\Users\seans\Desktop\BBQMVP-bbqmvp-mobile-fbc92223b190\Lib\Media.Plugin\Media.Plugin.iOSUnified\bin\iPhone\Debug\Media.Plugin.dll
5>------ Build started: Project: Bequeathit.iOS, Configuration: Debug iPhoneSimulator ------
5> Generated session id: 30011204cd190cce862023cba1ce3220
5> Generated build app name: BequeathitiOS
5> Connecting to Mac server Seans-MacBook-Pro.local...
System.Net.Mqtt.Client.ClientPacketListener Information: 0 : [2016-03-08 17:38:33.0413] Client Build401145 - Dispatching Publish message to flow PublishReceiverFlow and topic xvs/Build/4.0.1.145/copy-item/BequeathitiOS/3001120/29 × 29.png
System.Net.Mqtt.Client.Client Information: 0 : [2016-03-08 17:38:33.0522] Client Build401145 - An application message for topic xvs/Build/4.0.1.145/copy-item/BequeathitiOS/3001120/29 × 29.png was received
Xamarin.Messaging.Client.MessageHandlerManager Error: 0 : [2016-03-08 17:38:33.1103] An error occurred while handling a request of type Xamarin.Messaging.Build.Contracts.CopyItemMessage
System.ArgumentOutOfRangeException: Unexpected BsonType value: 110
Parameter name: type
at Newtonsoft.Json.Bson.BsonReader.ReadType (BsonType type) <0x3a27058 + 0x0069b> in <filename unknown>:0
at Newtonsoft.Json.Bson.BsonReader.ReadNormal () <0x32ca128 + 0x000d7> in <filename unknown>:0
at Newtonsoft.Json.Bson.BsonReader.ReadInternal () <0x32c9718 + 0x00033> in <filename unknown>:0
System.Net.Mqtt.Client.ClientPacketListener Information: 0 : [2016-03-08 17:38:33.0413] Client Build401145 - Dispatching Publish message to flow PublishReceiverFlow and topic xvs/Build/4.0.1.145/copy-item/BequeathitiOS/3001120/29 × 29.png
System.Net.Mqtt.Client.Client Information: 0 : [2016-03-08 17:38:33.0522] Client Build401145 - An application message for topic xvs/Build/4.0.1.145/copy-item/BequeathitiOS/3001120/29 × 29.png was received
Xamarin.Messaging.Client.MessageHandlerManager Error: 0 : [2016-03-08 17:38:33.1103] An error occurred while handling a request of type Xamarin.Messaging.Build.Contracts.CopyItemMessage
System.ArgumentOutOfRangeException: Unexpected BsonType value: 110
Parameter name: type
at Newtonsoft.Json.Bson.BsonReader.ReadType (BsonType type) <0x3a27058 + 0x0069b> in <filename unknown>:0
at Newtonsoft.Json.Bson.BsonReader.ReadNormal () <0x32ca128 + 0x000d7> in <filename unknown>:0
at Newtonsoft.Json.Bson.BsonReader.ReadInternal () <0x32c9718 + 0x00033> in <filename unknown>:0
<img src="data:@projectImage.ContentType;base64,@(Convert.ToBase64String(projectImage.ImageBytes))"
style="width: 16px; height: 16px;"
width="16" height="16" />
9 + 3 * 3 + 1 * 3 / (6 * 3 * 0)