Solve compile warnings in samples
This commit is contained in:
parent
f7c763e8e2
commit
4131c6ba2c
|
@ -164,7 +164,7 @@ namespace BugSweeper
|
||||||
{
|
{
|
||||||
#if FIX_WINPHONE_BUTTON
|
#if FIX_WINPHONE_BUTTON
|
||||||
|
|
||||||
if (Device.OS == TargetPlatform.WinPhone && !((Button)sender).IsEnabled)
|
if (Device.RuntimePlatform == Device.UWP && !((Button)sender).IsEnabled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -36,7 +36,7 @@ namespace BugSweeper
|
||||||
this.Col = col;
|
this.Col = col;
|
||||||
|
|
||||||
this.BackgroundColor = Color.Yellow;
|
this.BackgroundColor = Color.Yellow;
|
||||||
this.OutlineColor = Color.Blue;
|
this.BorderColor = Color.Blue;
|
||||||
this.Padding = 2;
|
this.Padding = 2;
|
||||||
|
|
||||||
label = new Label {
|
label = new Label {
|
||||||
|
@ -64,7 +64,7 @@ namespace BugSweeper
|
||||||
|
|
||||||
#if FIX_WINDOWS_DOUBLE_TAPS
|
#if FIX_WINDOWS_DOUBLE_TAPS
|
||||||
|
|
||||||
if (Device.OS != TargetPlatform.Windows && Device.OS != TargetPlatform.WinPhone) {
|
if (Device.RuntimePlatform != Device.UWP) {
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ namespace BugSweeper
|
||||||
|
|
||||||
#if FIX_WINDOWS_PHONE_NULL_CONTENT
|
#if FIX_WINDOWS_PHONE_NULL_CONTENT
|
||||||
|
|
||||||
if (Device.OS == TargetPlatform.WinPhone || Device.OS == TargetPlatform.Windows) {
|
if (Device.RuntimePlatform == Device.UWP) {
|
||||||
this.Content = new Label { Text = " " };
|
this.Content = new Label { Text = " " };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -156,7 +156,7 @@ namespace BugSweeper
|
||||||
|
|
||||||
#if FIX_WINDOWS_DOUBLE_TAPS
|
#if FIX_WINDOWS_DOUBLE_TAPS
|
||||||
|
|
||||||
if (Device.OS == TargetPlatform.Windows || Device.OS == TargetPlatform.WinPhone) {
|
if (Device.RuntimePlatform == Device.UWP) {
|
||||||
if (lastTapSingle && DateTime.Now - lastTapTime < TimeSpan.FromMilliseconds (500)) {
|
if (lastTapSingle && DateTime.Now - lastTapTime < TimeSpan.FromMilliseconds (500)) {
|
||||||
OnDoubleTap (sender, args);
|
OnDoubleTap (sender, args);
|
||||||
lastTapSingle = false;
|
lastTapSingle = false;
|
||||||
|
|
|
@ -32,7 +32,7 @@ namespace Xuzzle
|
||||||
this.Padding = new Thickness(3);
|
this.Padding = new Thickness(3);
|
||||||
this.Content = new Frame
|
this.Content = new Frame
|
||||||
{
|
{
|
||||||
OutlineColor = Color.Accent,
|
BorderColor = Color.Accent,
|
||||||
Padding = new Thickness(5, 10, 5, 0),
|
Padding = new Thickness(5, 10, 5, 0),
|
||||||
Content = new StackLayout
|
Content = new StackLayout
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue