|  | 
| 1 |  | -<UserControl x:Class="WPFDevelopers.Samples.ExampleViews.ScreenCutExample" | 
| 2 |  | -             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | 
| 3 |  | -             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | 
| 4 |  | -             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"  | 
| 5 |  | -             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"  | 
| 6 |  | -             xmlns:local="clr-namespace:WPFDevelopers.Samples.ExampleViews" | 
| 7 |  | -             xmlns:controls="clr-namespace:WPFDevelopers.Samples.Controls" | 
| 8 |  | -             mc:Ignorable="d"  | 
| 9 |  | -             d:DesignHeight="450" d:DesignWidth="800"> | 
|  | 1 | +<UserControl | 
|  | 2 | +    x:Class="WPFDevelopers.Samples.ExampleViews.ScreenCutExample" | 
|  | 3 | +    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | 
|  | 4 | +    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | 
|  | 5 | +    xmlns:controls="clr-namespace:WPFDevelopers.Samples.Controls" | 
|  | 6 | +    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | 
|  | 7 | +    xmlns:local="clr-namespace:WPFDevelopers.Samples.ExampleViews" | 
|  | 8 | +    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | 
|  | 9 | +    d:DesignHeight="450" | 
|  | 10 | +    d:DesignWidth="800" | 
|  | 11 | +    mc:Ignorable="d"> | 
| 10 | 12 |     <controls:CodeViewer> | 
| 11 |  | -        <UniformGrid Rows="2"> | 
| 12 |  | -            <CheckBox Content="截图时隐藏当前窗口"  | 
| 13 |  | -                  VerticalAlignment="Bottom" HorizontalAlignment="Center" | 
| 14 |  | -                  IsChecked="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:ScreenCutExample}}, Path=IsChecked}"/> | 
| 15 |  | -            <Button Content="截屏" VerticalAlignment="Top" HorizontalAlignment="Center" Click="Button_Click" | 
| 16 |  | -                Margin="0,10"/> | 
| 17 |  | -        </UniformGrid> | 
|  | 13 | +        <Grid> | 
|  | 14 | +            <Grid.RowDefinitions> | 
|  | 15 | +                <RowDefinition Height="Auto" /> | 
|  | 16 | +                <RowDefinition /> | 
|  | 17 | +                <RowDefinition /> | 
|  | 18 | +            </Grid.RowDefinitions> | 
|  | 19 | +            <Grid.ColumnDefinitions> | 
|  | 20 | +                <ColumnDefinition /> | 
|  | 21 | +                <ColumnDefinition /> | 
|  | 22 | +            </Grid.ColumnDefinitions> | 
|  | 23 | +            <CheckBox | 
|  | 24 | +                Margin="0,10,0,10" | 
|  | 25 | +                HorizontalAlignment="Center" | 
|  | 26 | +                Content="截图时隐藏当前窗口" | 
|  | 27 | +                IsChecked="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:ScreenCutExample}}, Path=IsChecked}" /> | 
|  | 28 | +            <Button | 
|  | 29 | +                Grid.Row="1" | 
|  | 30 | +                HorizontalAlignment="Center" | 
|  | 31 | +                VerticalAlignment="Top" | 
|  | 32 | +                Click="Button_Click" | 
|  | 33 | +                Content="截屏" /> | 
|  | 34 | +            <Button | 
|  | 35 | +                Grid.Row="1" | 
|  | 36 | +                Grid.Column="1" | 
|  | 37 | +                HorizontalAlignment="Center" | 
|  | 38 | +                VerticalAlignment="Top" | 
|  | 39 | +                Click="ButtonExt_Click" | 
|  | 40 | +                Content="截屏Ext" | 
|  | 41 | +                Style="{StaticResource WD.SuccessPrimaryButton}" /> | 
|  | 42 | +            <Image | 
|  | 43 | +                x:Name="myImage" | 
|  | 44 | +                Grid.Row="2" | 
|  | 45 | +                Grid.ColumnSpan="2" | 
|  | 46 | +                Stretch="Uniform" /> | 
|  | 47 | +        </Grid> | 
| 18 | 48 |         <controls:CodeViewer.SourceCodes> | 
| 19 |  | -            <controls:SourceCodeModel  | 
| 20 |  | -                CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/ScreenCutExample.xaml"  | 
| 21 |  | -                CodeType="Xaml"/> | 
| 22 |  | -            <controls:SourceCodeModel  | 
| 23 |  | -                CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/ScreenCutExample.xaml.cs"  | 
| 24 |  | -                CodeType="CSharp"/> | 
|  | 49 | +            <controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/ScreenCutExample.xaml" CodeType="Xaml" /> | 
|  | 50 | +            <controls:SourceCodeModel CodeSource="/WPFDevelopers.SamplesCode;component/ExampleViews/ScreenCutExample.xaml.cs" CodeType="CSharp" /> | 
| 25 | 51 |         </controls:CodeViewer.SourceCodes> | 
| 26 | 52 |     </controls:CodeViewer> | 
| 27 | 53 | </UserControl> | 
0 commit comments