This file contains 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.Windows.Input; | |
using Windows.UI; | |
using Windows.UI.ApplicationSettings; | |
using Windows.UI.Popups; | |
using Windows.UI.Xaml; | |
using Windows.UI.Xaml.Controls; | |
using Windows.UI.Xaml.Controls.Primitives; |
This file contains 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="App1.MainPage" | |
IsTabStop="false" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:local="using:App1" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
mc:Ignorable="d"> |
This file contains 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
Windows8とWindows Phone共に採用しているのはC#/XAML技術です。 | |
ベースとなる技術が同じであれば、Windows PhoneのアプリはWindows8でそのまま動かすことが出来るのでしょうか。 | |
先に結論を述べるならばほぼ確実に不可能です。なぜなら、C#という言語機能、XAMLというUIテクノロジにこそ互換性はあれど、それぞれのプラットフォームで利用出来るAPIセットが異なるからです。 | |
しかしながら、人間1度作ったものを作り直したくないもの。今回はどうにかしてマウスだけでアプリを移植してみたいと思います。 |
This file contains 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
string convert(byte[] bytes) | |
{ | |
var s = transcode(bytes); | |
var re = new Regex("&#[xX]([a-fA-F0-9]);"); | |
return re.Replace(s, m=>{ | |
var hex = m.Groups[1].Value; | |
return ((char)Convert.ToInt16(hex, 16)).ToString(); | |
}); | |
} |
This file contains 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.Net; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Documents; | |
using System.Windows.Ink; | |
using System.Windows.Input; | |
using System.Windows.Media; | |
using System.Windows.Media.Animation; | |
using System.Windows.Navigation; |
This file contains 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.Collections.Generic; | |
using System.Linq; | |
using System.Windows.Input; | |
using Windows.UI.ApplicationSettings; | |
using Windows.UI.Popups; | |
using Windows.UI.Xaml; | |
using Windows.UI.Xaml.Markup; | |
namespace Extras.Charms | |
{ |
This file contains 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 System.Net; | |
using System.Net.Http; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
using System.Threading.Tasks; | |
using MFToolkit.Cryptography; |
This file contains 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 System.Threading.Tasks; | |
using System.Windows.Input; | |
using Windows.Foundation; | |
using Windows.UI.Popups; | |
using Windows.UI.Xaml; | |
using Windows.UI.Xaml.Controls; |
This file contains 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
/** | |
* Windows Phone 7.1 の System.Windows.Navigation.NavigationService の互換品みたいなもの。 | |
* Metro Style AppでNavigationServiceを使ったコードをコピペできるようになるかも? | |
* Author: tmyt | |
*/ | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Xml.Linq; | |
using Windows.ApplicationModel.Resources.Core; |
This file contains 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
// License: NYSL | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Runtime.Serialization.Json; | |
using System.Text; | |
using System.Threading; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Media; |