Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions components/CanvasLayout/samples/CanvasLayoutSample.xaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!-- 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. -->
<!-- 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. -->
<Page x:Class="CanvasLayoutExperiment.Samples.CanvasLayoutSample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:CommunityToolkit.WinUI.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:labs="using:CommunityToolkit.Labs.WinUI"
xmlns:local="using:CanvasLayoutExperiment.Samples"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
Expand All @@ -12,7 +12,7 @@

<muxc:ItemsRepeater ItemsSource="{x:Bind Items}">
<muxc:ItemsRepeater.Layout>
<labs:CanvasLayout />
<controls:CanvasLayout />
</muxc:ItemsRepeater.Layout>
<muxc:ItemsRepeater.ItemTemplate>
<DataTemplate x:DataType="local:CanvasItem">
Expand Down
2 changes: 1 addition & 1 deletion components/CanvasLayout/samples/CanvasLayoutSample.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using CommunityToolkit.Labs.WinUI;
using CommunityToolkit.WinUI.Controls;

namespace CanvasLayoutExperiment.Samples;

Expand Down
2 changes: 1 addition & 1 deletion components/CanvasLayout/src/CanvasLayout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

namespace CommunityToolkit.Labs.WinUI;
namespace CommunityToolkit.WinUI.Controls;

public partial class CanvasLayout : MUXC.VirtualizingLayout

Check warning on line 7 in components/CanvasLayout/src/CanvasLayout.cs

View workflow job for this annotation

GitHub Actions / wasm-linux

Missing XML comment for publicly visible type or member 'CanvasLayout'
{
#region Setup / teardown
protected override void InitializeForContextCore(MUXC.VirtualizingLayoutContext context)

Check warning on line 10 in components/CanvasLayout/src/CanvasLayout.cs

View workflow job for this annotation

GitHub Actions / wasm-linux

Missing XML comment for publicly visible type or member 'CanvasLayout.InitializeForContextCore(VirtualizingLayoutContext)'
{
base.InitializeForContextCore(context);

Expand All @@ -19,7 +19,7 @@
}
}

protected override void UninitializeForContextCore(MUXC.VirtualizingLayoutContext context)

Check warning on line 22 in components/CanvasLayout/src/CanvasLayout.cs

View workflow job for this annotation

GitHub Actions / wasm-linux

Missing XML comment for publicly visible type or member 'CanvasLayout.UninitializeForContextCore(VirtualizingLayoutContext)'
{
base.UninitializeForContextCore(context);

Expand All @@ -31,7 +31,7 @@

#region Layout

protected override Size MeasureOverride(MUXC.VirtualizingLayoutContext context, Size availableSize)

Check warning on line 34 in components/CanvasLayout/src/CanvasLayout.cs

View workflow job for this annotation

GitHub Actions / wasm-linux

Missing XML comment for publicly visible type or member 'CanvasLayout.MeasureOverride(VirtualizingLayoutContext, Size)'
{
int maxWidth = 0;
int maxHeight = 0;
Expand Down Expand Up @@ -73,7 +73,7 @@
return new Size(maxWidth, maxHeight);
}

protected override Size ArrangeOverride(MUXC.VirtualizingLayoutContext context, Size finalSize)

Check warning on line 76 in components/CanvasLayout/src/CanvasLayout.cs

View workflow job for this annotation

GitHub Actions / wasm-linux

Missing XML comment for publicly visible type or member 'CanvasLayout.ArrangeOverride(VirtualizingLayoutContext, Size)'
{
for (int i = 0; i < context.ItemCount; i++)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
<PropertyGroup>
<ToolkitComponentName>CanvasLayout</ToolkitComponentName>
<Description>This package contains a CanvasLayout Layout for ItemsRepeater.</Description>

<!-- Rns suffix is required for namespaces shared across projects. See https://github.com/CommunityToolkit/Labs-Windows/issues/152 -->
<RootNamespace>CommunityToolkit.Labs.WinUI.CanvasLayoutRns</RootNamespace>
<RootNamespace>CommunityToolkit.WinUI.Controls.CanvasLayoutRns</RootNamespace>
</PropertyGroup>

<!-- Sets this up as a toolkit component's source project -->
<Import Project="$(ToolingDirectory)\ToolkitComponent.SourceProject.props" />

<PropertyGroup>
<PackageId>$(PackageIdPrefix).$(PackageIdVariant).Controls.$(ToolkitComponentName)</PackageId>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using CommunityToolkit.Labs.WinUI;
using CommunityToolkit.WinUI.Controls;
using CommunityToolkit.Tooling.TestGen;
using CommunityToolkit.Tests;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<Page x:Class="CanvasLayoutTests.ExampleCanvasLayoutTestPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:CommunityToolkit.WinUI.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:labs="using:CommunityToolkit.Labs.WinUI"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
Expand All @@ -12,7 +12,7 @@
<Grid>
<muxc:ItemsRepeater>
<muxc:ItemsRepeater.Layout>
<labs:CanvasLayout x:Name="CanvasLayoutControl" />
<controls:CanvasLayout x:Name="CanvasLayoutControl" />
</muxc:ItemsRepeater.Layout>
</muxc:ItemsRepeater>
</Grid>
Expand Down
18 changes: 9 additions & 9 deletions components/CanvasView/samples/CanvasViewDragSample.xaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<!-- 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. -->
<!-- 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. -->
<Page x:Class="CanvasViewExperiment.Samples.CanvasViewDragSample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:CommunityToolkit.WinUI.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:labs="using:CommunityToolkit.Labs.WinUI"
xmlns:local="using:CanvasViewExperiment.Samples"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">

<labs:CanvasView MinHeight="400"
VerticalAlignment="Stretch"
ItemsSource="{x:Bind Rectangles}">
<labs:CanvasView.ItemTemplate>
<controls:CanvasView MinHeight="400"
VerticalAlignment="Stretch"
ItemsSource="{x:Bind Rectangles}">
<controls:CanvasView.ItemTemplate>
<DataTemplate x:DataType="local:ObservableRect">
<Border Canvas.Left="{x:Bind Left, Mode=TwoWay}"
Canvas.Top="{x:Bind Top, Mode=TwoWay}"
Expand All @@ -29,10 +29,10 @@
Style="{StaticResource BodyStrongTextBlockStyle}"
TextWrapping="WrapWholeWords">
<Run Text="{x:Bind Left, Mode=OneWay}" />
,<Run Text="{x:Bind Top, Mode=OneWay}" />
<Run Text="{x:Bind Top, Mode=OneWay}" />
</TextBlock>
</Border>
</DataTemplate>
</labs:CanvasView.ItemTemplate>
</labs:CanvasView>
</controls:CanvasView.ItemTemplate>
</controls:CanvasView>
</Page>
3 changes: 1 addition & 2 deletions components/CanvasView/src/CanvasView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
#if NET8_0_OR_GREATER
using System.Diagnostics.CodeAnalysis;
#endif
using CommunityToolkit.Labs.WinUI.CanvasViewInternal;
using CommunityToolkit.WinUI.Helpers;

namespace CommunityToolkit.Labs.WinUI;
namespace CommunityToolkit.WinUI.Controls;

/// <summary>
/// <see cref="CanvasView"/> is an <see cref="ItemsControl"/> which uses a <see cref="Canvas"/> for the layout of its items.
Expand All @@ -24,13 +23,13 @@
(ManipulationModeProperty, "ManipulationMode")
};

public CanvasView()

Check warning on line 26 in components/CanvasView/src/CanvasView.cs

View workflow job for this annotation

GitHub Actions / wasm-linux

Missing XML comment for publicly visible type or member 'CanvasView.CanvasView()'
{
// TODO: Need to use XamlReader because of https://github.com/microsoft/microsoft-ui-xaml/issues/2898
ItemsPanel = XamlReader.Load("<ItemsPanelTemplate xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"><Canvas/></ItemsPanelTemplate>") as ItemsPanelTemplate;
}

protected override void PrepareContainerForItemOverride(DependencyObject element, object item)

Check warning on line 32 in components/CanvasView/src/CanvasView.cs

View workflow job for this annotation

GitHub Actions / wasm-linux

Missing XML comment for publicly visible type or member 'CanvasView.PrepareContainerForItemOverride(DependencyObject, object)'
{
base.PrepareContainerForItemOverride(element, item);

Expand All @@ -51,7 +50,7 @@
// TODO: Do we want to support something else in a custom template?? else if (item is FrameworkElement fe && fe.FindDescendant/GetContentControl?)
}

protected override void ClearContainerForItemOverride(DependencyObject element, object item)

Check warning on line 53 in components/CanvasView/src/CanvasView.cs

View workflow job for this annotation

GitHub Actions / wasm-linux

Missing XML comment for publicly visible type or member 'CanvasView.ClearContainerForItemOverride(DependencyObject, object)'
{
base.ClearContainerForItemOverride(element, item);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@
<Description>This package contains CanvasView.</Description>

<!-- Rns suffix is required for namespaces shared across projects. See https://github.com/CommunityToolkit/Labs-Windows/issues/152 -->
<RootNamespace>CommunityToolkit.Labs.WinUI.CanvasViewRns</RootNamespace>
<RootNamespace>CommunityToolkit.WinUI.Controls.CanvasViewRns</RootNamespace>
</PropertyGroup>

<!-- Sets this up as a toolkit component's source project -->
<Import Project="$(ToolingDirectory)\ToolkitComponent.SourceProject.props" />

<PropertyGroup>
<PackageId>$(PackageIdPrefix).$(PackageIdVariant).Controls.$(ToolkitComponentName)</PackageId>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion components/CanvasView/src/FrameworkElementExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
using System.Diagnostics.CodeAnalysis;
#endif

namespace CommunityToolkit.Labs.WinUI.CanvasViewInternal;
namespace CommunityToolkit.WinUI.Controls;

public static partial class FrameworkElementExtensions

Check warning on line 11 in components/CanvasView/src/FrameworkElementExtensions.cs

View workflow job for this annotation

GitHub Actions / wasm-linux

Missing XML comment for publicly visible type or member 'FrameworkElementExtensions'
{
/// <summary>
/// Normally when trying to set a value of a <see cref="DependencyProperty"/> this will update the raw value of the property
Expand Down
2 changes: 1 addition & 1 deletion components/CanvasView/tests/ExampleCanvasViewTestClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using CommunityToolkit.Labs.WinUI;
using CommunityToolkit.WinUI.Controls;
using CommunityToolkit.Tooling.TestGen;
using CommunityToolkit.Tests;

Expand Down
4 changes: 2 additions & 2 deletions components/CanvasView/tests/ExampleCanvasViewTestPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<Page x:Class="CanvasViewTests.ExampleCanvasViewTestPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:CommunityToolkit.WinUI.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:labs="using:CommunityToolkit.Labs.WinUI"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
mc:Ignorable="d">

<Grid>
<labs:CanvasView x:Name="CanvasViewControl" />
<controls:CanvasView x:Name="CanvasViewControl" />
</Grid>
</Page>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Page x:Class="MarkdownTextBlockExperiment.Samples.MarkdownTextBlockExampleSample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:CommunityToolkit.Labs.WinUI.MarkdownTextBlock"
xmlns:controls="using:CommunityToolkit.WinUI.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="using:MarkdownTextBlockExperiment.Samples"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using CommunityToolkit.Labs.WinUI.MarkdownTextBlock;
using CommunityToolkit.WinUI.Controls;
using System.Diagnostics;

namespace MarkdownTextBlockExperiment.Samples;
Expand All @@ -17,7 +17,7 @@ namespace MarkdownTextBlockExperiment.Samples;
[ToolkitSampleBoolOption("UseAutoLinks", true, Title = "UseAutoLinks")]
[ToolkitSampleBoolOption("DisableHtml", false, Title = "DisableHtml")]
[ToolkitSampleBoolOption("UseSoftlineBreakAsHardlineBreak", false, Title = "UseSoftlineBreakAsHardlineBreak")]
[ToolkitSample(id: nameof(MarkdownTextBlockExampleSample), "Full Example", description: $"A comprehensive example showcasing all the features and capabilities of the {nameof(CommunityToolkit.Labs.WinUI.MarkdownTextBlock)} control with various markdown syntax.")]
[ToolkitSample(id: nameof(MarkdownTextBlockExampleSample), "Full Example", description: $"A comprehensive example showcasing all the features and capabilities of the {nameof(CommunityToolkit.WinUI.Controls.MarkdownTextBlock)} control with various markdown syntax.")]
public sealed partial class MarkdownTextBlockExampleSample : Page
{
private MarkdownConfig _config;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Page x:Class="MarkdownTextBlockExperiment.Samples.MarkdownTextBlockLiveEditorSample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:CommunityToolkit.Labs.WinUI.MarkdownTextBlock"
xmlns:controls="using:CommunityToolkit.WinUI.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="using:MarkdownTextBlockExperiment.Samples"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using CommunityToolkit.Labs.WinUI.MarkdownTextBlock;
using CommunityToolkit.WinUI.Controls;
using System.Diagnostics;

namespace MarkdownTextBlockExperiment.Samples;
Expand All @@ -17,7 +17,7 @@ namespace MarkdownTextBlockExperiment.Samples;
[ToolkitSampleBoolOption("UseAutoLinks", false, Title = "UseAutoLinks")]
[ToolkitSampleBoolOption("DisableHtml", false, Title = "DisableHtml")]
[ToolkitSampleBoolOption("UseSoftlineBreakAsHardlineBreak", false, Title = "UseSoftlineBreakAsHardlineBreak")]
[ToolkitSample(id: nameof(MarkdownTextBlockLiveEditorSample), "Live Editor", description: $"An interactive live editor for the {nameof(CommunityToolkit.Labs.WinUI.MarkdownTextBlock)} control. Type markdown and see it rendered in real-time.")]
[ToolkitSample(id: nameof(MarkdownTextBlockLiveEditorSample), "Live Editor", description: $"An interactive live editor for the {nameof(CommunityToolkit.WinUI.Controls.MarkdownTextBlock)} control. Type markdown and see it rendered in real-time.")]
public sealed partial class MarkdownTextBlockLiveEditorSample : Page
{
private MarkdownConfig _config;
Expand Down
2 changes: 1 addition & 1 deletion components/MarkdownTextBlock/src/DefaultSVGRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

namespace CommunityToolkit.Labs.WinUI.MarkdownTextBlock;
namespace CommunityToolkit.WinUI.Controls;

internal class DefaultSVGRenderer : ISVGRenderer
{
Expand Down
4 changes: 2 additions & 2 deletions components/MarkdownTextBlock/src/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
//using ColorCode.Styling;
using Markdig.Syntax;
using Markdig.Syntax.Inlines;
using CommunityToolkit.Labs.WinUI.MarkdownTextBlock.TextElements;
using CommunityToolkit.WinUI.Controls.TextElements;
using System.Xml.Linq;
using System.Globalization;
using Windows.UI.ViewManagement;
using HtmlAgilityPack;

namespace CommunityToolkit.Labs.WinUI.MarkdownTextBlock;
namespace CommunityToolkit.WinUI.Controls;

public static class Extensions
{
Expand Down
8 changes: 4 additions & 4 deletions components/MarkdownTextBlock/src/HtmlWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
// See the LICENSE file in the project root for more information.

using HtmlAgilityPack;
using CommunityToolkit.Labs.WinUI.MarkdownTextBlock.Renderers;
using CommunityToolkit.Labs.WinUI.MarkdownTextBlock.TextElements.Html;
using CommunityToolkit.Labs.WinUI.MarkdownTextBlock.TextElements;
using CommunityToolkit.WinUI.Controls.Renderers;
using CommunityToolkit.WinUI.Controls.TextElements.Html;
using CommunityToolkit.WinUI.Controls.TextElements;

namespace CommunityToolkit.Labs.WinUI.MarkdownTextBlock;
namespace CommunityToolkit.WinUI.Controls;

internal class HtmlWriter
{
Expand Down
2 changes: 1 addition & 1 deletion components/MarkdownTextBlock/src/ISVGRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

namespace CommunityToolkit.Labs.WinUI.MarkdownTextBlock;
namespace CommunityToolkit.WinUI.Controls;

public interface ISVGRenderer
{
Expand Down
2 changes: 1 addition & 1 deletion components/MarkdownTextBlock/src/ImageProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

namespace CommunityToolkit.Labs.WinUI.MarkdownTextBlock;
namespace CommunityToolkit.WinUI.Controls;

public interface IImageProvider
{
Expand Down
2 changes: 1 addition & 1 deletion components/MarkdownTextBlock/src/LinkClickedEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

namespace CommunityToolkit.Labs.WinUI.MarkdownTextBlock;
namespace CommunityToolkit.WinUI.Controls;

public class LinkClickedEventArgs : EventArgs
{
Expand Down
4 changes: 1 addition & 3 deletions components/MarkdownTextBlock/src/MarkdownConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using CommunityToolkit.WinUI.Controls.MarkdownTextBlockRns;

namespace CommunityToolkit.Labs.WinUI.MarkdownTextBlock;
namespace CommunityToolkit.WinUI.Controls;

public record MarkdownConfig
{
Expand Down
22 changes: 11 additions & 11 deletions components/MarkdownTextBlock/src/MarkdownTextBlock.Properties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using Markdig.Syntax;

namespace CommunityToolkit.Labs.WinUI.MarkdownTextBlock;
namespace CommunityToolkit.WinUI.Controls;

public partial class MarkdownTextBlock
{
Expand Down Expand Up @@ -70,25 +70,25 @@ public partial class MarkdownTextBlock
nameof(UseAutoLinks),
typeof(bool),
typeof(MarkdownTextBlock),
new PropertyMetadata(false));
new PropertyMetadata(false));

/// <summary>
/// Identifies the <see cref="DisableHtmlProperty"/> dependency property.
/// </summary>
private static readonly DependencyProperty DisableHtmlProperty = DependencyProperty.Register(
nameof(DisableHtmlProperty),
typeof(bool),
typeof(MarkdownTextBlock),
new PropertyMetadata(false));
new PropertyMetadata(false));

/// <summary>
/// Identifies the <see cref="DisableLinksProperty"/> dependency property.
/// </summary>
private static readonly DependencyProperty DisableLinksProperty = DependencyProperty.Register(
nameof(DisableLinksProperty),
typeof(bool),
typeof(MarkdownTextBlock),
new PropertyMetadata(false));
new PropertyMetadata(false));

/// <summary>
/// Identifies the <see cref="UseSoftlineBreakAsHardlineBreak"/> dependency property.
Expand Down Expand Up @@ -166,25 +166,25 @@ public bool UseAutoLinks
{
get => (bool)GetValue(UseAutoLinksProperty);
set => SetValue(UseAutoLinksProperty, value);
}
}

/// <summary>
/// If true, Disables HTML parsing.
/// </summary>
public bool DisableHtml
{
get => (bool)GetValue(DisableHtmlProperty);
set => SetValue(DisableHtmlProperty, value);
}
}

/// <summary>
/// If true, Disables link parsing.
/// </summary>
public bool DisableLinks
{
get => (bool)GetValue(DisableLinksProperty);
set => SetValue(DisableLinksProperty, value);
}
}

/// <summary>
/// If true, considers single newlines as hardline breaks.
Expand Down
Loading
Loading