12345678910111213141516171819202122232425262728293031323334353637383940 |
- <Window x:Class="Test.Decorator.WinDecorator"
- 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:Test.Decorator"
- xmlns:controls="http://schemas.FWind/xaml"
- mc:Ignorable="d"
- Title="WinDecorator" Height="300" Width="300">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"></RowDefinition>
- <RowDefinition Height="Auto"></RowDefinition>
- <RowDefinition Height="Auto"></RowDefinition>
- <RowDefinition></RowDefinition>
- </Grid.RowDefinitions>
- <!--<controls:DescriptionDecorator Description="米" >
- <TextBox Text="2131" BorderThickness="0"></TextBox>
- </controls:DescriptionDecorator>-->
- <Label Content="天地玄黄" Width="60" HorizontalAlignment="Left" Background="Red"></Label>
- <controls:ButtonDecorator Grid.Row="1" Description="打开">
- <controls:ButtonDecorator.ButtonStyle>
- <Style TargetType="Button">
- <Setter Property="Foreground" Value="Red"></Setter>
- </Style>
- </controls:ButtonDecorator.ButtonStyle>
-
-
- <TextBox Text="2131" BorderThickness="0"></TextBox>
- </controls:ButtonDecorator>
- <controls:IntegerSpinner x:Name="Spinner" Grid.Row="2" Value="{Binding Value,Mode=TwoWay}" ValueChanged="IntegerSpinner_ValueChanged" ForceType="KeyDown"></controls:IntegerSpinner>
- <DataGrid Grid.Row="3" ItemsSource="{Binding Items}" VirtualizingPanel.IsVirtualizing="False">
- <DataGrid.Columns>
- <DataGridTextColumn Header="序号" Binding="{Binding RelativeSource={RelativeSource AncestorType=DataGridRow,Mode=FindAncestor},Converter= {x:Static controls:ConverterFactory.RowIndex}}"></DataGridTextColumn>
- </DataGrid.Columns>
- </DataGrid>
- </Grid>
- </Window>
|