Skip to content

Instantly share code, notes, and snippets.

View Lightczx's full-sized avatar
🐣
Chicken

DismissedLight Lightczx

🐣
Chicken
View GitHub Profile
using System;
using System.Buffers.Binary;
using System.Text;
namespace GeniusInvokationEncoding;
/// <summary>
/// https://www.bilibili.com/video/av278125720
/// </summary>
internal class Program
@Lightczx
Lightczx / DescriptionTextBlock.cs
Created July 12, 2022 13:23
render dexcription text in rich format
/// <summary>
/// 专用于呈现描述文本的文本块
/// </summary>
public class DescriptionTextBlock : ContentControl
{
private static readonly DependencyProperty DescriptionProperty =
Property<DescriptionTextBlock>.Depend(nameof(Description), string.Empty, OnDescriptionChanged);
/// <summary>
/// 构造一个新的呈现描述文本的文本块
@Lightczx
Lightczx / SystemBackdropHelper.cs
Last active July 7, 2022 11:48
Apply Mica/Acrylic on Win UI 3 Window
// Usage:
// In the Window Constructor:
// bool micaApplied = new SystemBackdropHelper(this).TrySetBackdrop();
// Copyright (c) DGP Studio. All rights reserved.
// Licensed under the MIT license.
using Microsoft.UI.Composition;
using Microsoft.UI.Composition.SystemBackdrops;
using Microsoft.UI.Xaml;