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.Linq; | |
using System.Text; | |
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework; | |
using Callisto.OAuth; | |
namespace Callisto.Tests | |
{ | |
[TestClass] |
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
<Page | |
x:Class="CaliburnSettings.AboutView" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:local="using:CaliburnSettings" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
mc:Ignorable="d"> | |
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
protected override void Configure() | |
{ | |
_container = new WinRTContainer(); | |
_container.RegisterWinRTServices(); | |
_container.PerRequest<MyPageViewModel>(); | |
_container.PerRequest<AboutViewModel>(); | |
var settings = _container.RegisterSettingsService(); |
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
protected override void Configure() | |
{ | |
_container = new WinRTContainer(); | |
_container.PerRequest<MainViewModel>() | |
.PerRequest<AboutViewModel>(); | |
var viewSettings = new Dictionary<string, object>(); | |
viewSettings.Add("headerbackground", new SolidColorBrush(Colors.Red)); | |
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
<StackPanel Grid.Row="1" HorizontalAlignment="Center"> | |
<ProgressRing Name="loadingSomething" IsActive="True" /> | |
<TextBlock Style="{StaticResource BasicTextStyle}" TextWrapping="Wrap" TextAlignment="Center" Padding="5" HorizontalAlignment="Center"> | |
The splash screen was dismissed and the image above was positioned using the splash screen API. | |
</TextBlock> | |
<Button x:Name="LearnMoreButton" Content="Learn More" HorizontalAlignment="Center" /> | |
</StackPanel> |
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
private async void requestTwitterApi(string url) | |
{ | |
string nonce = oAuthUtil.GetNonce(); | |
string timeStamp = oAuthUtil.GetTimeStamp(); | |
try | |
{ | |
HttpClient httpClient = new HttpClient(); | |
httpClient.MaxResponseContentBufferSize = int.MaxValue; | |
httpClient.DefaultRequestHeaders.ExpectContinue = false; |
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 sealed partial class MainPage : Page | |
{ | |
UIElement[] _uiElements; | |
public MainPage() | |
{ | |
this.InitializeComponent(); | |
var uiElements = new List<UIElement>(); | |
for (int i = 0; i < 10; i++) | |
{ |
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
$files = [IO.Directory]::GetFiles("C:\temp\files") | |
foreach($file in $files) | |
{ | |
$content = get-content -path $file | |
$content | out-file $file -encoding utf8 | |
} |
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 Windows.Storage; | |
using Windows.UI.Xaml; | |
using Windows.UI.Xaml.Controls; | |
using Windows.UI.Xaml.Navigation; | |
namespace Day29_ApplicationLifecycle | |
{ | |
public sealed partial class MainPage : Page | |
{ |
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.IO; | |
using System.Linq; | |
using Windows.Foundation; | |
using Windows.Foundation.Collections; | |
using Windows.UI.Xaml; | |
using Windows.UI.Xaml.Controls; | |
using Windows.UI.Xaml.Controls.Primitives; | |
using Windows.UI.Xaml.Data; |
OlderNewer