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.IO; | |
using System.Reactive.Subjects; | |
using System.Threading.Tasks; | |
using Android.App; | |
using Android.Content; | |
using Native = Android.App.DownloadManager; | |
namespace Shiny.Net.Http |
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 Startup { | |
private string clientCertPath; | |
} | |
public void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddDbContext<DataAccess.ClientDatabaseContext>(options => | |
options.UseNpgsql(this.connectionString, opt => { | |
opt.RemoteCertificateValidationCallback(RemoteCertificateValidation); | |
opt.UseAdminDatabase("defaultdb"); |
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
<TextBox TextChanged="TextBox_TextChanged" /> | |
<telerik:RadGridView x:Name="grid" CanUserSearch="False" /> |
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 | |
<ContentView.ControlTemplate> | |
<ControlTemplate> | |
<telerikPrimitives:RadBorder CornerRadius="2" BackgroundColor="{TemplateBinding BackgroundColor}"> | |
<Grid Margin="{TemplateBinding Padding}"> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="Auto" /> | |
<RowDefinition Height="*" /> | |
<RowDefinition Height="Auto" /> | |
</Grid.RowDefinitions> |
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
<ContentPage xmlns:telerikPrimitives="clr-namespace:Telerik.XamarinForms.Primitives;assembly=Telerik.XamarinForms.Primitives" | |
xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input" | |
Title="Contoso"> | |
<ContentPage.ToolbarItems> | |
<ToolbarItem Text="Menu" Clicked="OpenPopup" /> | |
</ContentPage.ToolbarItems> | |
<telerikPrimitives:RadPopup.Popup> | |
<telerikPrimitives:RadPopup x:Name="popup" IsModal="false" Placement="Right" | |
VerticalOffset="10" OutsideBackgroundColor="#6F000000"> |
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
<Grid> | |
<Grid.Resources> | |
<Style TargetType="{x:Type telerik:GridViewCell}" BasedOn="{StaticResource GridViewCellStyle}"> | |
<Setter Property="Background" Value="#ffcc00"/> | |
</Style> | |
<Style TargetType="{x:Type telerik:GridViewHeaderCell}" BasedOn="{StaticResource GridViewHeaderCellStyle}"> | |
<Setter Property="Background" Value="LimeGreen"/> | |
<Setter Property="Foreground" Value="Cyan"/> | |
</Style> | |
</Grid.Resources> |
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 MainViewModel : ViewModelBase | |
{ | |
public MainViewModel(IEmployeeService employeeService) | |
{ | |
IQueryable query = _employeeService.GetEmployees(); | |
this.Employees = new Telerik.Windows.Data.VirtualQueryableCollectionView(query) { LoadSize = 20 }; | |
} | |
public Telerik.Windows.Data.VirtualQueryableCollectionView Employees { get; } | |
} |
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 MainViewModel : ViewModelBase | |
{ | |
private ObservableCollection<Employee> _data; | |
public ObservableCollection<Employee> Data | |
{ | |
get => _data; | |
set | |
{ | |
if (_data == 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
<Application> | |
<Application.Resources> | |
<ResourceDictionary> | |
<ResourceDictionary.MergedDictionaries> | |
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.xaml" /> | |
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Data.xaml" /> | |
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.GridView.xaml" /> | |
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Input.xaml" /> | |
</ResourceDictionary.MergedDictionaries> | |
</ResourceDictionary> |
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 CustomActions | |
{ | |
[CustomAction] | |
public static ActionResult BuildIndex(Session session) | |
{ | |
session.Log("Begin building index"); | |
try | |
{ | |
EmbeddedAssembly.Load(string.Format("BuildIndexAction.{0}.SQLite.Interop.dll", Environment.Is64BitProcess ? "x64" : "x86"), "SQLite.Interop.dll"); |
NewerOlder