Skip to content

Commit 76de535

Browse files
committed
update
1 parent 7ab9e1d commit 76de535

File tree

4 files changed

+29
-11
lines changed

4 files changed

+29
-11
lines changed

components/OpacityMaskView/samples/MultiTarget.props

Lines changed: 0 additions & 9 deletions
This file was deleted.

components/OpacityMaskView/samples/OpacityMaskView.Samples.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<Project Sdk="MSBuild.Sdk.Extras/3.0.23">
1+
<Project>
2+
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.props))" Condition="Exists('$([MSBuild]::GetPathOfFileAbove(Directory.Build.props))')" />
3+
24
<PropertyGroup>
35
<ToolkitComponentName>OpacityMaskView</ToolkitComponentName>
46
</PropertyGroup>

components/OpacityMaskView/samples/OpacityMaskViewSample.xaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
77
xmlns:local="using:OpacityMaskViewExperiment.Samples"
88
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
9+
xmlns:media="using:Microsoft.UI.Xaml.Media"
910
mc:Ignorable="d">
1011

1112
<StackPanel Spacing="12">
@@ -41,5 +42,27 @@
4142
<Image Source="ms-appx:///Assets/Owl3.jpg" />
4243
</Border>
4344
</controls:OpacityMaskView>
45+
<controls:OpacityMaskView>
46+
<controls:OpacityMaskView.OpacityMask>
47+
<Rectangle>
48+
<Rectangle.Fill>
49+
<media:RadialGradientBrush>
50+
<GradientStop Offset="0.2" Color="Transparent" />
51+
<GradientStop Offset="0.8" Color="White" />
52+
<GradientStop Offset="0.8" Color="Transparent" />
53+
<GradientStop Offset="0.9" Color="Transparent" />
54+
<GradientStop Offset="0.9" Color="White" />
55+
</media:RadialGradientBrush>
56+
</Rectangle.Fill>
57+
</Rectangle>
58+
</controls:OpacityMaskView.OpacityMask>
59+
<Border Width="96"
60+
Height="96"
61+
BorderBrush="Green"
62+
BorderThickness="1"
63+
CornerRadius="12">
64+
<Image Source="ms-appx:///Assets/Owl3.jpg" />
65+
</Border>
66+
</controls:OpacityMaskView>
4467
</StackPanel>
4568
</Page>

components/OpacityMaskView/src/CommunityToolkit.WinUI.Controls.OpacityMaskView.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<Project Sdk="MSBuild.Sdk.Extras/3.0.23">
1+
<Project>
2+
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.props))" Condition="Exists('$([MSBuild]::GetPathOfFileAbove(Directory.Build.props))')" />
3+
24
<PropertyGroup>
35
<ToolkitComponentName>OpacityMaskView</ToolkitComponentName>
46
<Description>This package contains OpacityMaskView.</Description>

0 commit comments

Comments
 (0)