Created
December 28, 2020 20:23
-
-
Save norton287/683f78ad01650cd9edca55744042259a to your computer and use it in GitHub Desktop.
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
<?xml version="1.0" encoding="utf-8" ?> | |
<Application xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:d="http://xamarin.com/schemas/2014/forms/design" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:xForms="clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms" | |
xmlns:buttons="clr-namespace:Syncfusion.XForms.Buttons;assembly=Syncfusion.Buttons.XForms" | |
xmlns:border="clr-namespace:Syncfusion.XForms.Border;assembly=Syncfusion.Core.XForms" | |
xmlns:textInputLayout="clr-namespace:Syncfusion.XForms.TextInputLayout;assembly=Syncfusion.Core.XForms" | |
xmlns:comboBox="clr-namespace:Syncfusion.XForms.ComboBox;assembly=Syncfusion.SfComboBox.XForms" | |
mc:Ignorable="d" | |
x:Class="SyncFusionTestApp.App"> | |
<Application.Resources> | |
<ResourceDictionary> | |
<FontImageSource x:Key="Clear" | |
FontFamily="FontIcon" | |
Glyph="" | |
Size="20" | |
Color="White" /> | |
<FontImageSource x:Key="Refresh" | |
Glyph="" | |
Size="20" | |
Color="White" | |
FontFamily="FontIcon" /> | |
<FontImageSource x:Key="Delete" | |
FontFamily="FontIcon" | |
Glyph="" | |
Size="25" | |
Color="White" /> | |
<FontImageSource x:Key="Print" | |
FontFamily="FontIcon" | |
Glyph="" | |
Size="20" | |
Color="White" /> | |
<FontImageSource x:Key="Account" | |
FontFamily="FontIcon" | |
Glyph="" | |
Size="20" | |
Color="White" /> | |
<FontImageSource x:Key="Cart" | |
FontFamily="FontIcon" | |
Glyph="" | |
Size="20" | |
Color="White" /> | |
<FontImageSource x:Key="Home" | |
FontFamily="FontIcon" | |
Glyph="" | |
Size="20" | |
Color="White" /> | |
<FontImageSource x:Key="Section" | |
FontFamily="FontIcon" | |
Glyph="" | |
Size="20" | |
Color="White" /> | |
<FontImageSource x:Key="List" | |
FontFamily="FontIcon" | |
Glyph="" | |
Size="20" | |
Color="White" /> | |
<FontImageSource x:Key="Info" | |
FontFamily="FontIcon" | |
Glyph="" | |
Size="20" | |
Color="White" /> | |
<FontImageSource x:Key="Help" | |
FontFamily="faregular" | |
Glyph="" | |
Size="20" | |
Color="White" /> | |
<FontImageSource x:Key="Options" | |
FontFamily="FontIcon" | |
Glyph="" | |
Size="20" | |
Color="White" /> | |
<FontImageSource x:Key="CacheImage" | |
FontFamily="FontIcon" | |
Glyph="" | |
Size="20" | |
Color="White" /> | |
<FontImageSource x:Key="Category" | |
FontFamily="FontIcon" | |
Glyph="" | |
Size="20" | |
Color="White" /> | |
<FontImageSource x:Key="ListName" | |
FontFamily="FontIcon" | |
Glyph="" | |
Size="20" | |
Color="White" /> | |
<FontImageSource x:Key="Camera" | |
FontFamily="FontIcon" | |
Glyph="" | |
Size="20" | |
Color="White" /> | |
<FontImageSource x:Key="Share" | |
FontFamily="FontIcon" | |
Glyph="" | |
Size="20" | |
Color="White" /> | |
<FontImageSource x:Key="Email" | |
FontFamily="FontIcon" | |
Glyph="" | |
Size="20" | |
Color="White" /> | |
<FontImageSource x:Key="Excel" | |
FontFamily="faregular" | |
Glyph="" | |
Size="20" | |
Color="White" /> | |
<FontImageSource x:Key="Database" | |
FontFamily="fasolid" | |
Glyph="" | |
Size="20" | |
Color="White" /> | |
<FontImageSource x:Key="Table" | |
FontFamily="fasolid" | |
Glyph="" | |
Size="20" | |
Color="White" /> | |
<FontImageSource x:Key="Hamburger" | |
FontFamily="fasolid" | |
Glyph="" | |
Size="20" | |
Color="White" /> | |
<FontImageSource x:Key="Chart" | |
FontFamily="fasolid" | |
Glyph="" | |
Size="20" | |
Color="White" /> | |
<Style TargetType="NavigationPage" | |
ApplyToDerivedTypes="True"> | |
<Setter Property="BarBackgroundColor" Value="DodgerBlue"/> | |
<Setter Property="BarTextColor" Value="White" /> | |
<Setter Property="BackgroundColor" Value="GhostWhite" /> | |
</Style> | |
<Style TargetType="ContentPage" | |
ApplyToDerivedTypes="True"> | |
<Setter Property="BackgroundColor" | |
Value="GhostWhite" /> | |
</Style> | |
<Style TargetType="buttons:SfChip"> | |
<Setter Property="FontFamily" Value="RobotoRegular" /> | |
<Setter Property="HasShadow" Value="True" /> | |
<Setter Property="ShadowColor" Value="DarkSlateGray" /> | |
<Setter Property="SelectionIndicatorColor" Value="White" /> | |
<Setter Property="FontSize" Value="16" /> | |
</Style> | |
<Style TargetType="buttons:SfButton"> | |
<Setter Property="FontSize" Value="16" /> | |
<Setter Property="FontFamily" Value="RobotoRegular" /> | |
<Setter Property="CornerRadius" Value="5" /> | |
<Setter Property="BackgroundColor" Value="DodgerBlue" /> | |
<Setter Property="HasShadow" Value="True" /> | |
<Setter Property="ShadowColor" Value="Gray" /> | |
<Setter Property="TextColor" Value="White" /> | |
<Setter Property="HorizontalTextAlignment" Value="Center" /> | |
<Setter Property="VerticalTextAlignment" Value="Center" /> | |
<Setter Property="IsTabStop" Value="True" /> | |
</Style> | |
<Style TargetType="BoxView"> | |
<Setter Property="BackgroundColor" | |
Value="SlateGray" /> | |
<Setter Property="HeightRequest" | |
Value="2" /> | |
<Setter Property="HorizontalOptions" | |
Value="FillAndExpand" /> | |
<Setter Property="Margin" | |
Value="10,0,10,0" /> | |
</Style> | |
<Style TargetType="ListView"> | |
<Setter Property="BackgroundColor" Value="Transparent" /> | |
<Setter Property="SeparatorColor" Value="Black" /> | |
<Setter Property="Footer" Value="" /> | |
</Style> | |
<Style TargetType="xForms:SfListView"> | |
<Setter Property="AutoFitMode" | |
Value="DynamicHeight" /> | |
<Setter Property="ColumnSpacing" | |
Value="15" /> | |
<Setter Property="HorizontalOptions" | |
Value="FillAndExpand" /> | |
<Setter Property="VerticalOptions" | |
Value="FillAndExpand" /> | |
</Style> | |
<Style TargetType="Entry"> | |
<Setter Property="BackgroundColor" | |
Value="Transparent" /> | |
<Setter Property="PlaceholderColor" | |
Value="Black" /> | |
<Setter Property="IsTextPredictionEnabled" | |
Value="True" /> | |
<Setter Property="TextColor" | |
Value="Black" /> | |
<Setter Property="FontSize" | |
Value="16" /> | |
<Setter Property="FontFamily" | |
Value="RobotoBold" /> | |
<Setter Property="IsTabStop" | |
Value="True" /> | |
</Style> | |
<Style TargetType="border:SfBorder"> | |
<Setter Property="CornerRadius" | |
Value="5" /> | |
<Setter Property="BorderWidth" | |
Value="2" /> | |
</Style> | |
<Style TargetType="Label"> | |
<Setter Property="FontSize" | |
Value="16" /> | |
<Setter Property="FontFamily" | |
Value="RobotoRegular" /> | |
<Setter Property="TextColor" | |
Value="White" /> | |
</Style> | |
<Style TargetType="comboBox:SfComboBox"> | |
<Setter Property="FontFamily" | |
Value="RobotoBold" /> | |
<Setter Property="TextSize" | |
Value="16" /> | |
<Setter Property="IsTabStop" | |
Value="True" /> | |
<Setter Property="DropDownItemFontFamily" | |
Value="RobotoRegular" /> | |
</Style> | |
<Style TargetType="textInputLayout:LabelStyle"> | |
<Setter Property="FontFamily" | |
Value="RobotoBold" /> | |
</Style> | |
</ResourceDictionary> | |
</Application.Resources> | |
</Application> |
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 SyncFusionTestApp.Views; | |
using Xamarin.Forms; | |
[assembly: ExportFont("Roboto-Regular.ttf", Alias = "PickerRegular")] | |
[assembly: ExportFont("Roboto-Bold.ttf", Alias = "PickerBold")] | |
[assembly: ExportFont("Roboto-Regular.ttf", Alias = "RobotoRegular")] | |
[assembly: ExportFont("Roboto-Bold.ttf", Alias = "RobotoBold")] | |
[assembly: ExportFont("Segoe_MDL2_Assets.ttf", Alias = "FontIcon")] | |
[assembly: ExportFont("fa-solid-900.ttf", Alias = "fasolid")] | |
[assembly: ExportFont("fa-regular-400.ttf", Alias = "faregular")] | |
namespace SyncFusionTestApp | |
{ | |
public partial class App : Application | |
{ | |
public App() | |
{ | |
InitializeComponent(); | |
MainPage = new MDPTest(); | |
} | |
protected override void OnStart() | |
{ | |
} | |
protected override void OnSleep() | |
{ | |
} | |
protected override void OnResume() | |
{ | |
} | |
} | |
} |
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
<chip:SfButton x:Name="SaveButton" | |
BackgroundColor="DodgerBlue" | |
VerticalOptions="Center" | |
HorizontalOptions="FillAndExpand" | |
HeightRequest="38" | |
Grid.Row="0" | |
Grid.Column="1"> | |
<chip:SfButton.Content> | |
<Grid HorizontalOptions="Center" VerticalOptions="Center"> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="40" /> | |
<ColumnDefinition Width="*" /> | |
</Grid.ColumnDefinitions> | |
<Grid Padding="10,0,5,0"> | |
<Label Text="" | |
HorizontalTextAlignment="Center" | |
VerticalOptions="Center" | |
VerticalTextAlignment="Center" | |
HorizontalOptions="Start" | |
FontSize="19" | |
TextColor="White" | |
FontFamily="FontIcon"> | |
</Label> | |
</Grid> | |
<Grid Grid.Column="1"> | |
<Label HorizontalOptions="Start" | |
HorizontalTextAlignment="Start" | |
TextColor="White" | |
VerticalTextAlignment="Center" | |
VerticalOptions="Center" | |
LineBreakMode="NoWrap" | |
Text="Save"> | |
</Label> | |
</Grid> | |
</Grid> | |
</chip:SfButton.Content> | |
</chip:SfButton> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment