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
<CheckBox x:Class="WpfApp1.ImageCheckBox" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:local="clr-namespace:WpfApp1" | |
Name="RootCheckBox" | |
mc:Ignorable="d" | |
d:DesignHeight="450" d:DesignWidth="800"> | |
<CheckBox.Template> |
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 Android.Content; | |
using Mobile.Core.Droid.NativeImplementations; | |
using Mobile.Core.Interfaces; | |
using Xamarin.Forms; | |
[assembly: Xamarin.Forms.Dependency(typeof(DocumentViewer))] | |
namespace Mobile.Core.Droid.NativeImplementations | |
{ | |
public class DocumentViewer : IDocumentViewer | |
{ |
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
<Window x:Class="WpfApplication16.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:local="clr-namespace:WpfApplication16" | |
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" | |
mc:Ignorable="d" | |
Title="MainWindow" Height="350" Width="525"> |
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
[XamlCompilation(XamlCompilationOptions.Compile)] | |
public partial class LoginPage : ContentPage | |
{ | |
public LoginPage() | |
{ | |
InitializeComponent(); | |
NavigationPage.SetHasNavigationBar(this, false); | |
BindingContext = Activator.CreateInstance(Globals.LoginPageViewModel); |
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
// For users without passwords | |
public class BaseRegisterVm | |
{ | |
public Constants.AuthenticationType UserType { get; set; } | |
public BaseRegisterVm() | |
{ | |
UserType = Constants.AuthenticationType.Windows; | |
} |
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
<StackLayout Orientation="Vertical" Margin="0,10,0,0"> | |
<Label Text="FUNCTIONS" FontSize="Micro" FontAttributes="Bold" HorizontalOptions="Center" Margin="0,0,0,2" /> | |
<Frame Margin="10,0,10,10" Padding="20,5"> | |
<ListView ItemsSource="{Binding MenuItems}" Footer="{Binding}" HasUnevenRows="True"> | |
<ListView.Behaviors> | |
<behavior:ListBoxDeselectSelectedItemBehavior /> |
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
[assembly: Xamarin.Forms.ExportRenderer(typeof(LandscapePage), typeof(LandscapePageRenderer))] | |
namespace Mobile.Core.Droid.Renderers | |
{ | |
public class LandscapePageRenderer : PageRenderer | |
{ | |
protected override void OnElementChanged(ElementChangedEventArgs<Page> e) | |
{ | |
base.OnElementChanged(e); | |
((FormsAppCompatActivity)Context).RequestedOrientation = ScreenOrientation.Landscape; |
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 Android.App; | |
using Android.Content.PM; | |
using Android.OS; | |
using HockeyApp.Android; | |
using FFImageLoading.Forms.Droid; | |
using HockeyApp.Android.Utils; | |
using Plugin.Media; | |
using Plugin.Permissions; | |
namespace Merrit.Droid |
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
public class RepeaterView : StackLayout | |
{ | |
public static readonly BindableProperty ItemTemplateProperty = | |
BindableProperty.Create("ItemTemplate", typeof(DataTemplate), typeof(RepeaterView)); | |
public static readonly BindableProperty ItemsSourceProperty = | |
BindableProperty.Create("ItemsSource", typeof(IEnumerable), typeof(RepeaterView), Enumerable.Empty<object>(), BindingMode.OneWay, null, ItemsChanged); | |
public IEnumerable ItemsSource | |
{ |