This file contains hidden or 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
{"lastUpload":"2017-09-19T09:22:00.062Z","extensionVersion":"v2.8.3"} |
This file contains hidden or 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
{"lastUpload":"2018-05-23T08:41:34.026Z","extensionVersion":"v2.9.2"} |
This file contains hidden or 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
var gulp = require('gulp'); | |
var runSequence = require('run-sequence'); | |
var del = require('del'); | |
var vinylPaths = require('vinyl-paths'); | |
var to5 = require('gulp-6to5'); | |
var jshint = require('gulp-jshint'); | |
var stylish = require('jshint-stylish'); | |
var yuidoc = require("gulp-yuidoc"); | |
var changelog = require('conventional-changelog'); | |
var assign = Object.assign || require('object.assign'); |
This file contains hidden or 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.ColumnDefinitions> | |
<ColumnDefinition /> | |
<ColumnDefinition /> | |
<ColumnDefinition /> | |
</Grid.ColumnDefinitions> | |
<TextBlock Grid.Row="0" Style="{StaticResource FormLabelStyle}" Text="Name"/> | |
<TextBox Grid.Row="0" Grid.Column="1" Text="{Binding Name, Mode=TwoWay}" common:Validation.Property="Name" common:Validation.ValidationPlaceholder="{Binding ElementName=NameValidation}" common:Validation.DataContext="{Binding}" /> |
This file contains hidden or 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
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:Views="using:Byteflux.Views"> | |
<SolidColorBrush x:Key="ValidationErrorBrush" Color="Orange"/> | |
<Style x:Key="ValidationTextStyle" TargetType="TextBlock" BasedOn="{StaticResource ItemTextStyle}"> | |
<Setter Property="HorizontalAlignment" Value="Left"/> | |
<Setter Property="VerticalAlignment" Value="Top"/> | |
<Setter Property="Foreground" Value="{StaticResource ValidationErrorBrush}"/> |
This file contains hidden or 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.Collections; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.ComponentModel.DataAnnotations; | |
using System.Linq; | |
using System.Runtime.CompilerServices; | |
class ViewModel : INotifyDataErrorInfo, INotifyPropertyChanged | |
{ |
This file contains hidden or 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.Collections.Generic; | |
using System.ComponentModel; | |
using System.Linq; | |
using Windows.UI.Xaml; | |
using Windows.UI.Xaml.Controls; | |
public static class Validation | |
{ | |
#region Property |
This file contains hidden or 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 void OpenUrlInDefaultBrowser(string url) | |
{ | |
if(UacHelper.IsUacEnabled && UacHelper.IsProcessElevated) | |
{ | |
var processStartInfo = new ProcessStartInfo("explorer.exe", url); | |
processStartInfo.UseShellExecute = true, | |
processStartInfo.Verb = "runas" | |
Process.Start(processStartInfo); | |
} | |
else |