Skip to content

Instantly share code, notes, and snippets.

View Char0394's full-sized avatar

Charlin Agramonte Char0394

View GitHub Profile
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage >
<VerticalStackLayout>
<Label Text="Medium Bold Label" StyleClass="Small, Bold"/>
<Label Text="Medium Normal Label" StyleClass="Medium, Normal"/>
<Label Text="Small Bold Label" StyleClass="Small, Bold"/>
<Label Text="Small Normal Label" StyleClass="Small, Normal"/>
</VerticalStackLayout>
</ContentPage>
<ResourceDictionary xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
<Style TargetType="Label" Class="Small">
<Setter Property="FontSize" Value="14" />
</Style>
<Style TargetType="Label" Class="Medium">
<Setter Property="FontSize" Value="16" />
</Style>
<ResourceDictionary xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
<Style TargetType="Label" Class="Small">
<Setter Property="FontSize" Value="14" />
</Style>
<Style TargetType="Label" Class="Medium">
<Setter Property="FontSize" Value="16" />
</Style>
</ResourceDictionary>
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage>
<VerticalStackLayout>
<Label Text="Medium Bold Label" Style="{StaticResource MediumBoldLabel}"/>
<Label Text="Medium Normal Label" Style="{StaticResource MediumNormalLabel}"/>
<Label Text="Small Bold Label" Style="{StaticResource SmallBoldLabel}"/>
<Label Text="Small Normal Label" Style="{StaticResource SmallNormalLabel}"/>
</VerticalStackLayout>
</ContentPage>
<ResourceDictionary xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
<Style TargetType="Label" x:Key="SmallLabel">
<Setter Property="FontSize" Value="14" />
</Style>
<Style TargetType="Label" x:Key="MediumLabel">
<Setter Property="FontSize" Value="16" />
</Style>
<ResourceDictionary xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
<Style TargetType="Label" x:Key="SmallLabel">
<Setter Property="FontSize" Value="14" />
</Style>
<Style TargetType="Label" x:Key="MediumLabel">
<Setter Property="FontSize" Value="16" />
</Style>
using System;
using System.Runtime.CompilerServices;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace SalesHub.Framework.Localization
{
[ContentProperty("Text")]
public class LocalizerTranslateExtension : BindableObject, IMarkupExtension<BindingBase>
{
[ContentProperty("Text")]
public class TranslateExtension : IMarkupExtension<bindingbase>
{
public string Text { get; set; }
object IMarkupExtension.ProvideValue(IServiceProvider serviceProvider, ILocalizer localizer)
{
return ProvideValue(serviceProvider, localizer);
}
public BindingBase ProvideValue(IServiceProvider serviceProvider, ILocalizer localizer)
<?xml version="1.0" encoding="UTF-8"?>
<view:BaseProductEntryCardView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="SalesHub.Framework.Components.Products.ProductEntryTruckLoadForecastCardView"
xmlns:view="clr-namespace:SalesHub.Framework.Components.Products"
VerticalOptions="Start"
xmlns:forms="clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms">
<ContentView.ControlTemplate>
<ControlTemplate x:Key="Page">
<?xml version="1.0" encoding="utf-8" ?>
<local:BaseQuickTourPage
xmlns:local="clr-namespace:QuickTourXFSample.Views.QuickTourSteps"
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:Controls="clr-namespace:QuickTourXFSample.Controls"
x:Class="QuickTourXFSample.Views.QuickTourSteps.QuickTourStep3PopUp" >
<StackLayout Padding="10,130,10,0">
<Controls:AnimatedView>
<Frame HorizontalOptions="FillAndExpand"