Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
d70af24
Adding cornerradius to image
niels9001 Jan 9, 2026
86ce5b6
Making images scale accordingly
niels9001 Jan 9, 2026
0de08e8
Merge branch 'main' into niels9001/mdtb-improvements
niels9001 Jan 9, 2026
0811436
Apply suggestion from @Copilot
Arlodotexe Jan 10, 2026
4cc9798
Add ImageProviderConstraintTest to verify theme constraint behavior
Arlodotexe Jan 10, 2026
db7cf00
Remove references about image corner radius
niels9001 Jan 12, 2026
acb4755
Update MyImage.cs
niels9001 Jan 12, 2026
bcfe6c6
XAML styling
niels9001 Jan 12, 2026
c7fd09a
Fix image scaling
niels9001 Jan 12, 2026
ffcd8ff
Add visual sample for image rescaling
niels9001 Jan 12, 2026
563f4b4
Update components/MarkdownTextBlock/tests/ImageProviderConstraintTest.cs
niels9001 Jan 12, 2026
9e35244
Update MarkdownTextBlockImageProviderSample.xaml
niels9001 Jan 12, 2026
ce2ce57
Merge branch 'niels9001/mdtb-improvements' of https://github.com/Comm…
niels9001 Jan 12, 2026
a2bfa7e
Update MarkdownTextBlockImageProviderSample.xaml.cs
niels9001 Jan 12, 2026
4501564
Update MarkdownTextBlockImageProviderSample.xaml.cs
niels9001 Jan 13, 2026
ad46d46
Change image tag in tests
niels9001 Jan 13, 2026
f93803e
Update MarkdownTextBlock.md
niels9001 Jan 13, 2026
b4fab55
Update MarkdownTextBlockImageProviderSample.xaml.cs
niels9001 Jan 13, 2026
4492759
Update MarkdownTextBlockImageProviderSample.xaml.cs
niels9001 Jan 13, 2026
079b375
Update MarkdownTextBlockImageProviderSample.xaml.cs
niels9001 Jan 13, 2026
cabc532
Revert "Change image tag in tests"
Arlodotexe Jan 13, 2026
44e39a4
Use html syntax for specifying custom image size inline where appropr…
Arlodotexe Jan 13, 2026
5a1d4f7
Fix async void issues
Arlodotexe Jan 13, 2026
b5c2514
Removing sample
niels9001 Jan 13, 2026
585d3d0
Updating more default values
niels9001 Jan 15, 2026
ca31fca
Update MarkdownThemes.cs
niels9001 Jan 15, 2026
277fd43
Update MarkdownThemes.cs
niels9001 Jan 15, 2026
cd6f78c
Merge branch 'main' into niels9001/mdtb-improvements
niels9001 Jan 16, 2026
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
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ namespace MarkdownTextBlockExperiment.Samples;
/// <summary>
/// A sample demonstrating custom theming options for the MarkdownTextBlock control with live editing.
/// </summary>
///
[ToolkitSample(id: nameof(MarkdownTextBlockCustomThemeSample), "Custom Theme", description: "A sample showcasing custom theming options with live editing for headings, code blocks, quotes, tables, and more.")]
public sealed partial class MarkdownTextBlockCustomThemeSample : MarkdownTextBlockCustomThemeSampleBase
{
Expand All @@ -34,12 +35,16 @@ This sample demonstrates the **custom theming** capabilities of the `MarkdownTex

## Images

Images can be styled with max width, max height, and stretch options. Notice how the text flows naturally without any gaps above or below the image:
Images can be styled with max width, max height, corner radius, and stretch options. Notice how the text flows naturally without any gaps above or below the image:

![Windows Terminal](https://devblogs.microsoft.com/commandline/wp-content/uploads/sites/33/2025/11/0.96-Social-media-image-V2-1024x536.webp)

The image above automatically scales to respect the max width setting while maintaining its aspect ratio. Text continues to flow seamlessly below it.

![Shortcut Conflict](https://devblogs.microsoft.com/commandline/wp-content/uploads/sites/33/2025/09/ShortcutConflict.png)

Here's another image showing how corner radius can be applied to give images rounded corners.

## Code Blocks

```csharp
Expand Down
Loading
Loading