독개

[Avalonia] window 창 투명하게하기

by #독개#

참고

https://docs.avaloniaui.net/tutorials/music-store-app/creating-a-modern-looking-window

 

Window 창 투명하게하기

TransparencyLevelHint="Transparent"
Background="Transparent"

 

타이틀바를 없애고, 최대,최소,종료 버튼 안으로 내리기

ExtendClientAreaTitleBarHeightHint="-1"
ExtendClientAreaToDecorationsHint="True"

 

소스코드

<Window xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:ui="using:FluentAvalonia.UI.Controls"
        xmlns:uip="using:FluentAvalonia.UI.Controls.Primitives"
        xmlns:wnd="using:FluentAvalonia.UI.Windowing"
        mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="300"
        Width="400"
        Height="300"
        x:Class="Dokkae_Reader.Views.Main"
        Icon="/Assets/avalonia-logo.ico"
        Title="타이틀"
        PointerPressed="BeginMoveDrag"
        ExtendClientAreaTitleBarHeightHint="-1"
        ExtendClientAreaToDecorationsHint="True"
        TransparencyLevelHint="Transparent"
        Background="Transparent">
    <Border Background="black"></Border>


</Window>

결과

결과물

'🏹 프로그래밍 활용 > Avalonia' 카테고리의 다른 글

[Avalonia] Drop File  (0) 2022.12.17
[Avalonia] window창 드래그로 이동하기  (0) 2022.12.16
[Avalonia] Button의 Style (Hover, Pressed)  (0) 2022.12.16
[Avalonia] Fluent Theme  (0) 2022.12.16
[Avalonia] Theme Plugin  (0) 2022.12.16

블로그의 정보

독한 개발자

#독개#

활동하기