Click here to Skip to main content
15,891,704 members
Articles / Desktop Programming / WPF

WPF CRUD Generator (Scaffolding)

Rate me:
Please Sign up or sign in to vote.
4.89/5 (11 votes)
4 Jun 2009LGPL35 min read 88.3K   6.3K   61  
Semi-automatic GUI generation from Domain Models.
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:crud="clr-namespace:Technewlogic.Crud.Controls"
		xmlns:controls="clr-namespace:Technewlogic.WpfShell.UI.Controls"
		xmlns:converter="clr-namespace:Technewlogic.WpfShell.UI.Converter">

	<ResourceDictionary.MergedDictionaries>
		<ResourceDictionary Source="/Technewlogic.WpfShell;component/Resources/ShellResources.xaml" />
	</ResourceDictionary.MergedDictionaries>

	<Style TargetType="{x:Type crud:ModificationPanel}" x:Key="{x:Type crud:ModificationPanel}">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type crud:ModificationPanel}">
					<StackPanel Orientation="Horizontal">
						<StackPanel>
							<Button x:Name="PART_OkButton" Content="Ok" Margin="5" />
							<Button x:Name="PART_CancelButton" Content="Abbrechen" Margin="5" />
						</StackPanel>
						<Border BorderBrush="Gray" BorderThickness="0.5" Margin="5" />
						<!--<WrapPanel Orientation="Vertical" x:Name="PART_PropertyPanel" Margin="5" />-->
						<controls:KeyValueGrid x:Name="PART_PropertyPanel" Margin="5" />
					</StackPanel>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

</ResourceDictionary>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)


Written By
Software Developer (Senior) www.technewlogic.de
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions