View TestGist1.js
var gist = function(userName, gistId){ | |
return 'https://gist.github.com/' + userName + '/' + gistId + '.js'; | |
} |
View SwaggerUIOAuth2MiddlewarwStartup.cs
public void ConfigureServices(IServiceCollection services) | |
{ | |
// Other settings | |
services | |
.AddSwaggerGen(c => | |
{ | |
// Other settings | |
c.AddSecurityDefinition("oauth2", new OAuth2Scheme | |
{ | |
Type = "oauth2", |
View SwaggerUIOAuth2HeaderStartup.cs
public void ConfigureServices(IServiceCollection services) | |
{ | |
services | |
.AddSwaggerGen(c => | |
{ | |
c.OperationFilter<AddAuthorizationHeaderParameterOperationFilter>(); | |
}); | |
} | |
/// <summary> |
View UpdateLayout.cshtml
// If using tag helpers | |
<c1-styles theme="material" /> | |
// If using html helpers | |
@Html.C1().Styles().Theme("material") |
View materialformat.txt
material[.{{primary_colour}}-{{secondary_colour}}] | |
example: | |
material | |
material.indigo-pink | |
material.green-red |
View UpdateLayout.cshtml
<script defer src="https://code.getmdl.io/1.1.1/material.min.js"></script> |
View UpdateLayout.cshtml
<link rel="stylesheet" href="https://code.getmdl.io/1.1.1/material.deep_purple-pink.min.css"> | |
<link rel="stylesheet" href="http://cdn.wijmo.com/5.latest/styles/themes/material/wijmo.theme.material.deep_purple-pink.min.css" /> |
View UpdateLayout.cshtml
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> |
View UIHelper.cs
/// <summary> | |
/// Finds a Child of a given item in the visual tree. | |
/// </summary> | |
/// <param name="parent">A direct parent of the queried item.</param> | |
/// <typeparam name="T">The type of the queried item.</typeparam> | |
/// <param name="childName">x:Name or Name of child. </param> | |
/// <returns>The first parent item that matches the submitted type parameter. | |
/// If not matching item can be found, | |
/// a null parent is being returned.</returns> | |
/// Usage: |
View GcImagingOperations.cs
using System; | |
using System.IO; | |
using System.Drawing; | |
using GrapeCity.Documents.Drawing; | |
using GrapeCity.Documents.Text; | |
using GrapeCity.Documents.Imaging; | |
namespace GCImagingAWSLambdaS3 | |
{ | |
public class GcImagingOperations | |
{ |
OlderNewer