boder 陰影

小林野夫發表於2024-04-17

好看的boder 陰影

  <Border  BorderThickness="1" Grid.Column="2" Grid.Row="1">
      <Border   BorderThickness="1" Grid.Column="2" Grid.Row="1"
               Margin="5"
                BorderBrush="#e2e2e2"
                Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" 
                Padding="10"
                CornerRadius="12"
              
              >
          <Border.Effect>
              <!--陰影-->
              <DropShadowEffect Color="Gray" ShadowDepth="0" BlurRadius="5" Opacity="0.3" Direction="0"/>
          </Border.Effect>
      </Border>
  </Border>

相關文章