--- lang: ja-jp breaks: true --- # WPF レイアウト `DropShadowEffect` 2022-08-27 ![](https://i.imgur.com/VH9DBQK.png) ```xaml= <Window x:Class="WPF_ViewLayout.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 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:local="clr-namespace:WPF_ViewLayout" mc:Ignorable="d" Title="MainWindow" Height="450" Width="800"> <Canvas> <TextBox Opacity="0.8"> <TextBox.Effect> <DropShadowEffect/> </TextBox.Effect> テキストボックス</TextBox> <Button Opacity="0.8"> <Button.Effect> <DropShadowEffect/> </Button.Effect> ボタン</Button> </Canvas> </Window> ``` ###### tags: `WPF` `DropShadowEffect` `Canvas` `レイアウト` `XAML`