C# Class FirstFloor.ModernUI.Windows.Controls.ModernFrame

A simple content frame implementation with navigation support.
Inheritance: System.Windows.Controls.ContentControl
Exibir arquivo Open project: gro-ove/actools Class Usage Examples

Public Properties

Property Type Description
ContentLoaderProperty System.Windows.DependencyProperty
IsLoadingContentProperty System.Windows.DependencyProperty
KeepAliveProperty System.Windows.DependencyProperty
KeepContentAliveProperty System.Windows.DependencyProperty
OptionDisableTransitionAnimation bool
OptionTransitionName string
OptionUseSyncNavigation bool
SourceProperty System.Windows.DependencyProperty
TopSourceProperty System.Windows.DependencyProperty
TransitionNameProperty System.Windows.DependencyProperty

Public Methods

Method Description
GetKeepAlive ( DependencyObject o ) : bool?
GetKeepContentAlive ( DependencyObject o ) : bool
GetTopSource ( DependencyObject o ) : Uri
ModernFrame ( ) : System
OnApplyTemplate ( ) : void
SetKeepAlive ( DependencyObject o, bool value ) : void
SetKeepContentAlive ( DependencyObject o, bool value ) : void
SetTopSource ( DependencyObject o, Uri value ) : void

Private Methods

Method Description
CanNavigate ( Uri oldValue, Uri newValue, NavigationType navigationType ) : bool
GetChildFrames ( ) : IEnumerable
HandleRoutedEvent ( System.Windows.Input.CanExecuteRoutedEventArgs args ) : bool
Navigate ( Uri oldValue, Uri newValue, NavigationType navigationType ) : void
NavigateAsync ( Uri oldValue, Uri newValue, NavigationType navigationType ) : void
NavigateSync ( Uri oldValue, Uri newValue, NavigationType navigationType ) : void
OnBrowseBack ( object target, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnBrowseForward ( object target, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnCanBrowseBack ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
OnCanBrowseForward ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
OnCanCopy ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
OnCanGoToPage ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
OnCanRefresh ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
OnContentLoaderChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnCopy ( object target, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnFragmentNavigation ( IContent content, FragmentNavigationEventArgs e ) : void
OnGoToPage ( object target, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnKeepContentAliveChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnKeepContentAliveChanged ( bool keepAlive ) : void
OnLoaded ( object sender, RoutedEventArgs e ) : void
OnNavigated ( IContent oldContent, IContent newContent, NavigationEventArgs e ) : void
OnNavigating ( IContent content, NavigatingCancelEventArgs e ) : void
OnNavigationFailed ( NavigationFailedEventArgs e ) : void
OnRefresh ( object target, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
OnSourceChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnSourceChanged ( Uri oldValue, Uri newValue ) : void
RegisterChildFrame ( ModernFrame frame ) : void
SetContent ( Uri newSource, NavigationType navigationType, object newContent, bool contentIsError ) : void
SetNavigationFailedContent ( Uri newValue, NavigationType navigationType, Exception e ) : void
ShouldKeepContentAlive ( object content ) : bool

Method Details

GetKeepAlive() public static method

public static GetKeepAlive ( DependencyObject o ) : bool?
o System.Windows.DependencyObject
return bool?

GetKeepContentAlive() public static method

public static GetKeepContentAlive ( DependencyObject o ) : bool
o System.Windows.DependencyObject
return bool

GetTopSource() public static method

public static GetTopSource ( DependencyObject o ) : Uri
o System.Windows.DependencyObject
return System.Uri

ModernFrame() public method

public ModernFrame ( ) : System
return System

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

SetKeepAlive() public static method

public static SetKeepAlive ( DependencyObject o, bool value ) : void
o System.Windows.DependencyObject
value bool
return void

SetKeepContentAlive() public static method

public static SetKeepContentAlive ( DependencyObject o, bool value ) : void
o System.Windows.DependencyObject
value bool
return void

SetTopSource() public static method

public static SetTopSource ( DependencyObject o, Uri value ) : void
o System.Windows.DependencyObject
value System.Uri
return void

Property Details

ContentLoaderProperty public_oe static_oe property

public static DependencyProperty,System.Windows ContentLoaderProperty
return System.Windows.DependencyProperty

IsLoadingContentProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsLoadingContentProperty
return System.Windows.DependencyProperty

KeepAliveProperty public_oe static_oe property

public static DependencyProperty,System.Windows KeepAliveProperty
return System.Windows.DependencyProperty

KeepContentAliveProperty public_oe static_oe property

public static DependencyProperty,System.Windows KeepContentAliveProperty
return System.Windows.DependencyProperty

OptionDisableTransitionAnimation public_oe static_oe property

public static bool OptionDisableTransitionAnimation
return bool

OptionTransitionName public_oe static_oe property

public static string OptionTransitionName
return string

OptionUseSyncNavigation public_oe static_oe property

public static bool OptionUseSyncNavigation
return bool

SourceProperty public_oe static_oe property

public static DependencyProperty,System.Windows SourceProperty
return System.Windows.DependencyProperty

TopSourceProperty public_oe static_oe property

public static DependencyProperty,System.Windows TopSourceProperty
return System.Windows.DependencyProperty

TransitionNameProperty public_oe static_oe property

public static DependencyProperty,System.Windows TransitionNameProperty
return System.Windows.DependencyProperty