Skip to content

Commit 49e3a0c

Browse files
committed
Add Xamarin Forms Sample
1 parent 51b5b0d commit 49e3a0c

File tree

229 files changed

+25667
-84
lines changed

Some content is hidden

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

229 files changed

+25667
-84
lines changed

samples/MvvmSampleUwp/MvvmSampleUwp/Assets/docs/Ioc.md renamed to samples/MvvmSample.Core/Docs/Ioc.md

Lines changed: 2 additions & 2 deletions

samples/MvvmSampleUwp/MvvmSampleUwp/Assets/docs/RelayCommand.md renamed to samples/MvvmSample.Core/Docs/RelayCommand.md

Lines changed: 1 addition & 1 deletion

samples/MvvmSampleUwp/MvvmSampleUwp/Helpers/MarkdownHelper.cs renamed to samples/MvvmSample.Core/Helpers/MarkdownHelper.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System.Linq;
77
using System.Text.RegularExpressions;
88

9-
namespace MvvmSampleUwp.Helpers
9+
namespace MvvmSample.Core.Helpers
1010
{
1111
/// <summary>
1212
/// A simple class to help with basic operations on markdown documents.
@@ -21,7 +21,8 @@ public static class MarkdownHelper
2121
public static IReadOnlyDictionary<string, string> GetParagraphs(string text)
2222
{
2323
return
24-
Regex.Matches(text, @"(?<=\W)#+ ([^\n]+).+?(?=\W#|$)", RegexOptions.Singleline)
24+
Regex.Matches(text, @"(?<=\W)#+ ([^\n]+).+?(?=\W#|$)", RegexOptions.Singleline)
25+
.OfType<Match>()
2526
.ToDictionary(
2627
m => m.Groups[1].Value.Trim().Replace("&lt;", "<"),
2728
m => m.Groups[0].Value.Trim().Replace("&lt;", "<").Replace("[!WARNING]", "**WARNING:**").Replace("[!NOTE]", "**NOTE:**"));

samples/MvvmSampleUwp/MvvmSampleUwp/Models/Post.cs renamed to samples/MvvmSample.Core/Models/Post.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System.Linq;
77
using Newtonsoft.Json;
88

9-
namespace MvvmSampleUwp.Models
9+
namespace MvvmSample.Core.Models
1010
{
1111
/// <summary>
1212
/// A class for a query for posts in a given subreddit.
@@ -69,7 +69,7 @@ public class Post
6969
/// Normally, not all posts have a self text post available.
7070
/// </remarks>
7171
[JsonIgnore]
72-
public string SelfText { get; } = string.Join(' ', Enumerable.Repeat(
72+
public string SelfText { get; } = string.Join(" ", Enumerable.Repeat(
7373
@"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
7474
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
7575
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

0 commit comments

Comments
 (0)