Click here to Skip to main content
15,860,943 members
Articles / Desktop Programming / WPF

GoalBook - A Hybrid Smart Client

Rate me:
Please Sign up or sign in to vote.
4.86/5 (24 votes)
25 Sep 2009CPOL10 min read 78.6K   834   69  
A WPF hybrid smart client that synchronises your goals with the Toodledo online To-do service.
<UserControl x:Class="GoalBook.Goals.Views.GoalsDialogView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:ModuleProperties="clr-namespace:GoalBook.Goals.Properties"
    Background="White"
    Width="400"
    Loaded="UserControl_Loaded">	
	<Grid Name="goalsDialogGrid">
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="*"></ColumnDefinition>
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition></RowDefinition>					
		</Grid.RowDefinitions>
		<Grid Margin="10" Height="Auto" Width="Auto">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="50"></ColumnDefinition>					
				<ColumnDefinition Width="*"></ColumnDefinition>					
			</Grid.ColumnDefinitions>
			<Grid.RowDefinitions>
				<RowDefinition Height="26"></RowDefinition>
				<RowDefinition Height="26"></RowDefinition>
				<RowDefinition Height="26"></RowDefinition>
				<RowDefinition Height="26"></RowDefinition>
				<RowDefinition Height="*"></RowDefinition>				
			</Grid.RowDefinitions>
			<Label Name="labelTitle" Grid.Row="0" Grid.Column="0" Content="{x:Static ModuleProperties:Resources.LabelTitle}"/>				
			<Label Name="labelLevel" Grid.Row="3" Grid.Column="0" Content="{x:Static ModuleProperties:Resources.LabelLevel}"/>
			<Label Name="labelContributes" Grid.Row="4" Grid.Column="0" Content="{x:Static ModuleProperties:Resources.LabelContributes}" Visibility="Collapsed"/>
			<TextBox Name="textBoxTitle" Margin="2" Grid.Row="0" Grid.Column="1" Grid.RowSpan="3" MaxLength="255" 
				AcceptsReturn="False" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" Text="{Binding Path=EditGoal.Title, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"/>
			<ComboBox Name="comboBoxLevel" Margin="2" Grid.Row="3" Grid.Column="1" 
				ItemsSource="{Binding Path=LevelList}" 
				DisplayMemberPath="Value"  
				SelectedValuePath="Key" 
				SelectedValue="{Binding Path=EditGoal.LevelID}"
			/>
			<ComboBox Name="comboBoxContributes" Margin="2" Grid.Row="4" Grid.Column="1" Visibility="Collapsed"
				ItemsSource="{Binding Path=ContributesList}" 
				DisplayMemberPath="Value"  
				SelectedValuePath="Key" 
				SelectedValue="{Binding Path=EditGoal.ContributesID}"					
			/>
		</Grid>
	</Grid>
</UserControl>

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)


Written By
Software Developer (Senior)
Australia Australia
I've been working as a software developer since 2000 and hold a Bachelor of Business degree from The Open Polytechnic of New Zealand. Computers are for people and I aim to build applications for people that they would want to use.

Comments and Discussions