All the controls missing in WPF. Over 1 million downloads.
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.

288 lines
9.5 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.
**********************************************************************/
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
namespace Xceed.Wpf.Toolkit
{
public class WizardPage : ContentControl
{
#region Properties
public static readonly DependencyProperty BackButtonVisibilityProperty = DependencyProperty.Register( "BackButtonVisibility", typeof( WizardPageButtonVisibility ), typeof( WizardPage ), new UIPropertyMetadata( WizardPageButtonVisibility.Inherit ) );
public WizardPageButtonVisibility BackButtonVisibility
{
get
{
return ( WizardPageButtonVisibility )GetValue( BackButtonVisibilityProperty );
}
set
{
SetValue( BackButtonVisibilityProperty, value );
}
}
public static readonly DependencyProperty CanCancelProperty = DependencyProperty.Register( "CanCancel", typeof( bool? ), typeof( WizardPage ), new UIPropertyMetadata( null ) );
public bool? CanCancel
{
get
{
return ( bool? )GetValue( CanCancelProperty );
}
set
{
SetValue( CanCancelProperty, value );
}
}
public static readonly DependencyProperty CancelButtonVisibilityProperty = DependencyProperty.Register( "CancelButtonVisibility", typeof( WizardPageButtonVisibility ), typeof( WizardPage ), new UIPropertyMetadata( WizardPageButtonVisibility.Inherit ) );
public WizardPageButtonVisibility CancelButtonVisibility
{
get
{
return ( WizardPageButtonVisibility )GetValue( CancelButtonVisibilityProperty );
}
set
{
SetValue( CancelButtonVisibilityProperty, value );
}
}
public static readonly DependencyProperty CanFinishProperty = DependencyProperty.Register( "CanFinish", typeof( bool? ), typeof( WizardPage ), new UIPropertyMetadata( null ) );
public bool? CanFinish
{
get
{
return ( bool? )GetValue( CanFinishProperty );
}
set
{
SetValue( CanFinishProperty, value );
}
}
public static readonly DependencyProperty CanHelpProperty = DependencyProperty.Register( "CanHelp", typeof( bool? ), typeof( WizardPage ), new UIPropertyMetadata( null ) );
public bool? CanHelp
{
get
{
return ( bool? )GetValue( CanHelpProperty );
}
set
{
SetValue( CanHelpProperty, value );
}
}
public static readonly DependencyProperty CanSelectNextPageProperty = DependencyProperty.Register( "CanSelectNextPage", typeof( bool? ), typeof( WizardPage ), new UIPropertyMetadata( null ) );
public bool? CanSelectNextPage
{
get
{
return ( bool? )GetValue( CanSelectNextPageProperty );
}
set
{
SetValue( CanSelectNextPageProperty, value );
}
}
public static readonly DependencyProperty CanSelectPreviousPageProperty = DependencyProperty.Register( "CanSelectPreviousPage", typeof( bool? ), typeof( WizardPage ), new UIPropertyMetadata( null ) );
public bool? CanSelectPreviousPage
{
get
{
return ( bool? )GetValue( CanSelectPreviousPageProperty );
}
set
{
SetValue( CanSelectPreviousPageProperty, value );
}
}
public static readonly DependencyProperty DescriptionProperty = DependencyProperty.Register( "Description", typeof( string ), typeof( WizardPage ) );
public string Description
{
get
{
return ( string )base.GetValue( DescriptionProperty );
}
set
{
base.SetValue( DescriptionProperty, value );
}
}
public static readonly DependencyProperty ExteriorPanelBackgroundProperty = DependencyProperty.Register( "ExteriorPanelBackground", typeof( Brush ), typeof( WizardPage ), new UIPropertyMetadata( null ) );
public Brush ExteriorPanelBackground
{
get
{
return ( Brush )GetValue( ExteriorPanelBackgroundProperty );
}
set
{
SetValue( ExteriorPanelBackgroundProperty, value );
}
}
public static readonly DependencyProperty ExteriorPanelContentProperty = DependencyProperty.Register( "ExteriorPanelContent", typeof( object ), typeof( WizardPage ), new UIPropertyMetadata( null ) );
public object ExteriorPanelContent
{
get
{
return ( object )GetValue( ExteriorPanelContentProperty );
}
set
{
SetValue( ExteriorPanelContentProperty, value );
}
}
public static readonly DependencyProperty FinishButtonVisibilityProperty = DependencyProperty.Register( "FinishButtonVisibility", typeof( WizardPageButtonVisibility ), typeof( WizardPage ), new UIPropertyMetadata( WizardPageButtonVisibility.Inherit ) );
public WizardPageButtonVisibility FinishButtonVisibility
{
get
{
return ( WizardPageButtonVisibility )GetValue( FinishButtonVisibilityProperty );
}
set
{
SetValue( FinishButtonVisibilityProperty, value );
}
}
public static readonly DependencyProperty HeaderBackgroundProperty = DependencyProperty.Register( "HeaderBackground", typeof( Brush ), typeof( WizardPage ), new UIPropertyMetadata( Brushes.White ) );
public Brush HeaderBackground
{
get
{
return ( Brush )GetValue( HeaderBackgroundProperty );
}
set
{
SetValue( HeaderBackgroundProperty, value );
}
}
public static readonly DependencyProperty HeaderImageProperty = DependencyProperty.Register( "HeaderImage", typeof( ImageSource ), typeof( WizardPage ), new UIPropertyMetadata( null ) );
public ImageSource HeaderImage
{
get
{
return ( ImageSource )GetValue( HeaderImageProperty );
}
set
{
SetValue( HeaderImageProperty, value );
}
}
public static readonly DependencyProperty HelpButtonVisibilityProperty = DependencyProperty.Register( "HelpButtonVisibility", typeof( WizardPageButtonVisibility ), typeof( WizardPage ), new UIPropertyMetadata( WizardPageButtonVisibility.Inherit ) );
public WizardPageButtonVisibility HelpButtonVisibility
{
get
{
return ( WizardPageButtonVisibility )GetValue( HelpButtonVisibilityProperty );
}
set
{
SetValue( HelpButtonVisibilityProperty, value );
}
}
public static readonly DependencyProperty NextButtonVisibilityProperty = DependencyProperty.Register( "NextButtonVisibility", typeof( WizardPageButtonVisibility ), typeof( WizardPage ), new UIPropertyMetadata( WizardPageButtonVisibility.Inherit ) );
public WizardPageButtonVisibility NextButtonVisibility
{
get
{
return ( WizardPageButtonVisibility )GetValue( NextButtonVisibilityProperty );
}
set
{
SetValue( NextButtonVisibilityProperty, value );
}
}
public static readonly DependencyProperty NextPageProperty = DependencyProperty.Register( "NextPage", typeof( WizardPage ), typeof( WizardPage ), new UIPropertyMetadata( null ) );
public WizardPage NextPage
{
get
{
return ( WizardPage )GetValue( NextPageProperty );
}
set
{
SetValue( NextPageProperty, value );
}
}
public static readonly DependencyProperty PageTypeProperty = DependencyProperty.Register( "PageType", typeof( WizardPageType ), typeof( WizardPage ), new UIPropertyMetadata( WizardPageType.Exterior ) );
public WizardPageType PageType
{
get
{
return ( WizardPageType )GetValue( PageTypeProperty );
}
set
{
SetValue( PageTypeProperty, value );
}
}
public static readonly DependencyProperty PreviousPageProperty = DependencyProperty.Register( "PreviousPage", typeof( WizardPage ), typeof( WizardPage ), new UIPropertyMetadata( null ) );
public WizardPage PreviousPage
{
get
{
return ( WizardPage )GetValue( PreviousPageProperty );
}
set
{
SetValue( PreviousPageProperty, value );
}
}
public static readonly DependencyProperty TitleProperty = DependencyProperty.Register( "Title", typeof( string ), typeof( WizardPage ) );
public string Title
{
get
{
return ( string )base.GetValue( TitleProperty );
}
set
{
base.SetValue( TitleProperty, value );
}
}
#endregion //Properties
#region Constructors
static WizardPage()
{
DefaultStyleKeyProperty.OverrideMetadata( typeof( WizardPage ), new FrameworkPropertyMetadata( typeof( WizardPage ) ) );
}
#endregion //Constructors
}
}