728x90
728x170
이미지를 특정 모양 부분만 보이도록 하는 방법입니다.
Clip 에 패스미니언어를 이용하면됩니다.
<Window x:Class="WpfApp3.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" Title="MainWindow" Height="450" Width="600"> <Image Clip="M 220 170 L 170 390 L 370 390 L 320 170 A 70 70 0 1 0 220 170" Stretch="None" Source="http://img2.yna.co.kr/etc/inner/KR/2019/09/09/AKR20190909107200009_04_i_P4.jpg" /> </Window>
|
728x90
그리드형
'C# > WPF' 카테고리의 다른 글
[WPF] EventAggregator 구독, 구독취소 (0) | 2020.07.13 |
---|---|
[WPF/Prism] Event Aggregator (0) | 2020.07.13 |
[WPF] CollectionView 에 필터 적용하기 (0) | 2020.07.12 |
[WPF] CollectionView 이용하여 데이터 Navigate(탐색) 하기 (0) | 2020.07.12 |
[WPF] CollectionView 를 이용해 데이터 정렬하기 (0) | 2020.07.12 |