Click here to Skip to main content
12,761,209 members (30,178 online)
Click here to Skip to main content

Stats

364.7K views
6.3K downloads
483 bookmarked
Posted 5 May 2008

User Settings Applied

, 5 Sep 2013 CPOL
Simplifying the .NET User Configuration for Windows Forms and WPF
Configuration
Properties
ConfigurationConsoleDemo
Properties
ConfigurationWindows
Properties
ConfigurationWindowsDemo
App.ico
Properties
ConfigurationWindowsForms
Properties
ConfigurationWindowsFormsDemo
App.ico
ConfigurationWindowsFormsDemo.csproj.user
Properties
Configuration2010.csproj.user
ConfigurationWindows2010.csproj.user
App.ico
ConfigurationWindowsDemo2010.csproj.user
App.ico
bin
Release
Itenso.Configuration.dll
Itenso.Configuration.Windows.dll
Itenso.Configuration.WindowsForms.dll
App.ico
App.ico
Itenso.Configuration.dll
Itenso.Configuration.Windows.dll
Itenso.Configuration.WindowsForms.dll
App.ico
App.ico
<win:BaseWindow
	x:Class="Itenso.Solutions.Community.ConfigurationWindowsDemo.DerivedSettingsWindow"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:win="clr-namespace:Itenso.Solutions.Community.ConfigurationWindowsDemo"
	Icon="/ConfigurationWindowsDemo;component/App.ico"
	Title="User Settings Applied - WPF Derived Window"
	Height="300"
	Width="400"
	MinWidth="300"
	MinHeight="250">
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition
				Height="Auto" />
			<RowDefinition />
		</Grid.RowDefinitions>
		<TextBlock
			Grid.Row="0"
			FontSize="14"
			Padding="5"
			Background="Silver"
			TextWrapping="Wrap">
      This Window is derived from BaseWindow.<LineBreak /><LineBreak />Please change Window Location/Size/State and re-open the window
		</TextBlock>
		<Grid
			Grid.Row="1">
			<Grid.RowDefinitions>
				<RowDefinition
					Height="Auto" />
				<RowDefinition
					Height="Auto" />
				<RowDefinition
					Height="Auto" />
				<RowDefinition
					Height="Auto" />
				<RowDefinition
					Height="Auto" />
			</Grid.RowDefinitions>
			<CheckBox
				x:Name="Option1"
				Grid.Row="0"
				Margin="5"
				Content="Option 1" />
			<CheckBox
				x:Name="Option2"
				Grid.Row="1"
				Margin="5"
				Content="Option 2" />
			<CheckBox
				x:Name="Option3"
				Grid.Row="2"
				Margin="5"
				Content="Option 3 (excluded)" />
			<Grid
				Grid.Row="3">
				<Grid.ColumnDefinitions>
					<ColumnDefinition
						Width="Auto" />
					<ColumnDefinition
						Width="Auto" />
				</Grid.ColumnDefinitions>
				<Grid.RowDefinitions>
					<RowDefinition
						Height="Auto" />
					<RowDefinition
						Height="Auto" />
					<RowDefinition
						Height="Auto" />
				</Grid.RowDefinitions>
				<Label
					Grid.Row="0"
					Grid.Column="0"
					Content="Input 1:" />
				<TextBox
					Grid.Row="0"
					Grid.Column="1"
					x:Name="Edit1"
					MinWidth="100" />
				<Label
					Grid.Row="1"
					Grid.Column="0"
					Content="Input 2:" />
				<TextBox
					Grid.Row="1"
					Grid.Column="1"
					x:Name="Edit2"
					MinWidth="100" />
				<Label
					Grid.Row="2"
					Grid.Column="0"
					Content="Input 3 (excluded):" />
				<TextBox
					Grid.Row="2"
					Grid.Column="1"
					x:Name="Edit3"
					MinWidth="100" />
			</Grid>
		</Grid>
	</Grid>
</win:BaseWindow>

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 Code Project Open License (CPOL)

Share

About the Author

Jani Giannoudis
Software Developer (Senior)
Switzerland Switzerland
No Biography provided

You may also be interested in...

Pro
Pro
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170217.1 | Last Updated 5 Sep 2013
Article Copyright 2008 by Jani Giannoudis
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid