text stringlengths 14 100k | source stringclasses 1
value | repo stringclasses 810
values | language stringclasses 13
values |
|---|---|---|---|
<|fim_suffix|>d : Visibility.Visible;
ApplicationLanguages.PrimaryLanguageOverride = languageId;
}
}
}
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LI... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ----------<|fim_suffix|>aded(object sender, RoutedEventArgs e)
... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>lock.Text = title;
ContentFrame.Navigate(pageType, null, new SuppressNavigationTransitionInfo());
}
}
}<|fim_prefix|>// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserve... | fim | 0x7c13/Notepads | csharp |
// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// -----------------------------------------------------------------------------------... | fim | 0x7c13/Notepads | csharp |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp.UI.Controls/D... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp... | fim | 0x7c13/Notepads | csharp |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp.UI.Controls/G... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/blob/8464f8e5263686c1484732bdea8... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>heme;
IsHighContrast = _accessible.HighContrast;
DispatcherQueue = dispatcherQueue ?? DispatcherQueue.GetForCurrentThread();
_accessible.HighContrastChanged += Accessible_HighContrastChanged;
_settings.ColorValuesChanged += Settings_ColorValuesChanged;
... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the M<|fim_suffix|> dkf.KeyTime = KeyTime.FromTimeSpan(ts);
}
else if (d is ObjectKeyFrame okf)
{
okf.KeyTime... | fim | 0x7c13/Notepads | csharp |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp.UI.Controls/I... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>n is opened
/// </summary>
public event EventHandler Opened;
/// <summary>
/// Event raised when the notification is closing
/// </summary>
public event InAppNotificationClosingEventHandler Closing;
/// <summary>
/// Event raised when the n... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>ind ||
(StackMode == StackMode.QueueBehind && _stackedNotificationOptions.Count == 0);
}
/// <summary>
/// Update the Content of the notification
/// </summary>
/// <param name="notificationOptions">Information about the notification to display</par... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under o<|fim_suffix|>e/master/Microsoft.Toolkit.Uwp.UI.Controls/InAppNotification
namespace Notepads.Controls
{
using System;
/// <summary>
/// A delegate for <see cref="InAppNotification"/> dismissing.
/// </summary>
/// <param name="sender">The se... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunit<|fim_suffix|>ification was dismissed
... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>cation"/> Dismissing event.
/// </summary>
public class InAppNotificationOpeningEventArgs : EventArgs
{
/// <summary>
/// Initializes a new instance of the <see cref="InAppNotificationOpeningEventArgs"/> class.
/// </summary>
public InAppNotificationOpeningEvent... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|> /// </summary>
public object Content { get; set; }
}
}<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https:... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreement<|fim_suffix|>ds.Controls
{
using System;
using Windows.UI.Xaml.Documents;
/// <summary>
/// Arguments for the <see cref="MarkdownTextBlock.CodeBlockResolving"/> event when a Code Block is being rendered.
/// </summary>
... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you <|fim_suffix|>/summary>
public string Link { get; }
}
}<|fim_middle|>under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://git... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Par... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Par... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Par... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/window<|fim_suffix|>
namespace Notepads.Controls.Markdown
{
/// <summ... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the<|fim_suffix|> }
}
}<|fim_middle|> MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityT... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunit<|fim_suffix|> using System.Text;
i... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>s/Markdown/Blocks/List
namespace Notepads.Controls.Markdown
{
internal class ListItemPreamble
{
public ListStyle Style { get; set; }
public int ContentStartPos { get; set; }
}
}<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundati... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
//<|fim_suffix|>set; }
// The number of spaces at the start of the line the list first appeared.
public int SpaceCount { get; set; }
}
}<|fim_middle|> The .NET Foundation licenses this file to you under the MIT license.
... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|> }
else
{
// Inline text. Ignores the 4 spaces that are used to continue the list.
AppendTextToListItem(currentListItem, markdown, lineStart, lineInfo.EndOfLine, true);
... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Par... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Par... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Par... | fim | 0x7c13/Notepads | csharp |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Parsers/Markdown... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|> {
/// <summary>
/// Parse method which all classes must implement.
/// </summary>
/// <param name="data">Data to parse.</param>
/// <returns>Strong typed parsed data.</returns>
IEnumerable<T> Parse(string data);
}
}<|fim_prefix|>// Licensed to the .NET ... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>
{
for (int i = 0; i < str.Length; i++)
{
if (!IsMarkdownWhiteSpace(str[i]))
{
return false;
}
}
return true;
}
/// <summary>
/// Determines if a character ... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you <|fim_suffix|>ore information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/blob/master/Microsoft.Toolkit.Parsers/Core
namespace Notepads.Controls.Markdown
{
/// ... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>ngValueAttribute(string value)
{
Value = value;
}
/// <summary>
/// Gets property for string value.
/// </summary>
public string Value { get; }
}
}<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Fou... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundat<|fim_suffix|>
Left,
/// <summary>
/// Content should be right aligned.
/// </summary>
Right,
/// <summary>
/// Content should be centered.
/// </summary>
... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/<|fim_suffix|> (e.g. "/u/quinbd").
/// </summary>... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>talic block
/// </summary>
Italic,
/// <summary>
/// A link block
/// </summary>
MarkdownLink,
/// <summary>
/// An angle bracket link.
/// </summary>
AngleBracketLink,
/// <summary>
/// A url block
... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .N<|fim_suffix|>mbered,
}
}<|fim_middle|>ET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommuni... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>/Markdown/Enums
namespace Notepads.Controls.Markdown
{
/// <summary>
/// Determines the type of Block the Block element is.
/// </summary>
public enum MarkdownBlockType
{
/// <summary>
/// The root element
/// </summary>
Root,
/// <summary>
... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Par... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>;
}
currentPos++;
}
return ifNotFoundReturnLength ? endingPos : -1;
}
/// <summary>
/// Parses lines.
/// </summary>
/// <returns>LineInfo</returns>
public static IEnumerable<LineInfo> ParseLines(str... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>ports an error during debugging.
/// </summary>
internal class DebuggingReporter
{
/// <summary>
/// Reports a critical error.
/// </summary>
public static void ReportCriticalError(string errorText)
{
Debug.WriteLine(errorText);
i... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Par... | fim | 0x7c13/Notepads | csharp |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Parsers/Markdown/... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Lice<|fim_suffix|> the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Parsers/Markdown/Helpers
namespace Notepads.Controls.Markdown
{
internal class LineInfo
{
public int StartOf... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Par... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Par... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more inf<|fim_suffix|>ax that starts and ends with two backticks.
// e.g. ``sdf`sdf`` would be "sdf`sdf".
... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>al representation of this object. </returns>
public override string ToString()
{
return "<!--" + Text + "-->";
}
}
}<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>},
{ "arrows_counterclockwise", 0x1f504 },
{ "rewind", 0x23ea },
{ "fast_forward", 0x23e9 },
{ "information_source", 0x2139 },
{ "ok", 0x1f197 },
{ "twisted_rightwards_arrows", 0x1f500 },
{ "repeat", 0x1f501 },
... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|> // The last character inside the span must NOT be a space.
if (ParseHelpers.IsMarkdownWhiteSpace(markdown[innerEnd - 1]))
{
return null;
}
var emojiName = markdown.Substring(innerStart, innerEnd - innerStart);
if (_emojiCodes... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Par... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
<|fim_suffix|> a new instance of the <see cref="IInlineContainer"/> class.
/// </summary>
public interface IInlineContainer
{
/// <summary>
/... | fim | 0x7c13/Notepads | csharp |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Parsers/Markdown/... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>line link elements.
/// </summary>
internal interface ILinkElement
{
/// <summary>
/// Gets the link URL. This can be a relative URL, but note that subreddit links will always
/// have the leading slash (i.e. the Url will be "/r/baconit" even if the text is
///... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|> while (pos < end)
{
if (markdown[pos] == ']')
{
break;
}
pos++;
}
reference = markdown.Substring(refstart + 1, pos - refstart - 1);
}... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|> The span must contain at least one character.
if (innerStart == innerEnd)
{
return null;
}
// The first character inside the span must NOT be a space.
if (ParseHelpers.IsMarkdownWhiteSpace(markdown[innerStart]))
{
... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.<|fim_suffix|> /// <param name="markdown"> The markdown text. </param>
/// <param name="start"> The location to start parsing. </param>
/// <param nam... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|> linkClose + 1);
}
return null;
}
/// <summary>
/// If this is a reference-style link, attempts to converts it to a regular link.
/// </summary>
/// <param name="document"> The document containing the list of references. </param>
in... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Par... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>
// We found something!
var result = new SubscriptTextInline
{
Inlines = Common.ParseInlineChildren(markdown, innerStart, innerEnd)
};
return new InlineParseResult(result, start, innerEnd + 6);
}
/// <summary>
... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Par... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|> { "micro", 0x00B5 }, // µ
{ "para", 0x00B6 }, // ¶
{ "middot", 0x00B7 }, // ·
{ "cedil", 0x00B8 }, // ¸
{ "sup1", 0x00B9 }, // ¹
{ "ordm", 0x00BA }, // º
{ "raquo", 0x00BB }, // »
{ "frac14", 0x00BC }, // ¼
... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|> }
}<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Mi... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|> // Repeat.
previousRealtStartOfLine = realStartOfLine;
previousStartOfLine = startOfLine;
previousEndOfLine = endOfLine;
startOfLine = startOfNextLine;
}
actualEnd = startOfLine;
return blocks;
}... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>
{
}
}<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this fil<|fim_middle|>e to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunit... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|> /// <summary>
/// Gets or sets this element is.
/// </summary>
public MarkdownInlineType Type { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="MarkdownInline"/> class.
/// </summary>
internal MarkdownInline(MarkdownI... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this <|fim_suffix|></param>
/// <param name="tooltip">Tooltip for Image.</param>
/// <returns>Image</returns>
Task<ImageSource> ResolveImageAsync(string url, string tooltip);
}
}<|f... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>am name="linkUrl">Url to Register.</param>
void RegisterNewHyperLink(Hyperlink newHyperlink, string linkUrl);
/// <summary>
/// Registers a Hyperlink with a LinkUrl.
/// </summary>
/// <param name="newImagelink">ImageLink to Register.</param>
/// <param nam... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|> /// Gets or sets a value indicating whether to trim whitespace.
/// </summary>
bool TrimLeadingWhitespace { get; set; }
/// <summary>
/// Gets or sets the parent Element for this Context.
/// </summary>
object Parent { get; set; }
/// <summary... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>neCollection, IRenderContext context)
{
InlineCollection = inlineCollection;
TrimLeadingWhitespace = context.TrimLeadingWhitespace;
Parent = context.Parent;
if (context is RenderContext localcontext)
{
Foreground = localc... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>text);
textBlock.Blocks.Add(paragraph);
}
/// <summary>
/// Renders a yaml header element.
/// </summary>
protected override void RenderYamlHeader(YamlHeaderBlock element, IRenderContext context)
{
if (!(context is UIElementCollectio... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>/summary>
public double HorizontalRuleThickness { get; set; }
/// <summary>
/// Gets or sets the margin used by lists.
/// </summary>
public Thickness ListMargin { get; set; }
/// <summary>
/// Gets or sets the width of the space used by list item ... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp... | fim | 0x7c13/Notepads | csharp |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp.UI.Controls/M... | fim | 0x7c13/Notepads | csharp |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Parsers/Markdown/... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Par... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>t = document;
}
/// <summary>
/// Renders all Content to the Provided Parent UI.
/// </summary>
/// <param name="context">UI Context</param>
public virtual void Render(IRenderContext context)
{
RenderBlocks(Document.Blocks, context);
... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|> <inheritdoc/>
public IRenderContext Clone()
{
return (IRenderContext)MemberwiseClone();
}
}
}<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE fi... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project roo<|fim_suffix|> internal RenderContextIncorrectException() : base("Markdown Render Context missing or incorrect.")
... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|>edEventArgs(Exception ex)
{
Exception = ex;
}
/// <summary>
/// Gets the exception if there was one. If the exception is null there was no error.
/// </summary>
public Exception Exception { get; }
}
}<|fim_prefix|>// Licensed to the .NET Fou... | fim | 0x7c13/Notepads | csharp |
<|fim_suffix|> public static readonly DependencyProperty TableCellPaddingProperty = DependencyProperty.Register(
nameof(TableCellPadding),
typeof(Thickness),
typeof(MarkdownTextBlock),
new PropertyMetadata(null, OnPropertyChangedStatic));
/// <summary>
... | fim | 0x7c13/Notepads | csharp |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp.UI.Controls/M... | fim | 0x7c13/Notepads | csharp |
<|fim_prefix|>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Source: https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp... | fim | 0x7c13/Notepads | csharp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.