Skip to content

Commit 683cbef

Browse files
committed
Merge remote-tracking branch 'origin/add-back-windows8-support' into rxui6-master
2 parents 22f98e3 + 9a6eaaa commit 683cbef

File tree

59 files changed

+10283
-73
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+10283
-73
lines changed

MakeRelease.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Param([string]$version = $null)
22

3-
$Archs = {"Portable-Net45+WinRT45+WP8", "Net45", "WP8", "WinRT45", "Mono", "Monoandroid", "Monotouch", "Monomac"}
3+
$Archs = {"Portable-Net45+WinRT45+WP8", "Net45", "WP8", "WinRT45", "WinRT451", "Mono", "Monoandroid", "Monotouch", "Monomac"}
44
$Projects = {
55
"ReactiveUI", "ReactiveUI.Testing", "ReactiveUI.Platforms", "ReactiveUI.Blend",
66
"ReactiveUI.Mobile", "RxUIViewModelGenerator", "ReactiveUI.Events"

MobileSample-WinRT80/App.xaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<mobile:AutoSuspendApplication
2+
x:Class="MobileSample_WinRT.App"
3+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5+
xmlns:mobile="using:ReactiveUI.Mobile">
6+
7+
<Application.Resources>
8+
<ResourceDictionary>
9+
<ResourceDictionary.MergedDictionaries>
10+
11+
<!--
12+
Styles that define common aspects of the platform look and feel
13+
Required by Visual Studio project and item templates
14+
-->
15+
<ResourceDictionary Source="Common/StandardStyles.xaml"/>
16+
</ResourceDictionary.MergedDictionaries>
17+
18+
<!-- Application-specific resources -->
19+
20+
<x:String x:Key="AppName">MobileSample-WinRT</x:String>
21+
</ResourceDictionary>
22+
</Application.Resources>
23+
</mobile:AutoSuspendApplication>

MobileSample-WinRT80/App.xaml.cs

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
using MobileSample_WinRT.Common;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.IO;
5+
using System.Linq;
6+
using MobileSample_WinRT.ViewModels;
7+
using ReactiveUI;
8+
using ReactiveUI.Mobile;
9+
using Windows.ApplicationModel;
10+
using Windows.ApplicationModel.Activation;
11+
using Windows.Foundation;
12+
using Windows.Foundation.Collections;
13+
using Windows.UI.Xaml;
14+
using Windows.UI.Xaml.Controls;
15+
using Windows.UI.Xaml.Controls.Primitives;
16+
using Windows.UI.Xaml.Data;
17+
using Windows.UI.Xaml.Input;
18+
using Windows.UI.Xaml.Media;
19+
using Windows.UI.Xaml.Navigation;
20+
using System.Reactive.Linq;
21+
using Splat;
22+
23+
namespace MobileSample_WinRT
24+
{
25+
sealed partial class App : AutoSuspendApplication
26+
{
27+
public App()
28+
{
29+
this.InitializeComponent();
30+
}
31+
32+
protected override void OnLaunched(LaunchActivatedEventArgs args)
33+
{
34+
Locator.CurrentMutable.Register(() => new AppBootstrapper(), typeof(IApplicationRootState));
35+
36+
base.OnLaunched(args);
37+
var host = Locator.Current.GetService<ISuspensionHost>();
38+
host.SetupDefaultSuspendResume();
39+
}
40+
}
41+
42+
public static class ButtonMixin
43+
{
44+
public static ButtonEvents Events(this Button This)
45+
{
46+
return new ButtonEvents(This);
47+
}
48+
}
49+
50+
public class ButtonEvents
51+
{
52+
Button This;
53+
54+
public ButtonEvents(Button This)
55+
{
56+
this.This = This;
57+
}
58+
59+
public IObservable<RoutedEventArgs> Click {
60+
get { return Observable.FromEventPattern<RoutedEventHandler, RoutedEventArgs>(x => This.Click += x, x => This.Click -= x).Select(x => x.EventArgs); }
61+
}
62+
}
63+
}
560 Bytes
Loading
560 Bytes
Loading
801 Bytes
Loading
561 Bytes
Loading
329 Bytes
Loading
2.1 KB
Loading
429 Bytes
Loading

0 commit comments

Comments
 (0)