Click here to Skip to main content
15,896,557 members
Articles / Desktop Programming / Windows Forms

Reputationator - CP Narcissists Rejoice! Part 1 of 4

Rate me:
Please Sign up or sign in to vote.
4.93/5 (35 votes)
30 Aug 2011CPOL22 min read 59.1K   882   41  
Keep more detailed track of your Codeproject reputation points.
<UserControl x:Class="RepWPF.CtrlChartConfigPanel"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
			 xmlns:exwtk="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit.Extended"
             mc:Ignorable="d" 
			 FontFamily="Arial" FontSize="11" >
	<UserControl.Resources>
		<DataTemplate x:Key="MyDataTemplate" >
			<StackPanel Orientation="Horizontal" >
				<CheckBox />
				<Label />
			</StackPanel>
		</DataTemplate>
	</UserControl.Resources>
	
	<Grid Background="#EEEEEE" Width="228">
		<Border Padding="5,5,5,5">
		<StackPanel Orientation="Vertical" >
				<Label Content="Reputation Categories" />
				<!--<ListBox Height="132" HorizontalAlignment="Left" Name="listBox1" VerticalAlignment="Top" Width="141" >
					<ListBoxItem Height="16" Content="Author" />
					<ListBoxItem Height="16" Content="Authority"/>
					<ListBoxItem Height="16" Content="Debator"/>
					<ListBoxItem Height="16" Content="Editor"/>
					<ListBoxItem Height="16" Content="Enquirer"/>
					<ListBoxItem Height="16" Content="Organizer"/>
					<ListBoxItem Height="16" Content="Participant"/>
					<ListBoxItem Height="16" Content="Total"/>
				</ListBox>-->
                <exwtk:CheckListBox Name="checkedLBCategories" 
                                    Height="138" 
                                    HorizontalAlignment="Left" 
                                    VerticalAlignment="Top" 
                                    Width="141" 
                                    Background="White" 
                                    x:FieldModifier="public" 
                                    ItemsSource="{Binding WpfGlobals.CLBCategories}"
                                    DisplayMemberPath="Name"
                                    CheckedMemberPath="IsChecked"
                                    Command="{Binding ItemCheckedCommand, Mode=TwoWay}" >
				</exwtk:CheckListBox>
				<Grid Margin="0,5,0,0">
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="Auto" />
						<ColumnDefinition Width="*" />
					</Grid.ColumnDefinitions>
					<Grid.RowDefinitions>
						<RowDefinition Height="Auto"/>
						<RowDefinition Height="5"/>
						<RowDefinition />
						<RowDefinition Height="5"/>
						<RowDefinition />
						<RowDefinition Height="5"/>
						<RowDefinition />
						<RowDefinition Height="5"/>
						<RowDefinition />
					</Grid.RowDefinitions>
					<Label Content="Chart" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Right"/>
                    <ComboBox Name="comboChart" Width="130" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Left" Margin="5,0,0,0" x:FieldModifier="public">
                        <ComboBoxItem IsSelected="True" >Accumulated By Day</ComboBoxItem>
                        <ComboBoxItem >Accumulated Since</ComboBoxItem>
                        <ComboBoxItem >Current Track</ComboBoxItem>
                        <ComboBoxItem >Overall Breakdown</ComboBoxItem>
                    </ComboBox>
					<Label Content="Time period" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Right"/>
                    <ComboBox Name="comboTimePeriod" Width="110" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" Margin="5,0,0,0"  x:FieldModifier="public">
                        <ComboBoxItem >Current Week</ComboBoxItem>
                        <ComboBoxItem >Current Month</ComboBoxItem>
                        <ComboBoxItem >Current Year</ComboBoxItem>
                        <ComboBoxItem IsSelected="True" >Last 7 days</ComboBoxItem>
                        <ComboBoxItem >Last 30 days</ComboBoxItem>
                        <ComboBoxItem >Last 365 days</ComboBoxItem>
                        <ComboBoxItem >Specified Period</ComboBoxItem>
                    </ComboBox>
					<Grid Grid.Column="1" Grid.Row="4" Margin="5,0,0,0">
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="Auto" />
							<ColumnDefinition Width="*" />
						</Grid.ColumnDefinitions>
						<Grid.RowDefinitions>
							<RowDefinition />
							<RowDefinition Height="4"/>
							<RowDefinition />
						</Grid.RowDefinitions>
						<Label Grid.Column="0" Grid.Row="0" Content="From" />
						<Label Grid.Column="0" Grid.Row="2" Content="To" />
                        <DatePicker Name="datePickerFrom" Grid.Column="1" Grid.Row="0" Width="100" HorizontalAlignment="Left" Margin="5,0,0,0" x:FieldModifier="public" ></DatePicker>
                        <DatePicker Name="datePickerTo" Grid.Column="1" Grid.Row="2" Width="100" HorizontalAlignment="Left" Margin="5,0,0,0" x:FieldModifier="public" ></DatePicker>
					</Grid>
                    <CheckBox Name="checkBoxTrendLines" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="6" Content="Show trend lines for selected categories" x:FieldModifier="public" />
				</Grid>
			</StackPanel> 
		</Border>
	</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) Paddedwall Software
United States United States
I've been paid as a programmer since 1982 with experience in Pascal, and C++ (both self-taught), and began writing Windows programs in 1991 using Visual C++ and MFC. In the 2nd half of 2007, I started writing C# Windows Forms and ASP.Net applications, and have since done WPF, Silverlight, WCF, web services, and Windows services.

My weakest point is that my moments of clarity are too brief to hold a meaningful conversation that requires more than 30 seconds to complete. Thankfully, grunts of agreement are all that is required to conduct most discussions without committing to any particular belief system.

Comments and Discussions