File tree Expand file tree Collapse file tree 1 file changed +9
-15
lines changed
components/TransitionHelper/samples Expand file tree Collapse file tree 1 file changed +9
-15
lines changed Original file line number Diff line number Diff line change 2424 <labs : TransitionConfig EnableClipAnimation =" true"
2525 Id =" desc" />
2626 </labs : TransitionHelper >
27+
28+ <ImageBrush x : Key =" ImageBackgroundBrush"
29+ ImageSource =" ms-appx:///Assets/Owl.jpg" />
2730 </Page .Resources>
2831 <Grid >
2932 <StackPanel x : Name =" FirstControl"
4043 <Border Width =" 36"
4144 Height =" 36"
4245 labs:TransitionHelper.Id=" image"
43- CornerRadius =" 18" >
44- <Border .Background>
45- <ImageBrush ImageSource =" ms-appx:///Assets/Owl.jpg" />
46- </Border .Background>
47- </Border >
46+ Background =" {StaticResource ImageBackgroundBrush}"
47+ CornerRadius =" 18" />
4848 </Grid >
4949 <StackPanel labs:TransitionHelper.Id=" guide"
5050 Spacing =" 2" >
8686 <Border Width =" 50"
8787 Height =" 50"
8888 labs:TransitionHelper.Id=" image"
89- CornerRadius =" 25" >
90- <Border .Background>
91- <ImageBrush ImageSource =" ms-appx:///Assets/Owl.jpg" />
92- </Border .Background>
93- </Border >
89+ Background =" {StaticResource ImageBackgroundBrush}"
90+ CornerRadius =" 25" />
9491 <StackPanel Width =" 400"
9592 VerticalAlignment =" Center"
9693 Spacing =" 5" >
146143 <Border Width =" 80"
147144 Height =" 80"
148145 labs:TransitionHelper.Id=" image"
149- CornerRadius =" 40" >
150- <Border .Background>
151- <ImageBrush ImageSource =" ms-appx:///Assets/Owl.jpg" />
152- </Border .Background>
153- </Border >
146+ Background =" {StaticResource ImageBackgroundBrush}"
147+ CornerRadius =" 40" />
154148 <StackPanel Spacing =" 5" >
155149 <TextBlock MaxWidth =" 200"
156150 HorizontalAlignment =" Center"
You can’t perform that action at this time.
0 commit comments