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.Threading.Tasks; | |
using Xamarin.Forms; | |
namespace NewYoutube.Services | |
{ | |
public interface IPageService | |
{ | |
Task PushAsync(Page page); | |
Task PushModalAsync(Page 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
<Label Text="{Binding LocationLine}" FontSize="Small"> | |
<Label.Triggers > | |
<DataTrigger TargetType="Label" Binding="{Binding LocationLine}" Value="NA"> | |
<Setter Property="TextColor" Value="Gray"/> | |
</DataTrigger> | |
</Label.Triggers> | |
</Label> | |
<Label Text="{Binding ContainerLine}" FontSize="Small"> | |
<Label.Triggers> | |
<DataTrigger TargetType="Label" Binding="{Binding ContainerLine}" Value="NA"> |
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
private string _fullname; | |
public string FullName | |
{ | |
protected set | |
{ | |
if (_fullname != value) | |
{ | |
_fullname = value; | |
OnPropertyChanged("FullName"); | |
} |
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
<?xml version="1.0" encoding="utf-8"?> | |
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:mainn" | |
xmlns:accordion="clr-namespace:Syncfusion.XForms.Accordion;assembly=Syncfusion.Expander.XForms" | |
x:Class="mainn.MainPage" | |
xmlns:vm="clr-namespace:mainn.ViewModels"> | |
<ContentPage.Resources> | |
<ResourceDictionary> | |
<vm:MainViewModel x:Key="vm"/> | |
</ResourceDictionary> | |
</ContentPage.Resources> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:mainn" xmlns:accordion="clr-namespace:Syncfusion.XForms.Accordion;assembly=Syncfusion.Expander.XForms" | |
x:Class="mainn.MainPage" | |
xmlns:vm="clr-namespace:mainn.ViewModels"> | |
<ContentPage.Resources> | |
<ResourceDictionary> | |
<vm:MainViewModel x:Key="vm"/> | |
</ResourceDictionary> | |
</ContentPage.Resources> |
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.ComponentModel; | |
using System.Runtime.CompilerServices; | |
using Xamarin.Forms; | |
namespace EntryCompleteEvent | |
{ | |
public class MyViewModel : INotifyPropertyChanged | |
{ | |
public MyViewModel() | |
{ |
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.Reflection; | |
using System.Windows.Input; | |
using Xamarin.Forms; | |
namespace EntryCompleteEvent | |
{ | |
public class EntryCompletedBehavior : Behavior<Entry> | |
{ | |
protected override void OnAttachedTo(Entry bindable) |
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
// Retrieve installation from local storage and | |
// create new one if it does not exist | |
var installation = SettingsHelper.Installation; | |
if (installation == null) | |
{ | |
installation = new Installation | |
{ | |
InstallationId = Guid.NewGuid().ToString(), | |
Platform = NotificationPlatform.Wns, | |
PushChannel = pushNotificationChannel.ToString(), |
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; | |
namespace myBlank | |
{ | |
class Program | |
{ | |
private static object a; | |
static void Main(String[] args) |