You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
2.3 KiB
40 lines
2.3 KiB
<!--*********************************************************************
|
|
|
|
Extended WPF Toolkit
|
|
|
|
Copyright (C) 2010-2012 Xceed Software Inc.
|
|
|
|
This program is provided to you under the terms of the Microsoft Public
|
|
License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license
|
|
|
|
This program can be provided to you by Xceed Software Inc. under a
|
|
proprietary commercial license agreement for use in non-Open Source
|
|
projects. The commercial version of Extended WPF Toolkit also includes
|
|
priority technical support, commercial updates, and many additional
|
|
useful WPF controls if you license Xceed Business Suite for WPF.
|
|
|
|
Visit http://xceed.com and follow @datagrid on Twitter.
|
|
|
|
********************************************************************-->
|
|
<sample:DemoView x:Class="Samples.Modules.PropertyGrid.Views.SpecifyingProperties"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:sample="clr-namespace:Samples.Infrastructure.Controls;assembly=Samples.Infrastructure"
|
|
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
|
|
Title="Specifying Properties"
|
|
Description="By default the propertyGrid will autogenerate all the properties for a given object. You can override this behavior by setting the AutoGenerateProperties property to False, and then provide a collection of PropertyDefinitions of the properties you would like to show.">
|
|
<StackPanel Grid.Row="1" Margin="10">
|
|
<TextBlock Text="Specifying Properties:" Style="{StaticResource Header}" />
|
|
<xctk:PropertyGrid x:Name="_propertyGrid"
|
|
Width="450"
|
|
Margin="10"
|
|
AutoGenerateProperties="False">
|
|
<!-- Only the following properties will be displayed in the PropertyGrid -->
|
|
<xctk:PropertyGrid.PropertyDefinitions>
|
|
<xctk:PropertyDefinition Name="FirstName" />
|
|
<xctk:PropertyDefinition Name="FavoriteColor" />
|
|
<xctk:PropertyDefinition Name="PetNames" />
|
|
</xctk:PropertyGrid.PropertyDefinitions>
|
|
</xctk:PropertyGrid>
|
|
</StackPanel>
|
|
</sample:DemoView>
|
|
|