Skip to content

Instantly share code, notes, and snippets.

View Adam--'s full-sized avatar

Adam Anderson Adam--

View GitHub Profile
@alexlau811
alexlau811 / OverrideFormattedStringExtension.cs
Created March 8, 2015 10:53
Override default FormattedString behaviour to allow custom font to be used in Label of Xamarin.Forms.Android
public static class OverrideFormattedStringExtension
{
//
// Static Methods
//
public static SpannableString ToAttributed(this FormattedString formattedString, Font defaultFont, Color defaultForegroundColor, TextView view)
{
if (formattedString == null)
{
return null;
@refactorsaurusrex
refactorsaurusrex / Open-Solution.psd1
Last active February 1, 2024 03:21
PowerShell function to open the first Visual Studio solution file found within the current directory.
@{
RootModule = 'Open-Solution.psm1'
ModuleVersion = '0.1.0'
GUID = '42f8cad0-c32a-4ccd-9401-de4bdbafdd65'
Author = 'Nick Spreitzer'
FunctionsToExport = @('Open-Solution')
AliasesToExport = @('sln')
}
<ff:CachedImage Source="seattle.jpg" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" Aspect="AspectFill">
<ff:CachedImage.Transformations>
<fftransformations:CornersTransformation
CornersTransformType="BottomRightRounded"
BottomRightCornerSize="22"/>
</ff:CachedImage.Transformations>
</ff:CachedImage>