You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Markdown.Avalonia uses AvaloniaEdit to render a code content. AvaloniaEdit requires a dedicated style.
AvaloniaEdit requires the style; avares://AvaloniaEdit/Themes/Simple/AvaloniaEdit.xaml or avares://AvaloniaEdit/Themes/Fluent/AvaloniaEdit.xaml. Markdown.Avalonia add automatically the style when Avalonia.Themes.Simple or Avalonia.Themes.Fluent is added to App.xaml.
For example, the following statement will cause that Markdown.Avalonia adds the style.
<Applicationxmlns="https://github.com/avaloniaui"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:local="clr-namespace:Markdown.AvaloniaFluentAvaloniaDemo"xmlns:sty="using:FluentAvalonia.Styling"x:Class="Markdown.AvaloniaFluentAvaloniaDemo.App">
<Application.Styles>
<SimpleTheme /> <!-- Add SimpleTheme or FluentTheme at the top -->
<sty:FluentAvaloniaTheme />
<StyleIncludeSource="/Assets/AppendingStyles.axaml"/>
</Application.Styles>
</Application>
The code content is not rendered
The following is the content
以下是使用C#实现冒泡排序的示例代码:
在这个示例中,我们使用了两个嵌套的for循环来遍历数组并比较相邻的元素。如果前一个元素大于后一个元素,则交换它们的位置。这样,每次循环都会将当前未排序的最大元素移动到数组的末尾。最终,数组将按升序排列。
Use version
The text was updated successfully, but these errors were encountered: