/
MainWindow.xaml
41 lines (41 loc) · 7.31 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<Window x:Class="ViewFrameSample001.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:ViewFrameSample001"
mc:Ignorable="d"
Title="MainWindow" Height="800" Width="1000">
<Grid>
<Grid.Resources >
<Style TargetType= "Border">
<Setter Property="HorizontalAlignment" Value="Stretch"/>
<Setter Property="VerticalAlignment" Value="Stretch"/>
</Style>
<Style TargetType="Path">
<Setter Property="Data" Value="M21.72835,6.8201935C21.920952,6.8163431 22.116752,6.8679493 22.290755,6.9804427 22.427784,7.0704527 25.672903,9.1894023 26.794955,11.525374 27.348962,12.678353 27.026958,14.096327 26.010898,14.97331 24.610851,16.184287 23.543824,17.213259 23.0088,17.868247 23.104812,17.981251 31.906142,26.339101 31.011088,31.174007 30.922096,31.656007 30.502097,31.992 30.029057,31.992 29.969057,31.992 29.907073,31.986995 29.846066,31.975002 29.303046,31.874998 28.944024,31.353004 29.045041,30.810014 29.109043,30.464021 29.084509,30.065233 28.98722,29.627321L28.984351,29.615375 28.893414,29.674474C27.404489,30.593013 26.325455,29.747566 25.852693,29.331003 24.326653,30.736005 22.542606,29.791004 21.855588,29.328002 20.106542,30.651004 18.786507,29.818004 18.179491,29.356002 17.464472,30.047004 16.497447,30.142004 16.018435,30.142004 15.85043,30.142004 15.741427,30.130004 15.725427,30.128004 15.451419,30.097003 15.254414,29.848003 15.286415,29.574003 15.318416,29.301002 15.567422,29.104002 15.838429,29.135002 15.85743,29.137002 16.97946,29.246002 17.586476,28.528001 17.845482,28.224 18.286494,28.173 18.591502,28.409002 19.167517,28.862001 20.009539,29.525003 21.335574,28.466001 21.628582,28.230001 22.022592,28.217 22.3146,28.429 22.841614,28.812002 24.184649,29.587003 25.248677,28.525001 25.565685,28.209001 26.068698,28.187 26.393707,28.475002 27.008723,29.022003 27.548737,29.387002 28.475761,28.754001 28.532763,28.715501 28.59489,28.690189 28.658454,28.677455L28.687901,28.673027 28.652195,28.581771C27.417508,25.526124 23.803005,21.342846 21.660757,19.370219 21.537623,19.257096 21.431581,19.131986 21.342867,18.998242L21.333268,18.982994 21.169215,18.958376C20.576516,18.848822 20.122303,18.541627 19.827372,18.316184 19.111387,19.008013 18.144406,19.102991 17.665416,19.102991 17.49842,19.102991 17.390422,19.090993 17.373422,19.088994 17.099428,19.058001 16.903432,18.810062 16.935431,18.535129 16.966431,18.261197 17.209426,18.066245 17.48742,18.096237 17.49742,18.097237 18.624397,18.209209 19.234384,17.488387 19.492379,17.184461 19.93137,17.131474 20.240363,17.371415 20.436859,17.525377 20.668104,17.707082 20.940474,17.834926L21.006548,17.863657 21.006454,17.838876C21.014817,17.40215 21.163844,16.966081 21.458722,16.604277 22.23576,15.652298 23.652806,14.369317 24.703872,13.460337 25.031887,13.17633 25.153871,12.726341 24.991877,12.390348 24.260831,10.86938 22.008762,9.181407 21.203738,8.6594133 20.739701,8.3594309 20.607707,7.7404388 20.907707,7.2764421 21.095225,6.9870744 21.407346,6.8266109 21.72835,6.8201935z M15.917785,6.8198679C16.047529,6.8144305 16.180399,6.8344928 16.309393,6.8832423 16.716377,7.0342408 20.313228,8.430227 21.46818,10.832203 21.693233,11.300605 21.773718,11.812907 21.721837,12.314935L21.718263,12.343811 21.762489,12.334064C21.856097,12.308999,21.963446,12.263274,22.083262,12.185909L22.093756,12.178715 22.096153,12.170255C22.116884,12.10868 22.150003,12.050136 22.195746,11.998402 22.36728,11.803463 22.656568,11.776343 22.861769,11.924454L22.897521,11.953122 22.902303,11.955689C22.944546,11.981131,22.983727,12.013296,23.018233,12.052105L23.019516,12.053712 23.059635,12.083817C23.549378,12.437945 23.849127,12.269973 23.884465,12.247324 24.112427,12.104369 24.421376,12.162351 24.572351,12.385281 24.723326,12.608211 24.678333,12.905118 24.461369,13.063069 24.438373,13.080063 24.119426,13.306992 23.626508,13.306992 23.365989,13.306992 23.056794,13.243676 22.717443,13.051749L22.649109,13.011034 22.589681,13.050098C22.213543,13.285625 21.871301,13.360993 21.587006,13.360993 21.556189,13.360993 21.526051,13.360106 21.496623,13.35844L21.413921,13.351496 21.372696,13.430566C21.200795,13.744989 20.969951,14.034516 20.684213,14.281169 20.314228,14.601166 19.681254,15.058161 18.949284,15.587157 17.898328,16.346149 16.459387,17.386138 16.065403,17.868134L15.892411,18.072132C15.66342,18.33413 15.66342,18.33413 15.690419,18.550128 15.737417,18.928124 16.048404,19.421118 16.377391,19.943114 17.106783,21.099884 17.723875,22.333184 17.664278,23.815706L17.663797,23.824163 17.684039,23.824209C18.036049,23.822193 18.779255,23.748304 19.234478,23.209705 19.491463,22.905649 19.932437,22.852638 20.240419,23.091682 20.633396,23.39974 21.169364,23.820817 21.887321,23.695795 22.158305,23.646785 22.41829,23.828819 22.466287,24.10087 22.514284,24.372919 22.333295,24.632967 22.061311,24.679975 21.021373,24.865011 20.256418,24.364917 19.827443,24.037857 19.111486,24.728984 18.145543,24.824003 17.666571,24.824003 17.624574,24.824003 17.586326,24.823253 17.552328,24.822095L17.523064,24.820873 17.518104,24.842872C17.072373,26.681995 15.569268,28.900243 12.154565,31.758996 11.966573,31.914995 11.739582,31.991994 11.512591,31.991994 11.226604,31.991994 10.943615,31.869997 10.745624,31.633998 10.390638,31.210002 10.446636,30.580009 10.869618,30.225011 17.170358,24.951065 15.850412,22.857084 14.685461,21.010103 14.254478,20.32511 13.807497,19.616117 13.706501,18.796125 13.569507,17.694136 14.059486,17.131141 14.384473,16.758145L14.515468,16.604146C15.035446,15.967153 16.195398,15.109161 17.778333,13.966172 18.444305,13.485177 19.073279,13.031182 19.377267,12.768184 19.705253,12.484187 19.826248,12.034192 19.665255,11.699195 18.980283,10.274209 16.446388,9.0672207 15.612422,8.7572238 15.094444,8.5642257 14.830455,7.9892313 15.023447,7.4712367 15.167441,7.0819904 15.528551,6.8361803 15.917785,6.8198679z M7.0079994,2.7389989L2,7.4239978 2,13.990995 6.0070124,13.990995 6.0070124,10.447C6.0070124,9.8950007 6.4550123,9.4470012 7.0070124,9.4470015 7.5590124,9.4470012 8.0070124,9.8950007 8.0070124,10.447L8.0070124,13.990995 12.012999,13.990995 12.012999,7.4219975z M7.0079994,0L14.012999,6.553998 14.012999,15.990995 0,15.990995 0,6.5549977z"/>
<Setter Property="Stretch" Value="Uniform"/>
<Setter Property="RenderTransformOrigin" Value="0.5,0.5"/>
</Style>
</Grid.Resources>
<Border >
<Path Fill="LightGray" />
</Border>
<Border Background="Yellow">
<Border.Clip >
<RectangleGeometry Rect="100,100,200,200"/>
</Border.Clip>
<Path Fill="#FF0000FF">
<Path.RenderTransform>
<TransformGroup>
<TransformGroup.Children>
<RotateTransform Angle="0" />
<ScaleTransform ScaleX="1" ScaleY="1" />
<TranslateTransform X="0" Y="0"/>
</TransformGroup.Children>
</TransformGroup>
</Path.RenderTransform>
</Path>
</Border>
</Grid>
</Window>