├── .gitattributes
├── .gitignore
├── .nuget
├── NuGet.Config
├── NuGet.exe
└── NuGet.targets
├── Elysium Extra.sln
├── Elysium.png
├── LICENSE
├── README.md
├── Screenshots
├── Animation-1024x575.png
├── App-Bar-1024x575.png
├── Border-1024x575.png
├── Button-1024x575.png
├── Colour-1024x575.png
├── DataGrid-1024x575.png
├── Drag-Drop-1-1024x575.png
├── Drag-Drop-2-1024x575.png
├── ElasticPicker-1-1024x575.png
├── ElasticPicker-2-1024x575.png
├── Expander-1024x575.png
├── ExpanderMenu-1024x575.png
├── FlipControl-1024x575.png
├── Flyout1-1024x575.png
├── Flyout2-1024x575.png
├── Icon1-1024x575.png
├── Input-ButtonTextBox-1024x575.png
├── Input-DatePicker-1024x575.png
├── Input-Numeric-1024x575.png
├── Input-RichTextBox-1024x575.png
├── Input-TextBox-1024x575.png
├── ListBox-1-1024x575.png
├── ListBox-2-1024x575.png
├── MenuItem-1024x575.png
├── MessageDialog-1024x575.png
├── NotifyBox-1024x575.png
├── OverlayWindow-1024x575.png
├── Paging-1-1024x575.png
├── Paging-2-1024x575.png
├── Progress-1024x575.png
├── TreeView-1024x575.png
├── Validation-1024x575.png
├── Window-1-1024x575.png
├── Wizard-1-1024x575.png
└── Wizard-3-1024x575.png
├── Source-branch
├── Framework.UI.TestHarness
│ ├── App.config
│ ├── App.xaml
│ ├── App.xaml.cs
│ ├── Assets
│ │ ├── Background1.jpg
│ │ ├── Background2.jpg
│ │ ├── Icon.png
│ │ └── IconColourSystem.png
│ ├── Framework.UI.TestHarness.csproj
│ ├── MainView.xaml
│ ├── MainView.xaml.cs
│ ├── Models
│ │ ├── Fund.cs
│ │ ├── FundCollection.cs
│ │ ├── Person.cs
│ │ ├── PersonCollection.cs
│ │ ├── Settings.Designer.cs
│ │ ├── Settings.settings
│ │ └── WizardViewModel.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── ViewModels
│ │ ├── ColoursViewModel.cs
│ │ ├── CommandsViewModel.cs
│ │ ├── DataGridViewModel.cs
│ │ ├── DragAndDropViewModel.cs
│ │ ├── ElasticPickerViewModel.cs
│ │ ├── ExpanderMenuViewModel.cs
│ │ ├── IconViewModel.cs
│ │ ├── InputViewModel.cs
│ │ ├── ListBoxViewModel.cs
│ │ ├── MenuItemViewModel.cs
│ │ ├── StyleViewModel.cs
│ │ ├── ValidationViewModel.cs
│ │ └── WizardViewModel.cs
│ ├── Views
│ │ ├── AnimationView.xaml
│ │ ├── AnimationView.xaml.cs
│ │ ├── AppBarView.xaml
│ │ ├── AppBarView.xaml.cs
│ │ ├── BackgroundView.xaml
│ │ ├── BackgroundView.xaml.cs
│ │ ├── BordersView.xaml
│ │ ├── BordersView.xaml.cs
│ │ ├── ButtonsView.xaml
│ │ ├── ButtonsView.xaml.cs
│ │ ├── ColoursView.xaml
│ │ ├── ColoursView.xaml.cs
│ │ ├── CommandsView.xaml
│ │ ├── CommandsView.xaml.cs
│ │ ├── ConvertersView.xaml
│ │ ├── ConvertersView.xaml.cs
│ │ ├── DataGridView.xaml
│ │ ├── DataGridView.xaml.cs
│ │ ├── DragAndDropView.xaml
│ │ ├── DragAndDropView.xaml.cs
│ │ ├── ElasticPickerView.xaml
│ │ ├── ElasticPickerView.xaml.cs
│ │ ├── ElysiumView.xaml
│ │ ├── ElysiumView.xaml.cs
│ │ ├── ExpanderMenuView.xaml
│ │ ├── ExpanderMenuView.xaml.cs
│ │ ├── ExpandersView.xaml
│ │ ├── ExpandersView.xaml.cs
│ │ ├── FlipControlView.xaml
│ │ ├── FlipControlView.xaml.cs
│ │ ├── FlyoutView.xaml
│ │ ├── FlyoutView.xaml.cs
│ │ ├── FocusVisualStyleView.xaml
│ │ ├── FocusVisualStyleView.xaml.cs
│ │ ├── IconsView.xaml
│ │ ├── IconsView.xaml.cs
│ │ ├── InputView.xaml
│ │ ├── InputView.xaml.cs
│ │ ├── ListBoxView.xaml
│ │ ├── ListBoxView.xaml.cs
│ │ ├── ListViewView.xaml
│ │ ├── ListViewView.xaml.cs
│ │ ├── MenuItemView.xaml
│ │ ├── MenuItemView.xaml.cs
│ │ ├── MessageDialogView.xaml
│ │ ├── MessageDialogView.xaml.cs
│ │ ├── NotifyBoxView.xaml
│ │ ├── NotifyBoxView.xaml.cs
│ │ ├── OverlayWindowExample.xaml
│ │ ├── OverlayWindowExample.xaml.cs
│ │ ├── OverlayWindowView.xaml
│ │ ├── OverlayWindowView.xaml.cs
│ │ ├── PagingView.xaml
│ │ ├── PagingView.xaml.cs
│ │ ├── PanelsView.xaml
│ │ ├── PanelsView.xaml.cs
│ │ ├── PopupsView.xaml
│ │ ├── PopupsView.xaml.cs
│ │ ├── PracticesView.xaml
│ │ ├── PracticesView.xaml.cs
│ │ ├── ProgressView.xaml
│ │ ├── ProgressView.xaml.cs
│ │ ├── ScrollView.xaml
│ │ ├── ScrollView.xaml.cs
│ │ ├── SeperatorsView.xaml
│ │ ├── SeperatorsView.xaml.cs
│ │ ├── TextView.xaml
│ │ ├── TextView.xaml.cs
│ │ ├── ThemeView.xaml
│ │ ├── ThemeView.xaml.cs
│ │ ├── ThicknessView.xaml
│ │ ├── ThicknessView.xaml.cs
│ │ ├── ToolTipsView.xaml
│ │ ├── ToolTipsView.xaml.cs
│ │ ├── TreeViewView.xaml
│ │ ├── TreeViewView.xaml.cs
│ │ ├── ValidationView.xaml
│ │ ├── ValidationView.xaml.cs
│ │ ├── WebBrowserView.xaml
│ │ ├── WebBrowserView.xaml.cs
│ │ ├── WindowView.xaml
│ │ ├── WindowView.xaml.cs
│ │ ├── WizardView.xaml
│ │ └── WizardView.xaml.cs
│ ├── Windows
│ │ ├── ElysiumView.xaml
│ │ ├── ElysiumView.xaml.cs
│ │ ├── StylesView.xaml
│ │ └── StylesView.xaml.cs
│ └── packages.config
├── Framework.UI
│ ├── Assets
│ │ └── Divider.png
│ ├── BindingBaseExtensions.cs
│ ├── Commands
│ │ ├── CommandBinding.cs
│ │ ├── CommandBindingCollection.cs
│ │ ├── EventCommand.CommandBindings.cs
│ │ ├── EventCommand.cs
│ │ ├── Internal
│ │ │ ├── ActionExecutionStrategy.cs
│ │ │ ├── CommandBehaviorBinding.cs
│ │ │ ├── CommandExecutionStrategy.cs
│ │ │ ├── EventHandlerGenerator.cs
│ │ │ └── IExecutionStrategy.cs
│ │ └── KeyCommand.cs
│ ├── Controls
│ │ ├── Accordion
│ │ │ ├── Accordion.cs
│ │ │ ├── AccordionAction.cs
│ │ │ ├── AccordionItem.cs
│ │ │ ├── AccordionResources.Designer.cs
│ │ │ ├── AccordionResources.resx
│ │ │ ├── AccordionSelectionMode.cs
│ │ │ ├── Automation
│ │ │ │ └── Peers
│ │ │ │ │ ├── AccordionAutomationPeer.cs
│ │ │ │ │ ├── AccordionItemAutomationPeer.cs
│ │ │ │ │ └── AccordionItemWrapperAutomationPeer.cs
│ │ │ ├── IUpdateVisualState.cs
│ │ │ ├── InteractionHelper.cs
│ │ │ ├── ItemsControlHelper.cs
│ │ │ ├── Primitives
│ │ │ │ ├── AccordionButton.cs
│ │ │ │ └── ExpandableContentControl.cs
│ │ │ ├── SelectionSequence.cs
│ │ │ └── VisualStates.cs
│ │ ├── AdornedControl
│ │ │ ├── AdornedControl.cs
│ │ │ ├── AdornerPlacement.cs
│ │ │ └── FrameworkElementAdorner.cs
│ │ ├── Borders
│ │ │ ├── ClippingBorder.cs
│ │ │ ├── DropShadowBorder.cs
│ │ │ ├── GlassBorder.cs
│ │ │ ├── InnerGlowBorder.cs
│ │ │ ├── OuterGlowBorder.cs
│ │ │ ├── PerspectiveShadowBorder.cs
│ │ │ └── RadialShadowBorder.cs
│ │ ├── CalloutContentControl
│ │ │ ├── ArrowAlignment.cs
│ │ │ ├── ArrowPlacement.cs
│ │ │ ├── CalloutContentControl.cs
│ │ │ ├── CalloutContentControlToThicknessConverter.cs
│ │ │ └── CalloutShape.cs
│ │ ├── ComboDataGrid.cs
│ │ ├── DataGrid
│ │ │ ├── Columns
│ │ │ │ ├── DataGridCheckBoxColumn.cs
│ │ │ │ ├── DataGridColumnToolTipHelper.cs
│ │ │ │ ├── DataGridComboBoxColumn.cs
│ │ │ │ ├── DataGridDateColumn.cs
│ │ │ │ ├── DataGridDateTimeColumn.cs
│ │ │ │ ├── DataGridDecimalUpDownColumn.cs
│ │ │ │ ├── DataGridDoubleUpDownColumn.cs
│ │ │ │ ├── DataGridHyperlinkColumn.cs
│ │ │ │ ├── DataGridIntegerUpDownColumn.cs
│ │ │ │ ├── DataGridLongUpDownColumn.cs
│ │ │ │ ├── DataGridMultiLineTextColumn.cs
│ │ │ │ ├── DataGridNumberColumn.cs
│ │ │ │ ├── DataGridProgressBarColumn.cs
│ │ │ │ ├── DataGridTemplateColumn.cs
│ │ │ │ └── DataGridTextColumn.cs
│ │ │ ├── DataGridAttached.cs
│ │ │ ├── DataGridColumnAttached.cs
│ │ │ ├── DataGridColumnInfo.cs
│ │ │ ├── DataGridRowAttached.cs
│ │ │ └── GroupSummary
│ │ │ │ ├── DataGridGroupSummary.cs
│ │ │ │ └── DataGridGroupSummaryCollection.cs
│ │ ├── ElasticPicker
│ │ │ ├── ElasticPickerGrid.cs
│ │ │ ├── ListBox
│ │ │ │ ├── ElasticListBox.cs
│ │ │ │ └── ElasticListBoxItem.cs
│ │ │ └── Picker
│ │ │ │ ├── ElasticGroup.cs
│ │ │ │ ├── ElasticGroupCollection.cs
│ │ │ │ ├── ElasticGroupNumberFormat.cs
│ │ │ │ ├── ElasticGroupSortMode.cs
│ │ │ │ ├── ElasticPicker.cs
│ │ │ │ ├── ElasticView.cs
│ │ │ │ └── Internal
│ │ │ │ ├── Entity.cs
│ │ │ │ ├── EntityCollection.cs
│ │ │ │ ├── EntityGroup.cs
│ │ │ │ ├── EntityGroupCollection.cs
│ │ │ │ └── EntityView.cs
│ │ ├── ElementProxy.cs
│ │ ├── ExpanderMenu
│ │ │ ├── ExpanderMenu.cs
│ │ │ └── ExpanderMenuItem.cs
│ │ ├── FlipControl.cs
│ │ ├── GroupStyleCollection.cs
│ │ ├── Icon
│ │ │ ├── Icon.cs
│ │ │ └── IconSize.cs
│ │ ├── Interactivity
│ │ │ ├── AnimatingItemsControlBehavior.cs
│ │ │ ├── Behaviors.cs
│ │ │ ├── FadeBehavior.cs
│ │ │ ├── Interactivities.cs
│ │ │ ├── RotateBehavior.cs
│ │ │ ├── SlideBehavior.cs
│ │ │ └── Triggers.cs
│ │ ├── ItemsControlAttached.cs
│ │ ├── ListBoxAttached.cs
│ │ ├── ListBoxItemAttached.cs
│ │ ├── LoadingContent.cs
│ │ ├── MenuItemAttached.cs
│ │ ├── MessageDialog
│ │ │ ├── MessageDialog.cs
│ │ │ ├── MessageDialogButton.cs
│ │ │ └── MessageDialogType.cs
│ │ ├── Notes
│ │ │ ├── ListIndexConverter.cs
│ │ │ ├── NotesListBox.cs
│ │ │ ├── NotesListBoxItem.cs
│ │ │ └── StackCanvas.cs
│ │ ├── NumericUpDown
│ │ │ ├── AllowedSpecialValuesEnum.cs
│ │ │ ├── ByteUpDown.cs
│ │ │ ├── CommonNumericUpDown.cs
│ │ │ ├── DecimalUpDown.cs
│ │ │ ├── DoubleUpDown.cs
│ │ │ ├── IValidateInput.cs
│ │ │ ├── InputBase.cs
│ │ │ ├── InputValidationErrorEventArgs.cs
│ │ │ ├── IntegerUpDown.cs
│ │ │ ├── LongUpDown.cs
│ │ │ ├── NumericUpDown.cs
│ │ │ ├── SByteUpDown.cs
│ │ │ ├── ShortUpDown.cs
│ │ │ ├── SingleUpDown.cs
│ │ │ ├── UIntegerUpDown.cs
│ │ │ ├── ULongUpDown.cs
│ │ │ ├── UShortUpDown.cs
│ │ │ └── UpDownBase.cs
│ │ ├── PagingItemsControl
│ │ │ ├── NumberedPage.cs
│ │ │ ├── PagingDecorator.cs
│ │ │ └── SmartColumnsPanel.cs
│ │ ├── Panels
│ │ │ ├── AnimatedWrapPanel.cs
│ │ │ └── VirtualizingWrapPanel.cs
│ │ ├── RichTextBox
│ │ │ └── RichTextBoxExtended.cs
│ │ ├── Screen.cs
│ │ ├── Spinner
│ │ │ ├── ButtonSpinner.cs
│ │ │ ├── SpinDirection.cs
│ │ │ ├── SpinEventArgs.cs
│ │ │ ├── Spinner.cs
│ │ │ └── ValidSpinDirections.cs
│ │ ├── TextBox
│ │ │ ├── ButtonTextBox.cs
│ │ │ ├── QueryMoveFocusEventArgs.cs
│ │ │ ├── QueryMoveFocusEventHandler.cs
│ │ │ └── TextBoxExtended.cs
│ │ ├── TreeView
│ │ │ ├── TreeViewAttached.cs
│ │ │ └── TreeViewItemAttached.cs
│ │ ├── UIElementAttached.cs
│ │ ├── WebBrowserAttached.cs
│ │ ├── Window
│ │ │ ├── NotifyBox.cs
│ │ │ ├── OverlayWindow.cs
│ │ │ ├── Window.cs
│ │ │ └── WindowBase.cs
│ │ ├── Wizard
│ │ │ ├── Internal
│ │ │ │ ├── WizardItemModel.cs
│ │ │ │ └── WizardItemModelCollection.cs
│ │ │ ├── Wizard.cs
│ │ │ ├── WizardAnimation.cs
│ │ │ ├── WizardCollectionAnimation.cs
│ │ │ ├── WizardItem.cs
│ │ │ ├── WizardItemCollection.cs
│ │ │ ├── WizardMode.cs
│ │ │ └── WizardXaml.cs
│ │ └── XmlSerializer.cs
│ ├── Converters
│ │ ├── BoolToVisibilityConverter.cs
│ │ ├── InverseBoolConverter.cs
│ │ ├── InverseBoolToVisibilityConverter.cs
│ │ ├── InverseNullToVisibilityConverter.cs
│ │ ├── LessThanEqualToBoolConverter.cs
│ │ ├── LessThanEqualToVisibilityConverter.cs
│ │ ├── LessThanToBoolConverter.cs
│ │ ├── MoreThanEqualToBoolConverter.cs
│ │ ├── MoreThanEqualToVisibilityConverter.cs
│ │ ├── MoreThanToBoolConverter.cs
│ │ ├── NullOrEmptyToVisibilityConverter.cs
│ │ ├── NullToBoolConverter.cs
│ │ ├── NullToVisibilityConverter.cs
│ │ ├── StringFormatConverter.cs
│ │ └── VisibilityToBoolConverter.cs
│ ├── DependencyObjectExtensions.cs
│ ├── DispatcherExtensions.cs
│ ├── DragAndDrop
│ │ ├── DragCommand.cs
│ │ ├── DragManager.cs
│ │ └── DragViewer.cs
│ ├── Framework.UI.csproj
│ ├── Input
│ │ ├── AsyncCommand.cs
│ │ ├── AsyncCommandT.cs
│ │ ├── AsyncDelegateCommand.cs
│ │ ├── AsyncDelegateCommandT.cs
│ │ ├── Command.cs
│ │ ├── CommandBase.cs
│ │ ├── CommandT.cs
│ │ ├── DelegateCommand.cs
│ │ └── DelegateCommandT.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Themes
│ │ ├── Elysium
│ │ │ ├── CommandButton.xaml
│ │ │ ├── DropDownCommandButton.xaml
│ │ │ ├── ToggleCommandButton.xaml
│ │ │ └── ToggleSwitch.xaml
│ │ ├── ElysiumExtra
│ │ │ ├── Accordion.xaml
│ │ │ ├── ButtonTextBox.xaml
│ │ │ ├── CalloutContentControl.xaml
│ │ │ ├── ComboDataGrid.xaml
│ │ │ ├── ElasticPicker.xaml
│ │ │ ├── ExpanderMenu.xaml
│ │ │ ├── FlipControl.xaml
│ │ │ ├── GeometryIcon.xaml
│ │ │ ├── Icon.xaml
│ │ │ ├── LoadingContent.xaml
│ │ │ ├── MessageDialog.xaml
│ │ │ ├── NotesListBox.xaml
│ │ │ ├── NumericUpDown.xaml
│ │ │ ├── PagingItemsControl.xaml
│ │ │ ├── RichTextBoxExtended.xaml
│ │ │ ├── TextBoxExtended.xaml
│ │ │ ├── Watermark.xaml
│ │ │ └── Wizard.xaml
│ │ ├── Generic.xaml
│ │ └── WPF
│ │ │ ├── Base
│ │ │ ├── Border.xaml
│ │ │ ├── Brush.xaml
│ │ │ ├── Color.xaml
│ │ │ ├── Converter.xaml
│ │ │ ├── DrawingImage.xaml
│ │ │ ├── FocusVisualStyle.xaml
│ │ │ ├── Geometry.xaml
│ │ │ ├── GroupStyle.xaml
│ │ │ ├── Icon.xaml
│ │ │ └── Validation.xaml
│ │ │ └── Controls
│ │ │ ├── Button.xaml
│ │ │ ├── Calendar.xaml
│ │ │ ├── CheckBox.xaml
│ │ │ ├── ComboBox.xaml
│ │ │ ├── ComboBoxItem.xaml
│ │ │ ├── ContentControl.xaml
│ │ │ ├── DataGrid.xaml
│ │ │ ├── DatePicker.xaml
│ │ │ ├── Expander.xaml
│ │ │ ├── GridSplitter.xaml
│ │ │ ├── HeaderedContentControl.xaml
│ │ │ ├── Hyperlink.xaml
│ │ │ ├── ItemsControl.xaml
│ │ │ ├── Label.xaml
│ │ │ ├── ListBox.xaml
│ │ │ ├── ListBoxItem.xaml
│ │ │ ├── MenuItem.xaml
│ │ │ ├── RadioButton.xaml
│ │ │ ├── RepeatButton.xaml
│ │ │ ├── ScrollBar.xaml
│ │ │ ├── ScrollViewer.xaml
│ │ │ ├── Separator.xaml
│ │ │ ├── Slider.xaml
│ │ │ ├── TabControl.xaml
│ │ │ ├── TabItem.xaml
│ │ │ ├── TextBlock.xaml
│ │ │ ├── TextBox.xaml
│ │ │ ├── ToggleButton.xaml
│ │ │ ├── TreeView.xaml
│ │ │ ├── TreeViewItem.xaml
│ │ │ └── Window.xaml
│ ├── VisualTreeHelpers.cs
│ ├── WeakEvent.cs
│ ├── XamlHelper.cs
│ └── packages.config
└── Framework
│ ├── CharacterSet.cs
│ ├── Collections
│ ├── CollectionExtensions.cs
│ ├── EnumerableExtensions.cs
│ └── TraverseKind.cs
│ ├── ComponentModel
│ ├── Cloneable
│ │ └── ICloneableT.cs
│ ├── Collections
│ │ ├── ItemChangedEventArgs.cs
│ │ ├── KeyedObservableCollection.cs
│ │ ├── KeyedObservableItemsCollection.cs
│ │ └── ObservableItemsCollection.cs
│ ├── Disposable.cs
│ ├── EditableObject.cs
│ ├── NotifyDataErrorInfo.cs
│ ├── NotifyPropertyChanges.cs
│ ├── RevertibleChangeTracking.cs
│ └── Rules
│ │ ├── DelegateRule.cs
│ │ ├── Rule.cs
│ │ └── RuleCollection.cs
│ ├── Framework.csproj
│ ├── Guard
│ ├── Guard.AreEqual.cs
│ ├── Guard.AreNotEqual.cs
│ ├── Guard.ContainsCollection.cs
│ ├── Guard.ContainsString.cs
│ ├── Guard.DoesNotContainCollection.cs
│ ├── Guard.DoesNotContainString.cs
│ ├── Guard.EndsWith.cs
│ ├── Guard.IsInstanceOfType.cs
│ ├── Guard.IsLessThan.cs
│ ├── Guard.IsLessThanOrEqualTo.cs
│ ├── Guard.IsMatch.cs
│ ├── Guard.IsMoreThan.cs
│ ├── Guard.IsMoreThanOrEqualTo.cs
│ ├── Guard.IsNotInstanceOfType.cs
│ ├── Guard.IsNotNull.cs
│ ├── Guard.IsNotNullOrEmptyCollection.cs
│ ├── Guard.IsNotNullOrEmptyString.cs
│ ├── Guard.IsNotNullOrWhiteSpace.cs
│ ├── Guard.IsTrue.cs
│ ├── Guard.StartsWith.cs
│ ├── Guard.cs
│ └── Parameter.cs
│ ├── IO
│ └── Streams.cs
│ ├── Properties
│ └── AssemblyInfo.cs
│ ├── RandomExtensions.cs
│ └── packages.config
└── Source
├── Framework.UI.TestHarness
├── App.config
├── App.xaml
├── App.xaml.cs
├── Assets
│ ├── Background1.jpg
│ ├── Background2.jpg
│ ├── Icon.png
│ └── IconColourSystem.png
├── Framework.UI.TestHarness.csproj
├── MainView.xaml
├── MainView.xaml.cs
├── Models
│ ├── Fund.cs
│ ├── FundCollection.cs
│ ├── Person.cs
│ ├── PersonCollection.cs
│ ├── Settings.Designer.cs
│ ├── Settings.settings
│ └── WizardViewModel.cs
├── Properties
│ └── AssemblyInfo.cs
├── ViewModels
│ ├── ColoursViewModel.cs
│ ├── CommandsViewModel.cs
│ ├── DataGridViewModel.cs
│ ├── DragAndDropViewModel.cs
│ ├── ElasticPickerViewModel.cs
│ ├── ExpanderMenuViewModel.cs
│ ├── IconViewModel.cs
│ ├── InputViewModel.cs
│ ├── ListBoxViewModel.cs
│ ├── MenuItemViewModel.cs
│ ├── StyleViewModel.cs
│ ├── ValidationViewModel.cs
│ └── WizardViewModel.cs
├── Views
│ ├── AnimationView.xaml
│ ├── AnimationView.xaml.cs
│ ├── AppBarView.xaml
│ ├── AppBarView.xaml.cs
│ ├── BackgroundView.xaml
│ ├── BackgroundView.xaml.cs
│ ├── BordersView.xaml
│ ├── BordersView.xaml.cs
│ ├── ButtonsView.xaml
│ ├── ButtonsView.xaml.cs
│ ├── ColoursView.xaml
│ ├── ColoursView.xaml.cs
│ ├── CommandsView.xaml
│ ├── CommandsView.xaml.cs
│ ├── ConvertersView.xaml
│ ├── ConvertersView.xaml.cs
│ ├── DataGridView.xaml
│ ├── DataGridView.xaml.cs
│ ├── DragAndDropView.xaml
│ ├── DragAndDropView.xaml.cs
│ ├── ElasticPickerView.xaml
│ ├── ElasticPickerView.xaml.cs
│ ├── ElysiumView.xaml
│ ├── ElysiumView.xaml.cs
│ ├── ExpanderMenuView.xaml
│ ├── ExpanderMenuView.xaml.cs
│ ├── ExpandersView.xaml
│ ├── ExpandersView.xaml.cs
│ ├── FlipControlView.xaml
│ ├── FlipControlView.xaml.cs
│ ├── FlyoutView.xaml
│ ├── FlyoutView.xaml.cs
│ ├── FocusVisualStyleView.xaml
│ ├── FocusVisualStyleView.xaml.cs
│ ├── IconsView.xaml
│ ├── IconsView.xaml.cs
│ ├── InputView.xaml
│ ├── InputView.xaml.cs
│ ├── ListBoxView.xaml
│ ├── ListBoxView.xaml.cs
│ ├── ListViewView.xaml
│ ├── ListViewView.xaml.cs
│ ├── MenuItemView.xaml
│ ├── MenuItemView.xaml.cs
│ ├── MessageDialogView.xaml
│ ├── MessageDialogView.xaml.cs
│ ├── NotifyBoxView.xaml
│ ├── NotifyBoxView.xaml.cs
│ ├── OverlayWindowExample.xaml
│ ├── OverlayWindowExample.xaml.cs
│ ├── OverlayWindowView.xaml
│ ├── OverlayWindowView.xaml.cs
│ ├── PagingView.xaml
│ ├── PagingView.xaml.cs
│ ├── PanelsView.xaml
│ ├── PanelsView.xaml.cs
│ ├── PopupsView.xaml
│ ├── PopupsView.xaml.cs
│ ├── PracticesView.xaml
│ ├── PracticesView.xaml.cs
│ ├── ProgressView.xaml
│ ├── ProgressView.xaml.cs
│ ├── ScrollView.xaml
│ ├── ScrollView.xaml.cs
│ ├── SeperatorsView.xaml
│ ├── SeperatorsView.xaml.cs
│ ├── TextView.xaml
│ ├── TextView.xaml.cs
│ ├── ThemeView.xaml
│ ├── ThemeView.xaml.cs
│ ├── ThicknessView.xaml
│ ├── ThicknessView.xaml.cs
│ ├── ToolTipsView.xaml
│ ├── ToolTipsView.xaml.cs
│ ├── TreeViewView.xaml
│ ├── TreeViewView.xaml.cs
│ ├── ValidationView.xaml
│ ├── ValidationView.xaml.cs
│ ├── WebBrowserView.xaml
│ ├── WebBrowserView.xaml.cs
│ ├── WindowView.xaml
│ ├── WindowView.xaml.cs
│ ├── WizardView.xaml
│ └── WizardView.xaml.cs
├── Windows
│ ├── ElysiumView.xaml
│ ├── ElysiumView.xaml.cs
│ ├── StylesView.xaml
│ └── StylesView.xaml.cs
└── packages.config
├── Framework.UI
├── Assets
│ └── Divider.png
├── BindingBaseExtensions.cs
├── Commands
│ ├── CommandBinding.cs
│ ├── CommandBindingCollection.cs
│ ├── EventCommand.CommandBindings.cs
│ ├── EventCommand.cs
│ ├── Internal
│ │ ├── ActionExecutionStrategy.cs
│ │ ├── CommandBehaviorBinding.cs
│ │ ├── CommandExecutionStrategy.cs
│ │ ├── EventHandlerGenerator.cs
│ │ └── IExecutionStrategy.cs
│ └── KeyCommand.cs
├── Controls
│ ├── Accordion
│ │ ├── Accordion.cs
│ │ ├── AccordionAction.cs
│ │ ├── AccordionItem.cs
│ │ ├── AccordionResources.Designer.cs
│ │ ├── AccordionResources.resx
│ │ ├── AccordionSelectionMode.cs
│ │ ├── Automation
│ │ │ └── Peers
│ │ │ │ ├── AccordionAutomationPeer.cs
│ │ │ │ ├── AccordionItemAutomationPeer.cs
│ │ │ │ └── AccordionItemWrapperAutomationPeer.cs
│ │ ├── IUpdateVisualState.cs
│ │ ├── InteractionHelper.cs
│ │ ├── ItemsControlHelper.cs
│ │ ├── Primitives
│ │ │ ├── AccordionButton.cs
│ │ │ └── ExpandableContentControl.cs
│ │ ├── SelectionSequence.cs
│ │ └── VisualStates.cs
│ ├── AdornedControl
│ │ ├── AdornedControl.cs
│ │ ├── AdornerPlacement.cs
│ │ └── FrameworkElementAdorner.cs
│ ├── BorderFix.cs
│ ├── Borders
│ │ ├── ClippingBorder.cs
│ │ ├── DropShadowBorder.cs
│ │ ├── GlassBorder.cs
│ │ ├── InnerGlowBorder.cs
│ │ ├── OuterGlowBorder.cs
│ │ ├── PerspectiveShadowBorder.cs
│ │ └── RadialShadowBorder.cs
│ ├── CalloutContentControl
│ │ ├── ArrowAlignment.cs
│ │ ├── ArrowPlacement.cs
│ │ ├── CalloutContentControl.cs
│ │ ├── CalloutContentControlToThicknessConverter.cs
│ │ └── CalloutShape.cs
│ ├── ComboBoxAttached.cs
│ ├── ComboDataGrid.cs
│ ├── DataGrid
│ │ ├── Columns
│ │ │ ├── DataGridCheckBoxColumn.cs
│ │ │ ├── DataGridColumnToolTipHelper.cs
│ │ │ ├── DataGridComboBoxColumn.cs
│ │ │ ├── DataGridDateColumn.cs
│ │ │ ├── DataGridDateTimeColumn.cs
│ │ │ ├── DataGridDecimalUpDownColumn.cs
│ │ │ ├── DataGridDoubleUpDownColumn.cs
│ │ │ ├── DataGridHyperlinkColumn.cs
│ │ │ ├── DataGridIntegerUpDownColumn.cs
│ │ │ ├── DataGridLongUpDownColumn.cs
│ │ │ ├── DataGridMultiLineTextColumn.cs
│ │ │ ├── DataGridNumberColumn.cs
│ │ │ ├── DataGridProgressBarColumn.cs
│ │ │ ├── DataGridTemplateColumn.cs
│ │ │ └── DataGridTextColumn.cs
│ │ ├── DataGridAttached.cs
│ │ ├── DataGridColumnAttached.cs
│ │ ├── DataGridColumnInfo.cs
│ │ ├── DataGridRowAttached.cs
│ │ └── GroupSummary
│ │ │ ├── DataGridGroupSummary.cs
│ │ │ └── DataGridGroupSummaryCollection.cs
│ ├── DatePickerAttached.cs
│ ├── ElasticPicker
│ │ ├── ElasticPickerGrid.cs
│ │ ├── ListBox
│ │ │ ├── ElasticListBox.cs
│ │ │ └── ElasticListBoxItem.cs
│ │ └── Picker
│ │ │ ├── ElasticGroup.cs
│ │ │ ├── ElasticGroupCollection.cs
│ │ │ ├── ElasticGroupNumberFormat.cs
│ │ │ ├── ElasticGroupSortMode.cs
│ │ │ ├── ElasticPicker.cs
│ │ │ ├── ElasticView.cs
│ │ │ └── Internal
│ │ │ ├── Entity.cs
│ │ │ ├── EntityCollection.cs
│ │ │ ├── EntityGroup.cs
│ │ │ ├── EntityGroupCollection.cs
│ │ │ └── EntityView.cs
│ ├── ElementProxy.cs
│ ├── ExpanderMenu
│ │ ├── ExpanderMenu.cs
│ │ └── ExpanderMenuItem.cs
│ ├── FlipControl.cs
│ ├── GroupStyleCollection.cs
│ ├── Icon
│ │ ├── Icon.cs
│ │ └── IconSize.cs
│ ├── Interactivity
│ │ ├── AnimatingItemsControlBehavior.cs
│ │ ├── Behaviors.cs
│ │ ├── FadeBehavior.cs
│ │ ├── Interactivities.cs
│ │ ├── RotateBehavior.cs
│ │ ├── SlideBehavior.cs
│ │ └── Triggers.cs
│ ├── ItemsControlAttached.cs
│ ├── ListBoxAttached.cs
│ ├── ListBoxItemAttached.cs
│ ├── LoadingContent.cs
│ ├── MenuItemAttached.cs
│ ├── MessageDialog
│ │ ├── MessageDialog.cs
│ │ ├── MessageDialogButton.cs
│ │ └── MessageDialogType.cs
│ ├── Notes
│ │ ├── ListIndexConverter.cs
│ │ ├── NotesListBox.cs
│ │ ├── NotesListBoxItem.cs
│ │ └── StackCanvas.cs
│ ├── NumericUpDown
│ │ ├── AllowedSpecialValuesEnum.cs
│ │ ├── ByteUpDown.cs
│ │ ├── CommonNumericUpDown.cs
│ │ ├── DecimalUpDown.cs
│ │ ├── DoubleUpDown.cs
│ │ ├── IValidateInput.cs
│ │ ├── InputBase.cs
│ │ ├── InputValidationErrorEventArgs.cs
│ │ ├── IntegerUpDown.cs
│ │ ├── LongUpDown.cs
│ │ ├── NumericUpDown.cs
│ │ ├── SByteUpDown.cs
│ │ ├── ShortUpDown.cs
│ │ ├── SingleUpDown.cs
│ │ ├── UIntegerUpDown.cs
│ │ ├── ULongUpDown.cs
│ │ ├── UShortUpDown.cs
│ │ └── UpDownBase.cs
│ ├── PagingItemsControl
│ │ ├── NumberedPage.cs
│ │ ├── PagingDecorator.cs
│ │ └── SmartColumnsPanel.cs
│ ├── Panels
│ │ ├── AnimatedWrapPanel.cs
│ │ └── VirtualizingWrapPanel.cs
│ ├── ResourceDictionaryExtensions.cs
│ ├── RichTextBox
│ │ └── RichTextBoxExtended.cs
│ ├── Screen.cs
│ ├── SharedResourceDictionary.cs
│ ├── Spinner
│ │ ├── ButtonSpinner.cs
│ │ ├── SpinDirection.cs
│ │ ├── SpinEventArgs.cs
│ │ ├── Spinner.cs
│ │ └── ValidSpinDirections.cs
│ ├── TextBox
│ │ ├── ButtonTextBox.cs
│ │ ├── QueryMoveFocusEventArgs.cs
│ │ ├── QueryMoveFocusEventHandler.cs
│ │ └── TextBoxExtended.cs
│ ├── TreeView
│ │ ├── TreeViewAttached.cs
│ │ └── TreeViewItemAttached.cs
│ ├── UIElementAttached.cs
│ ├── WebBrowserAttached.cs
│ ├── Window
│ │ ├── NotifyBox.cs
│ │ ├── OverlayWindow.cs
│ │ ├── Window.cs
│ │ └── WindowBase.cs
│ ├── Wizard
│ │ ├── Internal
│ │ │ ├── WizardItemModel.cs
│ │ │ └── WizardItemModelCollection.cs
│ │ ├── Wizard.cs
│ │ ├── WizardAnimation.cs
│ │ ├── WizardCollectionAnimation.cs
│ │ ├── WizardItem.cs
│ │ ├── WizardItemCollection.cs
│ │ ├── WizardMode.cs
│ │ └── WizardXaml.cs
│ └── XmlSerializer.cs
├── Converters
│ ├── BoolToVisibilityConverter.cs
│ ├── InverseBoolConverter.cs
│ ├── InverseBoolToVisibilityConverter.cs
│ ├── InverseNullToVisibilityConverter.cs
│ ├── LessThanEqualToBoolConverter.cs
│ ├── LessThanEqualToVisibilityConverter.cs
│ ├── LessThanToBoolConverter.cs
│ ├── MoreThanEqualToBoolConverter.cs
│ ├── MoreThanEqualToVisibilityConverter.cs
│ ├── MoreThanToBoolConverter.cs
│ ├── NullOrEmptyToVisibilityConverter.cs
│ ├── NullToBoolConverter.cs
│ ├── NullToVisibilityConverter.cs
│ ├── StringFormatConverter.cs
│ └── VisibilityToBoolConverter.cs
├── DependencyObjectExtensions.cs
├── DispatcherExtensions.cs
├── DragAndDrop
│ ├── DragCommand.cs
│ ├── DragManager.cs
│ └── DragViewer.cs
├── ElysiumApplication.cs
├── ElysiumParameterOverrides.cs
├── Framework.UI.csproj
├── Input
│ ├── AsyncCommand.cs
│ ├── AsyncCommandT.cs
│ ├── AsyncDelegateCommand.cs
│ ├── AsyncDelegateCommandT.cs
│ ├── Command.cs
│ ├── CommandBase.cs
│ ├── CommandT.cs
│ ├── DelegateCommand.cs
│ └── DelegateCommandT.cs
├── Properties
│ └── AssemblyInfo.cs
├── ThemeManager.cs
├── Themes
│ ├── Elysium
│ │ ├── ApplicationBar.xaml
│ │ ├── CommandButton.xaml
│ │ ├── DropDownCommandButton.xaml
│ │ ├── ProgressBar.xaml
│ │ ├── ProgressRing.xaml
│ │ ├── Submenu.xaml
│ │ ├── TODO
│ │ │ └── Generic.xaml
│ │ ├── ToggleCommandButton.xaml
│ │ └── ToggleSwitch.xaml
│ ├── ElysiumExtra
│ │ ├── Accordion.xaml
│ │ ├── BorderFIx.xaml
│ │ ├── ButtonTextBox.xaml
│ │ ├── CalloutContentControl.xaml
│ │ ├── ComboDataGrid.xaml
│ │ ├── ElasticPicker.xaml
│ │ ├── ExpanderMenu.xaml
│ │ ├── FlipControl.xaml
│ │ ├── GeometryIcon.xaml
│ │ ├── Icon.xaml
│ │ ├── LoadingContent.xaml
│ │ ├── MessageDialog.xaml
│ │ ├── NotesListBox.xaml
│ │ ├── NumericUpDown.xaml
│ │ ├── PagingItemsControl.xaml
│ │ ├── RichTextBoxExtended.xaml
│ │ ├── TextBoxExtended.xaml
│ │ ├── Watermark.xaml
│ │ └── Wizard.xaml
│ ├── Generic.xaml
│ └── WPF
│ │ ├── Base
│ │ ├── Border.xaml
│ │ ├── Brush.xaml
│ │ ├── Color.xaml
│ │ ├── Converter.xaml
│ │ ├── DrawingImage.xaml
│ │ ├── FocusVisualStyle.xaml
│ │ ├── Geometry.xaml
│ │ ├── GroupStyle.xaml
│ │ ├── Icon.xaml
│ │ ├── Theme
│ │ │ ├── DarkColor.xaml
│ │ │ └── LightColor.xaml
│ │ └── Validation.xaml
│ │ └── Controls
│ │ ├── Button.xaml
│ │ ├── Calendar.xaml
│ │ ├── CheckBox.xaml
│ │ ├── ComboBox.xaml
│ │ ├── ComboBoxItem.xaml
│ │ ├── ContentControl.xaml
│ │ ├── ContextMenu.xaml
│ │ ├── DataGrid.xaml
│ │ ├── DatePicker.xaml
│ │ ├── Expander.xaml
│ │ ├── GridSplitter.xaml
│ │ ├── HeaderedContentControl.xaml
│ │ ├── Hyperlink.xaml
│ │ ├── ItemsControl.xaml
│ │ ├── Label.xaml
│ │ ├── ListBox.xaml
│ │ ├── ListBoxItem.xaml
│ │ ├── Menu.xaml
│ │ ├── MenuItem.xaml
│ │ ├── PasswordBox.xaml
│ │ ├── RadioButton.xaml
│ │ ├── RepeatButton.xaml
│ │ ├── RichTextBox.xaml
│ │ ├── ScrollBar.xaml
│ │ ├── ScrollViewer.xaml
│ │ ├── Separator.xaml
│ │ ├── Slider.xaml
│ │ ├── TabControl.xaml
│ │ ├── TabItem.xaml
│ │ ├── TextBlock.xaml
│ │ ├── TextBox.xaml
│ │ ├── ToggleButton.xaml
│ │ ├── ToolTip.xaml
│ │ ├── TreeView.xaml
│ │ ├── TreeViewItem.xaml
│ │ └── Window.xaml
├── VisualTreeHelpers.cs
├── WeakEvent.cs
├── XamlHelper.cs
├── app.config
└── packages.config
└── Framework
├── CharacterSet.cs
├── Collections
├── CollectionExtensions.cs
├── EnumerableExtensions.cs
└── TraverseKind.cs
├── ComponentModel
├── Cloneable
│ └── ICloneableT.cs
├── Collections
│ ├── ItemChangedEventArgs.cs
│ ├── KeyedObservableCollection.cs
│ ├── KeyedObservableItemsCollection.cs
│ └── ObservableItemsCollection.cs
├── Disposable.cs
├── EditableObject.cs
├── NotifyDataErrorInfo.cs
├── NotifyPropertyChanges.cs
├── RevertibleChangeTracking.cs
└── Rules
│ ├── DelegateRule.cs
│ ├── Rule.cs
│ └── RuleCollection.cs
├── Framework.csproj
├── Guard
├── Guard.AreEqual.cs
├── Guard.AreNotEqual.cs
├── Guard.ContainsCollection.cs
├── Guard.ContainsString.cs
├── Guard.DoesNotContainCollection.cs
├── Guard.DoesNotContainString.cs
├── Guard.EndsWith.cs
├── Guard.IsInstanceOfType.cs
├── Guard.IsLessThan.cs
├── Guard.IsLessThanOrEqualTo.cs
├── Guard.IsMatch.cs
├── Guard.IsMoreThan.cs
├── Guard.IsMoreThanOrEqualTo.cs
├── Guard.IsNotInstanceOfType.cs
├── Guard.IsNotNull.cs
├── Guard.IsNotNullOrEmptyCollection.cs
├── Guard.IsNotNullOrEmptyString.cs
├── Guard.IsNotNullOrWhiteSpace.cs
├── Guard.IsTrue.cs
├── Guard.StartsWith.cs
├── Guard.cs
└── Parameter.cs
├── IO
└── Streams.cs
├── Properties
└── AssemblyInfo.cs
├── RandomExtensions.cs
└── packages.config
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################
2 | # Git Line Endings #
3 | ###############################
4 |
5 | # Set default behavior to automatically normalize line endings.
6 | * text=auto
7 |
8 | # Force bash scripts to always use lf line endings so that if a repo is accessed
9 | # in Unix via a file share from Windows, the scripts will work.
10 | *.sh text eol=lf
11 |
12 | ###############################
13 | # Git Large File System (LFS) #
14 | ###############################
15 |
16 | # Archives
17 | *.7z filter=lfs diff=lfs merge=lfs -text
18 | *.br filter=lfs diff=lfs merge=lfs -text
19 | *.gz filter=lfs diff=lfs merge=lfs -text
20 | *.tar filter=lfs diff=lfs merge=lfs -text
21 | *.zip filter=lfs diff=lfs merge=lfs -text
22 |
23 | # Documents
24 | *.pdf filter=lfs diff=lfs merge=lfs -text
25 |
26 | # Images
27 | *.gif filter=lfs diff=lfs merge=lfs -text
28 | *.ico filter=lfs diff=lfs merge=lfs -text
29 | *.jpg filter=lfs diff=lfs merge=lfs -text
30 | *.png filter=lfs diff=lfs merge=lfs -text
31 | *.psd filter=lfs diff=lfs merge=lfs -text
32 | *.webp filter=lfs diff=lfs merge=lfs -text
33 |
34 | # Fonts
35 | *.woff2 filter=lfs diff=lfs merge=lfs -text
36 |
37 | # Other
38 | *.exe filter=lfs diff=lfs merge=lfs -text
39 |
--------------------------------------------------------------------------------
/.nuget/NuGet.Config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.nuget/NuGet.exe:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:4cd7d6e0229a2f939d70649045362b347d2e16a3c88c12e4b58eb616fb701439
3 | size 1659904
4 |
--------------------------------------------------------------------------------
/Elysium.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:12a2db1e350390a768824dd42899b63d8616ba335126a9bc5062b672ee74184f
3 | size 2680
4 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2016 Muhammad Rehan Saeed
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Screenshots/Animation-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:a74078f576b60349b90b8ac48fb894cc3f0649b34beb33b1d488de72e45decd9
3 | size 146527
4 |
--------------------------------------------------------------------------------
/Screenshots/App-Bar-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:d74e858055642f2874ba30718d7693e5b6920d708166029bc435157f0bcabbfb
3 | size 262450
4 |
--------------------------------------------------------------------------------
/Screenshots/Border-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:74c0aa674d44601ab4af3196fe26348094569689584c4c7859e5fa5eb868cb30
3 | size 118704
4 |
--------------------------------------------------------------------------------
/Screenshots/Button-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:03c428a65f8e015a2b3bc85a5959380437a8eda251c1d118035cbf4ea600305a
3 | size 141806
4 |
--------------------------------------------------------------------------------
/Screenshots/Colour-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:3598aee81c3e0d168609c977654c07abc630c52f8d757103e8452b29a8dd6c91
3 | size 198900
4 |
--------------------------------------------------------------------------------
/Screenshots/DataGrid-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:b0543c26dc5f711978997701105032004e1c4631b96f2b17ba062c94056fb61c
3 | size 208618
4 |
--------------------------------------------------------------------------------
/Screenshots/Drag-Drop-1-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:9bfae94948f1ef612dd580dea84e6aa8238db4c7029744b75775c46f8ceca512
3 | size 157136
4 |
--------------------------------------------------------------------------------
/Screenshots/Drag-Drop-2-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:1f384f29dad88db839cf0db391a08110a8da68e45c2d67fa40c2af905b1b9614
3 | size 140082
4 |
--------------------------------------------------------------------------------
/Screenshots/ElasticPicker-1-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:d697c2c46235d34bf9ceb6bb5aa514518471f13383d838ad1de2f7c1748e7206
3 | size 200461
4 |
--------------------------------------------------------------------------------
/Screenshots/ElasticPicker-2-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:4073a7774798c78eca1d1104c3e51969f85360cce29c2bbb522611dbbdb88ecc
3 | size 174061
4 |
--------------------------------------------------------------------------------
/Screenshots/Expander-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:f23c98567eaa13cc005ae65844009c9f42e212e9c71a8bf279ef33f959774d7b
3 | size 144363
4 |
--------------------------------------------------------------------------------
/Screenshots/ExpanderMenu-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:90aedb3067b51cb51ddf4b33622819b68133e9565ff9b3d89222016404eb84eb
3 | size 125388
4 |
--------------------------------------------------------------------------------
/Screenshots/FlipControl-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:9b0c414e43017f2dd27babd626f145551019bac8eb0ee403763e03fb9fdac9da
3 | size 121435
4 |
--------------------------------------------------------------------------------
/Screenshots/Flyout1-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:9aee876ab469e1e8ce39357e9c1431f3edf0fff677d0a78f84d013e593d9365b
3 | size 139745
4 |
--------------------------------------------------------------------------------
/Screenshots/Flyout2-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:c9f6e857c567e2cf659f871c428fee7655b12a41cc6a9c9b658a14aa0af98a24
3 | size 189186
4 |
--------------------------------------------------------------------------------
/Screenshots/Icon1-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:1d4e4c37c9d7a37beca6be300c30fb20f752c20345d9bb11b153b18dfd5aa988
3 | size 244089
4 |
--------------------------------------------------------------------------------
/Screenshots/Input-ButtonTextBox-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:21d94f43221fffbe7f77e0961ac5bb1c1cfb0eb58ea09b666b72b05e5cee6944
3 | size 136992
4 |
--------------------------------------------------------------------------------
/Screenshots/Input-DatePicker-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:37e8a2750f7f6be86edd0493b6f85784314eaf66de7b041faccdded8cadbd4a8
3 | size 139570
4 |
--------------------------------------------------------------------------------
/Screenshots/Input-Numeric-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:195be5c219356edb219bdd9ae42fe4b9c1ca087e608cf7d9652f8b7ebd2bca83
3 | size 151950
4 |
--------------------------------------------------------------------------------
/Screenshots/Input-RichTextBox-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:eb2c037a03e9035731f17b3cac7b0fd924bdb971579d7a975d0fafcbfb6aed53
3 | size 212256
4 |
--------------------------------------------------------------------------------
/Screenshots/Input-TextBox-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:eda4b4c33ad2279959c48bb65195826701612619eca38161dd1ba7dca54d5fc5
3 | size 179371
4 |
--------------------------------------------------------------------------------
/Screenshots/ListBox-1-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:8b4a462a57cd314d4ad4a84a2424e9c94168739da82a43ec52d5ae8594bd86d5
3 | size 191921
4 |
--------------------------------------------------------------------------------
/Screenshots/ListBox-2-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:35783498b798abc829d7921c1b36b13c8fbd50654806bd130a732ab79f99077e
3 | size 188189
4 |
--------------------------------------------------------------------------------
/Screenshots/MenuItem-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:46a2d9f0b160bb09bbabfb77a995b9fba62cf731be9d5a4a0c8f00b472bd2990
3 | size 201473
4 |
--------------------------------------------------------------------------------
/Screenshots/MessageDialog-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:577c81eb0adaa36d94abbf05891960c03b447f3a908fdc8da9f0477574d20654
3 | size 131732
4 |
--------------------------------------------------------------------------------
/Screenshots/NotifyBox-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:e74b19ff0aeab18df0d5175c3ae576fe831241a527fd1a226dfcc704b0c18e0f
3 | size 257985
4 |
--------------------------------------------------------------------------------
/Screenshots/OverlayWindow-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:96bdee3e8b9a17e7cd5419ebb8bcb699883c17a41b4b2babf0e5b1bdc40b96de
3 | size 155967
4 |
--------------------------------------------------------------------------------
/Screenshots/Paging-1-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:37094d5a9d49e5c0d97d6b0918035704561337db38fe81d64bdb2ada63ebda4e
3 | size 118913
4 |
--------------------------------------------------------------------------------
/Screenshots/Paging-2-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:5b6d8ded23080da26a43e2e7d67fb4e0c9be4ef5489ffd9770978dc5fcddbaa1
3 | size 126143
4 |
--------------------------------------------------------------------------------
/Screenshots/Progress-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:89b57823d41fb8f060a039416daea3ec5cb47c54641417506d568313fe587240
3 | size 142153
4 |
--------------------------------------------------------------------------------
/Screenshots/TreeView-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:e2300a066d3d4005431d18e1a11cff0a474b5c84c93167c528687333e08e6b6f
3 | size 141372
4 |
--------------------------------------------------------------------------------
/Screenshots/Validation-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:199f8a5a68b76f2c804ca04b1bd013bff9cc008353822d0fb591ce3e0fbc0501
3 | size 148398
4 |
--------------------------------------------------------------------------------
/Screenshots/Window-1-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:1892fb0016256705aa923feac2d45b472faf21bc1d2a866eefbfb9e7707c7b2a
3 | size 181563
4 |
--------------------------------------------------------------------------------
/Screenshots/Wizard-1-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:c0f02ce234a562f9cd8c853e30dd154abb99c04ceb91569cf8ff7fe408d81473
3 | size 264382
4 |
--------------------------------------------------------------------------------
/Screenshots/Wizard-3-1024x575.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:a2d2550b409c5a56d6848dd1f9dca47f94c58b5187122da210ebcfb47160f3bb
3 | size 267087
4 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | 1
18 |
19 |
20 | 0
21 |
22 |
23 | False
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/App.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/App.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness
2 | {
3 | using System.Windows;
4 |
5 | ///
6 | /// Interaction logic for Application XAML
7 | ///
8 | public partial class App : Application
9 | {
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Assets/Background1.jpg:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:fc1edec43de949e7c6607bf76fc4bb912cedb03dece9abecd03cd9c8ff05fc5b
3 | size 1243779
4 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Assets/Background2.jpg:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:e06117f19c56d018e76f59e47c16015ef4e94bfa3461aa6899ace9f0aa2c7d9b
3 | size 579754
4 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Assets/Icon.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:435685a949ec01e3f52560e57a1e6c8da505593f41e008e9afa317fc30ad8afd
3 | size 1213
4 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Assets/IconColourSystem.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:4c6ba9c217046eb425c06e22adf208ed21f4630c6215c7796584a89f90c0dcd0
3 | size 340675
4 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/MainView.xaml:
--------------------------------------------------------------------------------
1 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
20 |
21 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/MainView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness
2 | {
3 | using System.Windows;
4 | using Framework.UI.TestHarness.Windows;
5 |
6 | ///
7 | /// Interaction logic for Main View XAML
8 | ///
9 | public partial class MainView
10 | {
11 | ///
12 | /// Initialises a new instance of the class.
13 | ///
14 | public MainView()
15 | {
16 | InitializeComponent();
17 | }
18 |
19 | ///
20 | /// The on Elysium click.
21 | ///
22 | /// The sender.
23 | /// The event Arguments.
24 | private void OnElysiumClick(object sender, RoutedEventArgs e)
25 | {
26 | new ElysiumView().Show();
27 | }
28 |
29 | ///
30 | /// The on styles click.
31 | ///
32 | /// The sender.
33 | /// The event Arguments.
34 | private void OnStylesClick(object sender, RoutedEventArgs e)
35 | {
36 | new StylesView().Show();
37 | }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Models/Person.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Models
2 | {
3 | using Framework.ComponentModel;
4 |
5 | ///
6 | /// The person.
7 | ///
8 | public sealed class Person : NotifyPropertyChanges
9 | {
10 | private bool isSelected;
11 |
12 | ///
13 | /// Gets or sets the eye colour.
14 | ///
15 | public string EyeColour
16 | {
17 | get;
18 | set;
19 | }
20 |
21 | ///
22 | /// Gets or sets the gender.
23 | ///
24 | public string Gender
25 | {
26 | get;
27 | set;
28 | }
29 |
30 | ///
31 | /// Gets or sets the nationality.
32 | ///
33 | public string Nationality
34 | {
35 | get;
36 | set;
37 | }
38 |
39 | ///
40 | /// Gets or sets the profession.
41 | ///
42 | ///
43 | /// The profession.
44 | ///
45 | public string Profession
46 | {
47 | get;
48 | set;
49 | }
50 |
51 | ///
52 | /// Gets or sets a value indicating whether is selected.
53 | ///
54 | public bool IsSelected
55 | {
56 | get { return this.isSelected; }
57 | set { this.SetProperty(ref this.isSelected, value); }
58 | }
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Models/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | 1
10 |
11 |
12 | 0
13 |
14 |
15 | False
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/ViewModels/ColoursViewModel.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.ViewModels
2 | {
3 | using System.Collections.Generic;
4 |
5 | public sealed class ColoursViewModel
6 | {
7 | public List Colours
8 | {
9 | get
10 | {
11 | return new List()
12 | {
13 | "Green",
14 | "Red",
15 | "Blue",
16 | "Black",
17 | "Yellow",
18 | "Brown",
19 | "Purple",
20 | "Orange"
21 | };
22 | }
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/ViewModels/CommandsViewModel.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.ViewModels
2 | {
3 | using System.Threading.Tasks;
4 | using Framework.UI.Controls;
5 | using Framework.UI.Input;
6 |
7 | public sealed class CommandsViewModel
8 | {
9 | private readonly AsyncDelegateCommand showMessageBoxCommand;
10 |
11 | public CommandsViewModel()
12 | {
13 | this.showMessageBoxCommand = new AsyncDelegateCommand(this.ShowMessageBox);
14 | }
15 |
16 | ///
17 | /// Gets the show message box command.
18 | ///
19 | public AsyncDelegateCommand ShowMessageBoxCommand
20 | {
21 | get { return this.showMessageBoxCommand; }
22 | }
23 |
24 | ///
25 | /// The show message box.
26 | ///
27 | /// The message.
28 | private async Task ShowMessageBox(string message)
29 | {
30 | await MessageDialog.ShowAsync("Show Message", message);
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/ViewModels/DragAndDropViewModel.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.ViewModels
2 | {
3 | using System.Threading.Tasks;
4 | using Framework.UI.Controls;
5 | using Framework.UI.Input;
6 | using Framework.UI.TestHarness.Models;
7 |
8 | public sealed class DragAndDropViewModel
9 | {
10 | private readonly AsyncDelegateCommand showMessageBoxCommand;
11 | private FundCollection funds;
12 |
13 | #region Constructors
14 |
15 | public DragAndDropViewModel()
16 | {
17 | this.funds = new FundCollection();
18 | this.showMessageBoxCommand = new AsyncDelegateCommand(this.ShowMessageBox);
19 | }
20 |
21 | #endregion
22 |
23 | public FundCollection Funds
24 | {
25 | get { return this.funds; }
26 | }
27 |
28 | public AsyncDelegateCommand ShowMessageBoxCommand
29 | {
30 | get { return this.showMessageBoxCommand; }
31 | }
32 |
33 | ///
34 | /// The show message box.
35 | ///
36 | /// The message.
37 | private async Task ShowMessageBox(string message)
38 | {
39 | await MessageDialog.ShowAsync("Show Message", message);
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/ViewModels/ElasticPickerViewModel.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.ViewModels
2 | {
3 | using Framework.UI.TestHarness.Models;
4 |
5 | public sealed class ElasticPickerViewModel
6 | {
7 | private readonly PersonCollection people;
8 |
9 | public ElasticPickerViewModel()
10 | {
11 | this.people = new PersonCollection();
12 | }
13 | public PersonCollection People
14 | {
15 | get { return this.people; }
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/ViewModels/ExpanderMenuViewModel.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.ViewModels
2 | {
3 | using System.Collections.Generic;
4 | using Framework.UI.TestHarness.Models;
5 |
6 | public sealed class ExpanderMenuViewModel
7 | {
8 | private readonly FundCollection funds;
9 |
10 | public ExpanderMenuViewModel()
11 | {
12 | this.funds = new FundCollection();
13 | }
14 |
15 | public List Colours
16 | {
17 | get
18 | {
19 | return new List()
20 | {
21 | "Green",
22 | "Red",
23 | "Blue",
24 | "Black",
25 | "Yellow",
26 | "Brown",
27 | "Purple",
28 | "Orange"
29 | };
30 | }
31 | }
32 |
33 | public FundCollection Funds
34 | {
35 | get { return this.funds; }
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/ViewModels/InputViewModel.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.ViewModels
2 | {
3 | using System.Threading.Tasks;
4 | using Framework.UI.Controls;
5 | using Framework.UI.Input;
6 | using Framework.UI.TestHarness.Models;
7 |
8 | public sealed class InputViewModel
9 | {
10 | private readonly FundCollection funds;
11 | private readonly AsyncDelegateCommand showMessageBoxCommand;
12 |
13 | public InputViewModel()
14 | {
15 | this.funds = new FundCollection();
16 | this.showMessageBoxCommand = new AsyncDelegateCommand(this.ShowMessageBox);
17 | }
18 |
19 | public FundCollection Funds
20 | {
21 | get { return this.funds; }
22 | }
23 |
24 | public AsyncDelegateCommand ShowMessageBoxCommand
25 | {
26 | get { return this.showMessageBoxCommand; }
27 | }
28 |
29 | private async Task ShowMessageBox(string message)
30 | {
31 | await MessageDialog.ShowAsync("Show Message", message);
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/ViewModels/ListBoxViewModel.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.ViewModels
2 | {
3 | using System.Threading.Tasks;
4 | using Framework.UI.Controls;
5 | using Framework.UI.Input;
6 | using Framework.UI.TestHarness.Models;
7 |
8 | public sealed class ListBoxViewModel
9 | {
10 | private readonly FundCollection funds;
11 | private readonly AsyncDelegateCommand pinCommand;
12 |
13 | public ListBoxViewModel()
14 | {
15 | this.funds = new FundCollection();
16 | this.pinCommand = new AsyncDelegateCommand(this.Pin);
17 | }
18 |
19 | public FundCollection Funds
20 | {
21 | get { return this.funds; }
22 | }
23 |
24 | public AsyncDelegateCommand PinCommand
25 | {
26 | get { return this.pinCommand; }
27 | }
28 |
29 | private async Task Pin()
30 | {
31 | await MessageDialog.ShowAsync("PinCommand", "PinCommand Fired.");
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/ViewModels/MenuItemViewModel.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.ViewModels
2 | {
3 | using Framework.ComponentModel;
4 |
5 | public sealed class MenuItemViewModel : NotifyPropertyChanges
6 | {
7 | private string property1;
8 | private string property2;
9 | private string property3;
10 |
11 | public string Property1
12 | {
13 | get { return this.property1; }
14 | set { this.SetProperty(ref this.property1, value); }
15 | }
16 |
17 | public string Property2
18 | {
19 | get { return this.property2; }
20 | set { this.SetProperty(ref this.property2, value); }
21 | }
22 |
23 | public string Property3
24 | {
25 | get { return this.property3; }
26 | set { this.SetProperty(ref this.property3, value); }
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/ViewModels/StyleViewModel.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.ViewModels
2 | {
3 | using System;
4 | using System.Linq;
5 | using System.Windows;
6 |
7 | public sealed class StyleViewModel
8 | {
9 | private readonly string key;
10 | private readonly Style style;
11 |
12 | public StyleViewModel(string key, Style style)
13 | {
14 | this.key = key;
15 | this.style = style;
16 | }
17 |
18 | public string Key
19 | {
20 | get { return this.key; }
21 | }
22 |
23 | public string Name
24 | {
25 | get { return this.Key.Replace("IconStyle", string.Empty); }
26 | }
27 |
28 | public Style Style
29 | {
30 | get { return this.style; }
31 | }
32 |
33 | public string[] Tags
34 | {
35 | get
36 | {
37 | Setter setter = this.style.Setters
38 | .OfType()
39 | .FirstOrDefault(x => string.Equals(x.Property.Name, "", StringComparison.Ordinal));
40 |
41 | if (setter == null)
42 | {
43 | return null;
44 | }
45 |
46 | return setter.Value
47 | .ToString()
48 | .Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
49 | }
50 | }
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/AppBarView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for AppBarView.xaml
5 | ///
6 | public partial class AppBarView
7 | {
8 | public AppBarView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/BackgroundView.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
15 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/BackgroundView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for BackgroundView.xaml
5 | ///
6 | public partial class BackgroundView
7 | {
8 | public BackgroundView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/BordersView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for BordersView.xaml
5 | ///
6 | public partial class BordersView
7 | {
8 | public BordersView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/ButtonsView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for ButtonsView.xaml
5 | ///
6 | public partial class ButtonsView
7 | {
8 | public ButtonsView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/ColoursView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using System.Collections.Generic;
4 | using Framework.UI.TestHarness.ViewModels;
5 |
6 | ///
7 | /// Interaction logic for ColoursView.xaml
8 | ///
9 | public partial class ColoursView
10 | {
11 | public ColoursView()
12 | {
13 | InitializeComponent();
14 | this.DataContext = new ColoursViewModel();
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/CommandsView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using Framework.UI.TestHarness.ViewModels;
4 |
5 | ///
6 | /// Interaction logic for CommandsView.xaml
7 | ///
8 | public partial class CommandsView
9 | {
10 | public CommandsView()
11 | {
12 | InitializeComponent();
13 | this.DataContext = new CommandsViewModel();
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/ConvertersView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for ConvertersView.xaml
5 | ///
6 | public partial class ConvertersView
7 | {
8 | public ConvertersView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/DataGridView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using System.Linq;
4 | using System.Windows.Controls;
5 | using System.Windows.Data;
6 | using Framework.UI.TestHarness.ViewModels;
7 |
8 | ///
9 | /// Interaction logic for DataGridView.xaml
10 | ///
11 | public partial class DataGridView
12 | {
13 | public DataGridView()
14 | {
15 | InitializeComponent();
16 | this.DataContext = new DataGridViewModel();
17 | }
18 |
19 | private void OnGroupsTextChanged(object sender, TextChangedEventArgs e)
20 | {
21 | DataGridViewModel viewModel = (DataGridViewModel)this.DataContext;
22 |
23 | viewModel.FundsView.GroupDescriptions.Clear();
24 |
25 | foreach (string propertyName in this.GroupsTextBox.Text
26 | .Split(',')
27 | .Select(x => x.Trim())
28 | .Where(x => !string.IsNullOrWhiteSpace(x)))
29 | {
30 | viewModel.FundsView.GroupDescriptions.Add(new PropertyGroupDescription(propertyName));
31 | }
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/DragAndDropView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using Framework.UI.TestHarness.ViewModels;
4 |
5 | ///
6 | /// Interaction logic for DragAndDropView.xaml
7 | ///
8 | public partial class DragAndDropView
9 | {
10 | public DragAndDropView()
11 | {
12 | InitializeComponent();
13 | this.DataContext = new DragAndDropViewModel();
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/ElasticPickerView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using Framework.UI.TestHarness.ViewModels;
4 |
5 | ///
6 | /// Interaction logic for ElasticPickerView.xaml
7 | ///
8 | public partial class ElasticPickerView
9 | {
10 | public ElasticPickerView()
11 | {
12 | InitializeComponent();
13 | this.DataContext = new ElasticPickerViewModel();
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/ElysiumView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for ElysiumView.xaml
5 | ///
6 | public partial class ElysiumView
7 | {
8 | public ElysiumView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/ExpanderMenuView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using Framework.UI.TestHarness.ViewModels;
4 |
5 | ///
6 | /// Interaction logic for ExpanderMenuView.xaml
7 | ///
8 | public partial class ExpanderMenuView
9 | {
10 | public ExpanderMenuView()
11 | {
12 | InitializeComponent();
13 | this.DataContext = new ExpanderMenuViewModel();
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/ExpandersView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for ExpandersView.xaml
5 | ///
6 | public partial class ExpandersView
7 | {
8 | public ExpandersView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/FlipControlView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for FlipControlView.xaml
5 | ///
6 | public partial class FlipControlView
7 | {
8 | public FlipControlView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/FlyoutView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using System.Windows.Controls;
4 | using Framework.UI.Controls;
5 |
6 | ///
7 | /// Interaction logic for FlyoutView.xaml
8 | ///
9 | public partial class FlyoutView
10 | {
11 | public FlyoutView()
12 | {
13 | InitializeComponent();
14 | this.Loaded += this.OnLoaded;
15 | }
16 |
17 | private void OnLoaded(object sender, System.Windows.RoutedEventArgs e)
18 | {
19 | if (this.ParentGrid.Children.Contains(this.ExpanderGrid))
20 | {
21 | this.ParentGrid.Children.Remove(this.ExpanderGrid);
22 | Window window = (Window)Window.GetWindow(this);
23 | window.ForegroundContent = this.ExpanderGrid;
24 | }
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/FocusVisualStyleView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for FocusVisualStyleView.xaml
5 | ///
6 | public partial class FocusVisualStyleView
7 | {
8 | public FocusVisualStyleView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/IconsView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using Framework.UI.TestHarness.ViewModels;
4 |
5 | ///
6 | /// Interaction logic for IconsView.xaml
7 | ///
8 | public partial class IconsView
9 | {
10 | public IconsView()
11 | {
12 | InitializeComponent();
13 | this.DataContext = new IconViewModel();
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/InputView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using Framework.UI.TestHarness.ViewModels;
4 |
5 | ///
6 | /// Interaction logic for InputView.xaml
7 | ///
8 | public partial class InputView
9 | {
10 | public InputView()
11 | {
12 | InitializeComponent();
13 | this.DataContext = new InputViewModel();
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/ListBoxView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using System.Windows;
4 | using Framework.UI.Input;
5 | using Framework.UI.TestHarness.Models;
6 | using Framework.UI.TestHarness.ViewModels;
7 |
8 | ///
9 | /// Interaction logic for ListBoxView.xaml
10 | ///
11 | public partial class ListBoxView
12 | {
13 | public ListBoxView()
14 | {
15 | InitializeComponent();
16 | this.DataContext = new ListBoxViewModel();
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/ListViewView.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
14 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/ListViewView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for ListViewView.xaml
5 | ///
6 | public partial class ListViewView
7 | {
8 | public ListViewView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/MenuItemView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using Framework.UI.TestHarness.ViewModels;
4 |
5 | ///
6 | /// Interaction logic for MenuItemView.xaml
7 | ///
8 | public partial class MenuItemView
9 | {
10 | public MenuItemView()
11 | {
12 | InitializeComponent();
13 | this.DataContext = new MenuItemViewModel();
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/NotifyBoxView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using System;
4 | using System.Windows;
5 | using System.Windows.Media;
6 | using Framework.UI.Controls;
7 |
8 | ///
9 | /// Interaction logic for NotifyBoxView.xaml
10 | ///
11 | public partial class NotifyBoxView
12 | {
13 | public NotifyBoxView()
14 | {
15 | InitializeComponent();
16 | }
17 |
18 | ///
19 | /// The on show notify box.
20 | ///
21 | /// The sender.
22 | /// The event arguments.
23 | private void OnShowNotifyBox(object sender, RoutedEventArgs e)
24 | {
25 | NotifyBox.Show(
26 | (DrawingImage)this.FindResource(this.NotifyBoxIconTextBox.Text),
27 | this.NotifyBoxTitleTextBox.Text,
28 | this.NotifyBoxMessageTextBox.Text,
29 | this.IsDoubleHeightCheckBox.IsChecked.Value);
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/OverlayWindowExample.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using System.Windows;
4 |
5 | ///
6 | /// Interaction logic for OverlayWindowExample.xaml
7 | ///
8 | public partial class OverlayWindowExample
9 | {
10 | public OverlayWindowExample()
11 | {
12 | InitializeComponent();
13 | }
14 |
15 | private void OnClick(object sender, RoutedEventArgs e)
16 | {
17 | this.Close();
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/PagingView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for PagingView.xaml
5 | ///
6 | public partial class PagingView
7 | {
8 | public PagingView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/PanelsView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for PanelsView.xaml
5 | ///
6 | public partial class PanelsView
7 | {
8 | public PanelsView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/PopupsView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using System.Windows;
4 |
5 | ///
6 | /// Interaction logic for PopupsView.xaml
7 | ///
8 | public partial class PopupsView
9 | {
10 | public PopupsView()
11 | {
12 | InitializeComponent();
13 | }
14 |
15 | ///
16 | /// The on open popup click.
17 | ///
18 | /// The sender.
19 | /// The event arguments.
20 | private void OnOpenPopupClick(object sender, RoutedEventArgs e)
21 | {
22 | this.Popup.IsOpen = true;
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/PracticesView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for PracticesView.xaml
5 | ///
6 | public partial class PracticesView
7 | {
8 | public PracticesView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/ProgressView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for ProgressView.xaml
5 | ///
6 | public partial class ProgressView
7 | {
8 | public ProgressView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/ScrollView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for ScrollView.xaml
5 | ///
6 | public partial class ScrollView
7 | {
8 | public ScrollView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/SeperatorsView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for SeparatorsView.xaml
5 | ///
6 | public partial class SeparatorsView
7 | {
8 | public SeparatorsView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/TextView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for TextView.xaml
5 | ///
6 | public partial class TextView
7 | {
8 | public TextView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/ThemeView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for ThemeView.xaml
5 | ///
6 | public partial class ThemeView
7 | {
8 | public ThemeView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/ThicknessView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for ThicknessView.xaml
5 | ///
6 | public partial class ThicknessView
7 | {
8 | public ThicknessView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/ToolTipsView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for ToolTipsView.xaml
5 | ///
6 | public partial class ToolTipsView
7 | {
8 | public ToolTipsView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/TreeViewView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for TreeViewView.xaml
5 | ///
6 | public partial class TreeViewView
7 | {
8 | public TreeViewView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/ValidationView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using Framework.UI.TestHarness.ViewModels;
4 |
5 | ///
6 | /// Interaction logic for ValidationView.xaml
7 | ///
8 | public partial class ValidationView
9 | {
10 | public ValidationView()
11 | {
12 | InitializeComponent();
13 | this.DataContext = new ValidationViewModel();
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Views/WebBrowserView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for WebBrowserView.xaml
5 | ///
6 | public partial class WebBrowserView
7 | {
8 | public WebBrowserView()
9 | {
10 | InitializeComponent();
11 | this.DataContext = "http://www.bing.com";
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/Windows/StylesView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Windows
2 | {
3 | ///
4 | /// Interaction logic for Styles View XAML
5 | ///
6 | public partial class StylesView
7 | {
8 | ///
9 | /// Initialises a new instance of the class.
10 | ///
11 | public StylesView()
12 | {
13 | InitializeComponent();
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI.TestHarness/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Assets/Divider.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:d6d62f7494006f4057d691022090c27212873519bcce908db2d651e862398691
3 | size 239
4 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Commands/CommandBindingCollection.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Commands
2 | {
3 | using System.Windows;
4 |
5 | ///
6 | /// Collection to store the list of behaviours. This is done so that you can initiate it from XAML
7 | /// This inherits from so that it gets inheritance context for DataBinding to work
8 | ///
9 | public class CommandBindingCollection : FreezableCollection
10 | {
11 | ///
12 | /// Gets or sets the Owner of the binding
13 | ///
14 | public DependencyObject Owner { get; set; }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Commands/Internal/ActionExecutionStrategy.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Commands
2 | {
3 | ///
4 | /// executes a delegate
5 | ///
6 | internal class ActionExecutionStrategy : IExecutionStrategy
7 | {
8 | #region IExecutionStrategy Members
9 |
10 | ///
11 | /// Gets or sets the behaviour that we execute this strategy
12 | ///
13 | public CommandBehaviorBinding Behavior { get; set; }
14 |
15 | ///
16 | /// Executes an Action delegate
17 | ///
18 | /// The parameter to pass to the Action
19 | public void Execute(object parameter)
20 | {
21 | this.Behavior.Action(parameter);
22 | }
23 |
24 | #endregion
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Commands/Internal/CommandExecutionStrategy.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Commands
2 | {
3 | using System;
4 |
5 | ///
6 | /// Executes a command
7 | ///
8 | internal class CommandExecutionStrategy : IExecutionStrategy
9 | {
10 | #region IExecutionStrategy Members
11 | ///
12 | /// Gets or sets the behaviour that we execute this strategy
13 | ///
14 | public CommandBehaviorBinding Behavior { get; set; }
15 |
16 | ///
17 | /// Executes the Command that is stored in the CommandProperty of the CommandExecution
18 | ///
19 | /// The parameter for the command
20 | public void Execute(object parameter)
21 | {
22 | if (this.Behavior == null)
23 | {
24 | throw new InvalidOperationException("Behavior property cannot be null when executing a strategy");
25 | }
26 |
27 | if (this.Behavior.Command.CanExecute(this.Behavior.CommandParameter))
28 | {
29 | this.Behavior.Command.Execute(this.Behavior.CommandParameter);
30 | }
31 | }
32 |
33 | #endregion
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Commands/Internal/IExecutionStrategy.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Commands
2 | {
3 | ///
4 | /// Defines the interface for a strategy of execution for the .
5 | ///
6 | internal interface IExecutionStrategy
7 | {
8 | ///
9 | /// Gets or sets the behaviour that we execute this strategy
10 | ///
11 | CommandBehaviorBinding Behavior { get; set; }
12 |
13 | ///
14 | /// Executes according to the strategy type
15 | ///
16 | /// The parameter to be used in the execution
17 | void Execute(object parameter);
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/Accordion/AccordionAction.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// Determines the action the AccordionItem will perform.
5 | ///
6 | /// Preview
7 | internal enum AccordionAction
8 | {
9 | ///
10 | /// No action will be performed.
11 | ///
12 | None,
13 |
14 | ///
15 | /// A collapse will be performed.
16 | ///
17 | Collapse,
18 |
19 | ///
20 | /// An expand will be performed.
21 | ///
22 | Expand,
23 |
24 | ///
25 | /// A resize will be performed.
26 | ///
27 | Resize
28 | }
29 | }
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/Accordion/AccordionSelectionMode.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// Defines the minimum and maximum number of selected items allowed in an Accordion control.
5 | ///
6 | /// Preview
7 | public enum AccordionSelectionMode
8 | {
9 | ///
10 | /// Exactly one item must be selected in the Accordion.
11 | ///
12 | One,
13 |
14 | ///
15 | /// At least one item must be selected in the Accordion.
16 | ///
17 | OneOrMore,
18 |
19 | ///
20 | /// No more than one item can be selected in the accordion.
21 | ///
22 | ZeroOrOne,
23 |
24 | ///
25 | /// Any number of items can be selected in the Accordion.
26 | ///
27 | ZeroOrMore
28 | }
29 | }
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/Accordion/Automation/Peers/AccordionItemWrapperAutomationPeer.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Automation.Peers
2 | {
3 | using System.Diagnostics.CodeAnalysis;
4 | using System.Windows.Automation.Peers;
5 | using System.Windows.Automation.Provider;
6 | using System.Windows.Controls;
7 | using Framework.UI.Controls;
8 |
9 | ///
10 | /// Wraps an .
11 | ///
12 | public class AccordionItemWrapperAutomationPeer : FrameworkElementAutomationPeer
13 | {
14 | ///
15 | /// Initialises a new instance of the class.
16 | ///
17 | /// The to wrap.
18 | public AccordionItemWrapperAutomationPeer(AccordionItem item)
19 | : base(item)
20 | {
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/Accordion/IUpdateVisualState.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System;
4 | using System.Diagnostics.CodeAnalysis;
5 |
6 | ///
7 | /// The IUpdateVisualState interface is used to provide the
8 | /// InteractionHelper with access to the type's UpdateVisualState method.
9 | ///
10 | [SuppressMessage("Microsoft.Design", "CA1064:ExceptionsShouldBePublic", Justification = "This is not an exception class.")]
11 | internal interface IUpdateVisualState
12 | {
13 | ///
14 | /// Update the visual state of the control.
15 | ///
16 | ///
17 | /// A value indicating whether to automatically generate transitions to
18 | /// the new state, or instantly transition to the new state.
19 | ///
20 | void UpdateVisualState(bool useTransitions);
21 | }
22 | }
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/Accordion/SelectionSequence.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// Determines the order in which visual states are set.
5 | ///
6 | /// Preview
7 | public enum SelectionSequence
8 | {
9 | ///
10 | /// Collapses are set before expansions.
11 | ///
12 | CollapseBeforeExpand,
13 |
14 | ///
15 | /// No delays, all states are set immediately.
16 | ///
17 | Simultaneous
18 | }
19 | }
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/AdornedControl/AdornerPlacement.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// Specifies the placement of the adorner in related to the adorned control.
5 | ///
6 | public enum AdornerPlacement
7 | {
8 | ///
9 | /// Inside the adorned control.
10 | ///
11 | Inside,
12 |
13 | ///
14 | /// Outside the adorned control.
15 | ///
16 | Outside
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/CalloutContentControl/ArrowAlignment.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// The arrow alignment.
5 | ///
6 | public enum ArrowAlignment
7 | {
8 | ///
9 | /// Left aligned.
10 | ///
11 | Left,
12 |
13 | ///
14 | /// Right aligned
15 | ///
16 | Right,
17 |
18 | ///
19 | /// Centre aligned.
20 | ///
21 | Centre
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/CalloutContentControl/ArrowPlacement.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// The arrow placement.
5 | ///
6 | public enum ArrowPlacement
7 | {
8 | ///
9 | /// Placed at the top.
10 | ///
11 | Top,
12 |
13 | ///
14 | /// Placed at the bottom.
15 | ///
16 | Bottom,
17 |
18 | ///
19 | /// Not placed.
20 | ///
21 | None
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/DataGrid/Columns/DataGridDecimalUpDownColumn.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.ComponentModel;
4 | using System.Windows;
5 | using System.Windows.Controls;
6 | using System.Windows.Data;
7 |
8 | ///
9 | /// The decimal column for the
10 | ///
11 | public class DataGridDecimalColumn : DataGridNumberColumn
12 | {
13 | #region Constructors
14 |
15 | ///
16 | /// Initialises static members of the class.
17 | ///
18 | static DataGridDecimalColumn()
19 | {
20 | DataGridDecimalColumn.UpdateMetadata(1M, decimal.MinValue, decimal.MaxValue);
21 | }
22 |
23 | ///
24 | /// Initialises a new instance of the class.
25 | ///
26 | public DataGridDecimalColumn()
27 | {
28 | this.EditingElementStyle = (Style)Application.Current.FindResource("DataGridDecimalUpDownColumnEditingElementStyle");
29 | this.ElementStyle = (Style)Application.Current.FindResource("DataGridDecimalUpDownColumnElementStyle");
30 | }
31 |
32 | #endregion
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/DataGrid/Columns/DataGridDoubleUpDownColumn.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Windows;
4 | using System.Windows.Controls;
5 | using System.Windows.Data;
6 |
7 | ///
8 | /// The double column for the
9 | ///
10 | public class DataGridDoubleColumn : DataGridNumberColumn
11 | {
12 | #region Constructors
13 |
14 | ///
15 | /// Initialises static members of the class.
16 | ///
17 | static DataGridDoubleColumn()
18 | {
19 | DataGridDoubleColumn.UpdateMetadata(1D, double.MinValue, double.MaxValue);
20 | }
21 |
22 | ///
23 | /// Initialises a new instance of the class.
24 | ///
25 | public DataGridDoubleColumn()
26 | {
27 | this.EditingElementStyle = (Style)Application.Current.FindResource("DataGridDoubleUpDownColumnEditingElementStyle");
28 | this.ElementStyle = (Style)Application.Current.FindResource("DataGridDoubleUpDownColumnElementStyle");
29 | }
30 |
31 | #endregion
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/DataGrid/Columns/DataGridIntegerUpDownColumn.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Windows;
4 | using System.Windows.Controls;
5 | using System.Windows.Data;
6 |
7 | ///
8 | /// The integer column for the
9 | ///
10 | public class DataGridIntegerColumn : DataGridNumberColumn
11 | {
12 | #region Constructors
13 |
14 | ///
15 | /// Initialises static members of the class.
16 | ///
17 | static DataGridIntegerColumn()
18 | {
19 | DataGridIntegerColumn.UpdateMetadata(1, int.MinValue, int.MaxValue);
20 | }
21 |
22 | ///
23 | /// Initialises a new instance of the class.
24 | ///
25 | public DataGridIntegerColumn()
26 | {
27 | this.EditingElementStyle = (Style)Application.Current.FindResource("DataGridIntegerUpDownColumnEditingElementStyle");
28 | this.ElementStyle = (Style)Application.Current.FindResource("DataGridIntegerUpDownColumnElementStyle");
29 | }
30 |
31 | #endregion
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/DataGrid/Columns/DataGridLongUpDownColumn.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Windows;
4 | using System.Windows.Controls;
5 | using System.Windows.Data;
6 |
7 | ///
8 | /// The integer column for the
9 | ///
10 | public class DataGridLongColumn : DataGridNumberColumn
11 | {
12 | #region Constructors
13 |
14 | ///
15 | /// Initialises static members of the class.
16 | ///
17 | static DataGridLongColumn()
18 | {
19 | DataGridLongColumn.UpdateMetadata(1L, long.MinValue, long.MaxValue);
20 | }
21 |
22 | ///
23 | /// Initialises a new instance of the class.
24 | ///
25 | public DataGridLongColumn()
26 | {
27 | this.EditingElementStyle = (Style)Application.Current.FindResource("DataGridLongUpDownColumnEditingElementStyle");
28 | this.ElementStyle = (Style)Application.Current.FindResource("DataGridLongUpDownColumnElementStyle");
29 | }
30 |
31 | #endregion
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/DataGrid/Columns/DataGridMultiLineTextColumn.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | namespace Framework.UI.Controls
3 | {
4 | ///
5 | /// The text box column for the
6 | ///
7 | public sealed class DataGridMultiLineTextColumn : System.Windows.Controls.DataGridTextColumn
8 | {
9 | ///
10 | /// Initialises a new instance of the class.
11 | ///
12 | public DataGridMultiLineTextColumn()
13 | {
14 | this.EditingElementStyle = (System.Windows.Style)Application.Current.FindResource("DataGridMultiLineTextColumnEditingElementStyle");
15 | this.ElementStyle = (System.Windows.Style)Application.Current.FindResource("DataGridMultiLineTextColumnElementStyle");
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/DataGrid/Columns/DataGridTemplateColumn.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Windows;
4 |
5 | ///
6 | /// The template column for the
7 | ///
8 | public class DataGridTemplateColumn : System.Windows.Controls.DataGridTemplateColumn
9 | {
10 | #region Constructors
11 |
12 | ///
13 | /// Initialises a new instance of the class.
14 | ///
15 | public DataGridTemplateColumn()
16 | {
17 | this.CellStyle = (System.Windows.Style)Application.Current.FindResource("DataGridTemplateColumnCellStyle");
18 | }
19 |
20 | #endregion
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/DataGrid/DataGridColumnAttached.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Windows;
4 | using System.Windows.Controls;
5 |
6 | ///
7 | /// attached properties
8 | ///
9 | public static class DataGridColumnAttached
10 | {
11 | #region Dependency Properties
12 |
13 | public static readonly DependencyProperty CanUserHideColumnProperty = DependencyProperty.RegisterAttached(
14 | "CanUserHideColumn",
15 | typeof(bool),
16 | typeof(DataGridColumnAttached),
17 | new PropertyMetadata(true));
18 |
19 | #endregion
20 |
21 | #region Public Static Methods
22 |
23 | public static bool GetCanUserHideColumn(DataGridColumn dataGridColumn)
24 | {
25 | return (bool)dataGridColumn.GetValue(CanUserHideColumnProperty);
26 | }
27 |
28 | public static void SetCanUserHideColumn(DataGridColumn dataGridColumn, bool value)
29 | {
30 | dataGridColumn.SetValue(CanUserHideColumnProperty, value);
31 | }
32 |
33 | #endregion
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/DataGrid/GroupSummary/DataGridGroupSummaryCollection.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Collections.ObjectModel;
4 | using System.Windows;
5 |
6 | ///
7 | /// The collection of group summary items.
8 | ///
9 | public sealed class DataGridGroupSummaryCollection : FreezableCollection
10 | {
11 | ///
12 | /// The create instance core.
13 | ///
14 | /// The Freeze able Object
15 | protected override Freezable CreateInstanceCore()
16 | {
17 | return new DataGridGroupSummaryCollection();
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/ElasticPicker/Picker/ElasticGroupCollection.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Windows;
4 |
5 | ///
6 | /// The elastic group collection.
7 | ///
8 | public class ElasticGroupCollection : FreezableCollection
9 | {
10 | ///
11 | /// The create instance core.
12 | ///
13 | /// The Freeze able Object
14 | protected override Freezable CreateInstanceCore()
15 | {
16 | return new ElasticGroupCollection();
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/ElasticPicker/Picker/ElasticGroupNumberFormat.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// The display number formats for an elastic group.
5 | ///
6 | public enum ElasticGroupNumberFormat
7 | {
8 | ///
9 | /// The number of items applicable at any one time.
10 | ///
11 | Value,
12 |
13 | ///
14 | /// The total number of items.
15 | ///
16 | Total,
17 |
18 | ///
19 | /// The number of items applicable over the total.
20 | ///
21 | ValueAndTotal
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/ElasticPicker/Picker/ElasticGroupSortMode.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// The sort method to sort the elastic group items by.
5 | ///
6 | public enum ElasticGroupSortMode
7 | {
8 | ///
9 | /// Sort by the content.
10 | ///
11 | Content,
12 |
13 | ///
14 | /// Sort by the number of items.
15 | ///
16 | Count
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/ElasticPicker/Picker/Internal/EntityGroupCollection.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Collections.ObjectModel;
4 |
5 | ///
6 | /// The entity group collection.
7 | ///
8 | public sealed class EntityGroupCollection : ObservableCollection
9 | {
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/ElasticPicker/Picker/Internal/EntityView.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// The Entity View
5 | ///
6 | public sealed class EntityView
7 | {
8 | private EntityGroupCollection groups;
9 |
10 | ///
11 | /// Initialises a new instance of the class.
12 | ///
13 | public EntityView()
14 | {
15 | this.groups = new EntityGroupCollection();
16 | }
17 |
18 | ///
19 | /// Gets the groups.
20 | ///
21 | public EntityGroupCollection Groups
22 | {
23 | get { return this.groups; }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/ExpanderMenu/ExpanderMenuItem.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Windows;
4 | using System.Windows.Controls;
5 |
6 | ///
7 | /// Represents a selectable item inside a .
8 | ///
9 | public class ExpanderMenuItem : MenuItem
10 | {
11 | public static readonly DependencyProperty IsColoursInvertedProperty = DependencyProperty.Register(
12 | "IsColoursInverted",
13 | typeof(bool),
14 | typeof(ExpanderMenuItem),
15 | new PropertyMetadata(false));
16 |
17 | ///
18 | /// Gets or sets a value indicating whether the colours of this instance are inverted so that the
19 | /// Foreground and Background are swapped. Useful for showing contrast.
20 | ///
21 | ///
22 | /// true if the colours in this instance are inverted; otherwise, false.
23 | ///
24 | public bool IsColoursInverted
25 | {
26 | get { return (bool)this.GetValue(IsColoursInvertedProperty); }
27 | set { this.SetValue(IsColoursInvertedProperty, value); }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/GroupStyleCollection.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Collections.ObjectModel;
4 | using System.Windows.Controls;
5 |
6 | ///
7 | /// The collection of group styles.
8 | ///
9 | public sealed class GroupStyleCollection : ObservableCollection
10 | {
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/Icon/IconSize.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | public enum IconSize
4 | {
5 | Small,
6 | Medium,
7 | Large,
8 | VeryLarge,
9 | Custom
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/Interactivity/Behaviors.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Collections.Generic;
4 | using System.Windows.Interactivity;
5 |
6 | ///
7 | /// The behaviours.
8 | ///
9 | public sealed class Behaviors : List
10 | {
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/Interactivity/Triggers.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Collections.Generic;
4 | using System.Windows.Interactivity;
5 |
6 | ///
7 | /// The triggers.
8 | ///
9 | public sealed class Triggers : List
10 | {
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/MessageDialog/MessageDialogButton.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Windows.Controls;
4 |
5 | public sealed class MessageDialogButton : Button
6 | {
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/MessageDialog/MessageDialogType.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | public enum MessageDialogType
4 | {
5 | Light,
6 | Dark,
7 | Accent
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/NumericUpDown/AllowedSpecialValuesEnum.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System;
4 |
5 | ///
6 | /// Flagged enumeration determining which special values if any are allowed.
7 | ///
8 | [Flags]
9 | public enum AllowedSpecialValues
10 | {
11 | ///
12 | /// None allowed.
13 | ///
14 | None = 0,
15 |
16 | ///
17 | /// NaN allowed.
18 | ///
19 | NaN = 1,
20 |
21 | ///
22 | /// Positive infinity allowed.
23 | ///
24 | PositiveInfinity = 2,
25 |
26 | ///
27 | /// Negative infinity allowed.
28 | ///
29 | NegativeInfinity = 4,
30 |
31 | ///
32 | /// Any infinity allowed.
33 | ///
34 | AnyInfinity = PositiveInfinity | NegativeInfinity,
35 |
36 | ///
37 | /// Any allowed.
38 | ///
39 | Any = NaN | AnyInfinity
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/NumericUpDown/IValidateInput.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// The ValidateInput interface.
5 | ///
6 | public interface IValidateInput
7 | {
8 | ///
9 | /// The input validation error.
10 | ///
11 | event InputValidationErrorEventHandler InputValidationError;
12 |
13 | ///
14 | /// The commit input.
15 | ///
16 | /// The .
17 | bool CommitInput();
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/PagingItemsControl/NumberedPage.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// A page with a number.
5 | ///
6 | public sealed class NumberedPage
7 | {
8 | ///
9 | /// Initialises a new instance of the class.
10 | ///
11 | /// The page number.
12 | public NumberedPage(int pageNumber)
13 | {
14 | this.PageNumber = pageNumber;
15 | }
16 |
17 | ///
18 | /// Gets or sets the page number.
19 | ///
20 | ///
21 | /// The page number.
22 | ///
23 | public int PageNumber { get; set; }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/Spinner/SpinDirection.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// Represents spin directions that could be initiated by the end-user.
5 | ///
6 | /// Preview
7 | public enum SpinDirection
8 | {
9 | ///
10 | /// Represents a spin initiated by the end-user in order to Increase a value.
11 | ///
12 | Increase = 0,
13 |
14 | ///
15 | /// Represents a spin initiated by the end-user in order to Decrease a value.
16 | ///
17 | Decrease = 1
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/Spinner/SpinEventArgs.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Windows;
4 |
5 | ///
6 | /// Provides data for the Spinner.Spin event.
7 | ///
8 | /// Preview
9 | public class SpinEventArgs : RoutedEventArgs
10 | {
11 | ///
12 | /// Initialises a new instance of the SpinEventArgs class.
13 | ///
14 | /// Spin direction.
15 | public SpinEventArgs(SpinDirection direction)
16 | : base()
17 | {
18 | this.Direction = direction;
19 | }
20 |
21 | ///
22 | /// Gets the SpinDirection for the spin that has been initiated by the
23 | /// end-user.
24 | ///
25 | public SpinDirection Direction
26 | {
27 | get;
28 | private set;
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/Spinner/ValidSpinDirections.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System;
4 |
5 | ///
6 | /// Represents spin directions that are valid.
7 | ///
8 | [Flags]
9 | public enum ValidSpinDirections
10 | {
11 | ///
12 | /// Can not increase nor decrease.
13 | ///
14 | None = 0,
15 |
16 | ///
17 | /// Can increase.
18 | ///
19 | Increase = 1,
20 |
21 | ///
22 | /// Can decrease.
23 | ///
24 | Decrease = 2
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/TextBox/QueryMoveFocusEventHandler.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// The query move focus event handler.
5 | ///
6 | /// The sender.
7 | /// The event arguments.
8 | public delegate void QueryMoveFocusEventHandler(object sender, QueryMoveFocusEventArgs e);
9 | }
10 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/Wizard/Internal/WizardItemModelCollection.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using Framework.ComponentModel;
4 |
5 | ///
6 | /// The wizard item model collection.
7 | ///
8 | public sealed class WizardItemModelCollection : KeyedObservableItemsCollection
9 | {
10 | ///
11 | /// The get key for item.
12 | ///
13 | /// The item.
14 | /// The .
15 | protected override string GetKeyForItem(WizardItemModel item)
16 | {
17 | return item.Id;
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/Wizard/WizardAnimation.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// The wizard animation.
5 | ///
6 | public enum WizardAnimation
7 | {
8 | Fade,
9 | Slide,
10 | FadeAndSlide
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/Wizard/WizardCollectionAnimation.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// The wizard collection animation.
5 | ///
6 | public enum WizardCollectionAnimation
7 | {
8 | Random,
9 | Sequential
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/Wizard/WizardItemCollection.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Collections.Generic;
4 | using Framework.ComponentModel;
5 |
6 | ///
7 | /// The wizard item collection.
8 | ///
9 | public sealed class WizardItemCollection : KeyedObservableCollection
10 | {
11 | ///
12 | /// Initialises a new instance of the class.
13 | ///
14 | public WizardItemCollection()
15 | {
16 | }
17 |
18 | ///
19 | /// Initialises a new instance of the class.
20 | ///
21 | /// The wizard items.
22 | public WizardItemCollection(IEnumerable items)
23 | {
24 | foreach (WizardItem item in items)
25 | {
26 | this.Add(item);
27 | }
28 | }
29 |
30 | ///
31 | /// The get key for item.
32 | ///
33 | /// The item.
34 | /// The .
35 | protected override string GetKeyForItem(WizardItem item)
36 | {
37 | return item.Id;
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/Wizard/WizardMode.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// The wizard mode.
5 | ///
6 | public enum WizardMode
7 | {
8 | None,
9 | Linear,
10 | Tree
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/Wizard/WizardXaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Linq;
4 | using System.Windows;
5 | using System.Windows.Controls;
6 | using System.Windows.Controls.Primitives;
7 |
8 | ///
9 | /// Code behind for the XAML
10 | ///
11 | public partial class WizardXaml
12 | {
13 | ///
14 | /// On Arrow Click Event
15 | ///
16 | /// THe Sender
17 | /// Event Arguments
18 | private void OnArrowClick(object sender, RoutedEventArgs e)
19 | {
20 | Button button = (Button)sender;
21 | StackPanel stackPanel = (StackPanel)button.Parent;
22 | Popup popup = stackPanel.Children.OfType().First();
23 | popup.IsOpen = true;
24 | }
25 |
26 | ///
27 | /// On Arrow Item Click Event
28 | ///
29 | /// The Sender
30 | /// Event Arguments
31 | private void OnArrowItemClick(object sender, RoutedEventArgs e)
32 | {
33 | Button button = (Button)sender;
34 | Popup popup = button.FindVisualParent();
35 | popup.IsOpen = false;
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Controls/XmlSerializer.cs:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Themes/Elysium/ToggleSwitch.xaml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
13 |
14 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Themes/ElysiumExtra/Watermark.xaml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Themes/WPF/Base/Color.xaml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 | #1EFF0000
6 |
7 |
8 | #00539C
9 | #388A34
10 | #C27D1A
11 | #A1260D
12 | #FFCC00
13 | #1BA1E2
14 |
15 |
16 | #EE0C0D
17 | #89003A
18 | #297733
19 | #920891
20 | #D77C02
21 | #CB2404
22 | #1C428E
23 | #0072C6
24 | #EB3B00
25 |
26 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Themes/WPF/Controls/CheckBox.xaml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
11 |
12 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Themes/WPF/Controls/ComboBoxItem.xaml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
11 |
12 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Themes/WPF/Controls/Hyperlink.xaml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
23 |
24 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Themes/WPF/Controls/ItemsControl.xaml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
11 |
12 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Themes/WPF/Controls/RadioButton.xaml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
11 |
12 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Themes/WPF/Controls/RepeatButton.xaml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
11 |
12 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Themes/WPF/Controls/ScrollViewer.xaml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
11 |
12 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Themes/WPF/Controls/Slider.xaml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
12 |
13 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Themes/WPF/Controls/TabControl.xaml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
13 |
14 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Themes/WPF/Controls/TabItem.xaml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/Themes/WPF/Controls/ToggleButton.xaml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
11 |
12 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/XamlHelper.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI
2 | {
3 | using System.Windows.Markup;
4 |
5 | ///
6 | /// XAML helper methods.
7 | ///
8 | public static class XamlHelper
9 | {
10 | ///
11 | /// Clones the specified object by writing it to XAML and reading the XAML into a new object.
12 | ///
13 | /// The object to be cloned.
14 | /// The cloned object.
15 | public static object Clone(this object obj)
16 | {
17 | string xaml = XamlWriter.Save(obj);
18 | return XamlReader.Parse(xaml);
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Source-branch/Framework.UI/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Source-branch/Framework/CharacterSet.cs:
--------------------------------------------------------------------------------
1 | namespace Framework
2 | {
3 | ///
4 | /// A selection of commonly used sets of characters.
5 | ///
6 | public static class CharacterSet
7 | {
8 | #region Alphabet
9 |
10 | ///
11 | /// All letters of the alphabet (uppercase and lowercase).
12 | ///
13 | public const string AlphabetBoth = AlphabetUppercase + AlphabetLowercase;
14 |
15 | ///
16 | /// Uppercase letters of the alphabet.
17 | ///
18 | public const string AlphabetUppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
19 |
20 | ///
21 | /// Lowercase letters of the alphabet.
22 | ///
23 | public const string AlphabetLowercase = "abcdefghijklmnopqrstuvwxyz";
24 |
25 | #endregion
26 |
27 | #region Numbers
28 |
29 | ///
30 | /// Numbers from zero to nine.
31 | ///
32 | public const string Numbers = "01234556789";
33 |
34 | #endregion
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/Source-branch/Framework/Collections/TraverseKind.cs:
--------------------------------------------------------------------------------
1 | namespace Framework
2 | {
3 | ///
4 | /// The kind of traversal over a tree.
5 | ///
6 | public enum TraverseKind
7 | {
8 | ///
9 | /// Breadth first traversal.
10 | ///
11 | BreadthFirst,
12 |
13 | ///
14 | /// Depth first traversal.
15 | ///
16 | DepthFirst,
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Source-branch/Framework/ComponentModel/Cloneable/ICloneableT.cs:
--------------------------------------------------------------------------------
1 | namespace Framework
2 | {
3 | using System;
4 |
5 | ///
6 | /// Produces deep clones of objects.
7 | ///
8 | /// The type of the object to clone.
9 | public interface ICloneable //: ICloneable
10 | {
11 | ///
12 | /// Clones the clone-able object of type .
13 | ///
14 | ///
15 | /// The cloned object of type .
16 | ///
17 | T Clone();
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Source-branch/Framework/Guard/Guard.cs:
--------------------------------------------------------------------------------
1 | namespace Framework
2 | {
3 | using System.Diagnostics;
4 |
5 | ///
6 | /// Determines the validity of an argument and throws Argument exceptions if invalid.
7 | ///
8 | [DebuggerStepThrough]
9 | public static partial class Guard
10 | {
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/Source-branch/Framework/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/App.xaml:
--------------------------------------------------------------------------------
1 |
7 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/App.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness
2 | {
3 | ///
4 | /// Interaction logic for Application XAML
5 | ///
6 | public partial class App
7 | {
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Assets/Background1.jpg:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:fc1edec43de949e7c6607bf76fc4bb912cedb03dece9abecd03cd9c8ff05fc5b
3 | size 1243779
4 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Assets/Background2.jpg:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:e06117f19c56d018e76f59e47c16015ef4e94bfa3461aa6899ace9f0aa2c7d9b
3 | size 579754
4 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Assets/Icon.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:b565f38b4cb9c1a196273f402a0de931cb6bcef32e0ae35fcc3192e7afdaa0a0
3 | size 1213
4 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Assets/IconColourSystem.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:4c6ba9c217046eb425c06e22adf208ed21f4630c6215c7796584a89f90c0dcd0
3 | size 340675
4 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/MainView.xaml:
--------------------------------------------------------------------------------
1 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
20 |
21 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/MainView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness
2 | {
3 | using System.Windows;
4 | using Framework.UI.TestHarness.Windows;
5 |
6 | ///
7 | /// Interaction logic for Main View XAML
8 | ///
9 | public partial class MainView
10 | {
11 | ///
12 | /// Initialises a new instance of the class.
13 | ///
14 | public MainView()
15 | {
16 | InitializeComponent();
17 | }
18 |
19 | ///
20 | /// The on Elysium click.
21 | ///
22 | /// The sender.
23 | /// The event Arguments.
24 | private void OnElysiumClick(object sender, RoutedEventArgs e)
25 | {
26 | new ElysiumView().Show();
27 | }
28 |
29 | ///
30 | /// The on styles click.
31 | ///
32 | /// The sender.
33 | /// The event Arguments.
34 | private void OnStylesClick(object sender, RoutedEventArgs e)
35 | {
36 | new StylesView().Show();
37 | }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Models/Person.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Models
2 | {
3 | using Framework.ComponentModel;
4 |
5 | ///
6 | /// The person.
7 | ///
8 | public sealed class Person : NotifyPropertyChanges
9 | {
10 | private bool isSelected;
11 |
12 | ///
13 | /// Gets or sets the eye colour.
14 | ///
15 | public string EyeColour
16 | {
17 | get;
18 | set;
19 | }
20 |
21 | ///
22 | /// Gets or sets the gender.
23 | ///
24 | public string Gender
25 | {
26 | get;
27 | set;
28 | }
29 |
30 | ///
31 | /// Gets or sets the nationality.
32 | ///
33 | public string Nationality
34 | {
35 | get;
36 | set;
37 | }
38 |
39 | ///
40 | /// Gets or sets the profession.
41 | ///
42 | ///
43 | /// The profession.
44 | ///
45 | public string Profession
46 | {
47 | get;
48 | set;
49 | }
50 |
51 | ///
52 | /// Gets or sets a value indicating whether is selected.
53 | ///
54 | public bool IsSelected
55 | {
56 | get { return this.isSelected; }
57 | set { this.SetProperty(ref this.isSelected, value); }
58 | }
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Models/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | 1
10 |
11 |
12 | 0
13 |
14 |
15 | False
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/ViewModels/ColoursViewModel.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.ViewModels
2 | {
3 | using System.Collections.Generic;
4 |
5 | public sealed class ColoursViewModel
6 | {
7 | public List Colours
8 | {
9 | get
10 | {
11 | return new List()
12 | {
13 | "Green",
14 | "Red",
15 | "Blue",
16 | "Black",
17 | "Yellow",
18 | "Brown",
19 | "Purple",
20 | "Orange"
21 | };
22 | }
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/ViewModels/CommandsViewModel.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.ViewModels
2 | {
3 | using System.Threading.Tasks;
4 | using Framework.UI.Controls;
5 | using Framework.UI.Input;
6 |
7 | public sealed class CommandsViewModel
8 | {
9 | private readonly AsyncDelegateCommand showMessageBoxCommand;
10 |
11 | public CommandsViewModel()
12 | {
13 | this.showMessageBoxCommand = new AsyncDelegateCommand(this.ShowMessageBox);
14 | }
15 |
16 | ///
17 | /// Gets the show message box command.
18 | ///
19 | public AsyncDelegateCommand ShowMessageBoxCommand
20 | {
21 | get { return this.showMessageBoxCommand; }
22 | }
23 |
24 | ///
25 | /// The show message box.
26 | ///
27 | /// The message.
28 | private async Task ShowMessageBox(string message)
29 | {
30 | await MessageDialog.ShowAsync("Show Message", message);
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/ViewModels/DragAndDropViewModel.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.ViewModels
2 | {
3 | using System.Threading.Tasks;
4 | using Framework.UI.Controls;
5 | using Framework.UI.Input;
6 | using Framework.UI.TestHarness.Models;
7 |
8 | public sealed class DragAndDropViewModel
9 | {
10 | private readonly AsyncDelegateCommand showMessageBoxCommand;
11 | private FundCollection funds;
12 |
13 | #region Constructors
14 |
15 | public DragAndDropViewModel()
16 | {
17 | this.funds = new FundCollection();
18 | this.showMessageBoxCommand = new AsyncDelegateCommand(this.ShowMessageBox);
19 | }
20 |
21 | #endregion
22 |
23 | public FundCollection Funds
24 | {
25 | get { return this.funds; }
26 | }
27 |
28 | public AsyncDelegateCommand ShowMessageBoxCommand
29 | {
30 | get { return this.showMessageBoxCommand; }
31 | }
32 |
33 | ///
34 | /// The show message box.
35 | ///
36 | /// The message.
37 | private async Task ShowMessageBox(string message)
38 | {
39 | await MessageDialog.ShowAsync("Show Message", message);
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/ViewModels/ElasticPickerViewModel.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.ViewModels
2 | {
3 | using Framework.UI.TestHarness.Models;
4 |
5 | public sealed class ElasticPickerViewModel
6 | {
7 | private readonly PersonCollection people;
8 |
9 | public ElasticPickerViewModel()
10 | {
11 | this.people = new PersonCollection();
12 | }
13 | public PersonCollection People
14 | {
15 | get { return this.people; }
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/ViewModels/ExpanderMenuViewModel.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.ViewModels
2 | {
3 | using System.Collections.Generic;
4 | using Framework.UI.TestHarness.Models;
5 |
6 | public sealed class ExpanderMenuViewModel
7 | {
8 | private readonly FundCollection funds;
9 |
10 | public ExpanderMenuViewModel()
11 | {
12 | this.funds = new FundCollection();
13 | }
14 |
15 | public List Colours
16 | {
17 | get
18 | {
19 | return new List()
20 | {
21 | "Green",
22 | "Red",
23 | "Blue",
24 | "Black",
25 | "Yellow",
26 | "Brown",
27 | "Purple",
28 | "Orange"
29 | };
30 | }
31 | }
32 |
33 | public FundCollection Funds
34 | {
35 | get { return this.funds; }
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/ViewModels/InputViewModel.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.ViewModels
2 | {
3 | using System.Threading.Tasks;
4 | using Framework.UI.Controls;
5 | using Framework.UI.Input;
6 | using Framework.UI.TestHarness.Models;
7 |
8 | public sealed class InputViewModel
9 | {
10 | private readonly FundCollection funds;
11 | private readonly AsyncDelegateCommand showMessageBoxCommand;
12 |
13 | public InputViewModel()
14 | {
15 | this.funds = new FundCollection();
16 | this.showMessageBoxCommand = new AsyncDelegateCommand(this.ShowMessageBox);
17 | }
18 |
19 | public FundCollection Funds
20 | {
21 | get { return this.funds; }
22 | }
23 |
24 | public AsyncDelegateCommand ShowMessageBoxCommand
25 | {
26 | get { return this.showMessageBoxCommand; }
27 | }
28 |
29 | private async Task ShowMessageBox(string message)
30 | {
31 | await MessageDialog.ShowAsync("Show Message", message);
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/ViewModels/ListBoxViewModel.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.ViewModels
2 | {
3 | using System.Threading.Tasks;
4 | using Framework.UI.Controls;
5 | using Framework.UI.Input;
6 | using Framework.UI.TestHarness.Models;
7 |
8 | public sealed class ListBoxViewModel
9 | {
10 | private readonly FundCollection funds;
11 | private readonly AsyncDelegateCommand pinCommand;
12 |
13 | public ListBoxViewModel()
14 | {
15 | this.funds = new FundCollection();
16 | this.pinCommand = new AsyncDelegateCommand(this.Pin);
17 | }
18 |
19 | public FundCollection Funds
20 | {
21 | get { return this.funds; }
22 | }
23 |
24 | public AsyncDelegateCommand PinCommand
25 | {
26 | get { return this.pinCommand; }
27 | }
28 |
29 | private async Task Pin()
30 | {
31 | await MessageDialog.ShowAsync("PinCommand", "PinCommand Fired.");
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/ViewModels/MenuItemViewModel.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.ViewModels
2 | {
3 | using Framework.ComponentModel;
4 |
5 | public sealed class MenuItemViewModel : NotifyPropertyChanges
6 | {
7 | private string property1;
8 | private string property2;
9 | private string property3;
10 |
11 | public string Property1
12 | {
13 | get { return this.property1; }
14 | set { this.SetProperty(ref this.property1, value); }
15 | }
16 |
17 | public string Property2
18 | {
19 | get { return this.property2; }
20 | set { this.SetProperty(ref this.property2, value); }
21 | }
22 |
23 | public string Property3
24 | {
25 | get { return this.property3; }
26 | set { this.SetProperty(ref this.property3, value); }
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/ViewModels/StyleViewModel.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.ViewModels
2 | {
3 | using System;
4 | using System.Linq;
5 | using System.Windows;
6 |
7 | public sealed class StyleViewModel
8 | {
9 | private readonly string key;
10 | private readonly Style style;
11 |
12 | public StyleViewModel(string key, Style style)
13 | {
14 | this.key = key;
15 | this.style = style;
16 | }
17 |
18 | public string Key
19 | {
20 | get { return this.key; }
21 | }
22 |
23 | public string Name
24 | {
25 | get { return this.Key.Replace("IconStyle", string.Empty); }
26 | }
27 |
28 | public Style Style
29 | {
30 | get { return this.style; }
31 | }
32 |
33 | public string[] Tags
34 | {
35 | get
36 | {
37 | Setter setter = this.style.Setters
38 | .OfType()
39 | .FirstOrDefault(x => string.Equals(x.Property.Name, "", StringComparison.Ordinal));
40 |
41 | if (setter == null)
42 | {
43 | return null;
44 | }
45 |
46 | return setter.Value
47 | .ToString()
48 | .Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
49 | }
50 | }
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/AppBarView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for AppBarView.xaml
5 | ///
6 | public partial class AppBarView
7 | {
8 | public AppBarView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/BackgroundView.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
15 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/BackgroundView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for BackgroundView.xaml
5 | ///
6 | public partial class BackgroundView
7 | {
8 | public BackgroundView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/BordersView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for BordersView.xaml
5 | ///
6 | public partial class BordersView
7 | {
8 | public BordersView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/ButtonsView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for ButtonsView.xaml
5 | ///
6 | public partial class ButtonsView
7 | {
8 | public ButtonsView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/ColoursView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using System.Collections.Generic;
4 | using Framework.UI.TestHarness.ViewModels;
5 |
6 | ///
7 | /// Interaction logic for ColoursView.xaml
8 | ///
9 | public partial class ColoursView
10 | {
11 | public ColoursView()
12 | {
13 | InitializeComponent();
14 | this.DataContext = new ColoursViewModel();
15 | }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/CommandsView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using Framework.UI.TestHarness.ViewModels;
4 |
5 | ///
6 | /// Interaction logic for CommandsView.xaml
7 | ///
8 | public partial class CommandsView
9 | {
10 | public CommandsView()
11 | {
12 | InitializeComponent();
13 | this.DataContext = new CommandsViewModel();
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/ConvertersView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for ConvertersView.xaml
5 | ///
6 | public partial class ConvertersView
7 | {
8 | public ConvertersView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/DataGridView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using System.Linq;
4 | using System.Windows.Controls;
5 | using System.Windows.Data;
6 | using Framework.UI.TestHarness.ViewModels;
7 |
8 | ///
9 | /// Interaction logic for DataGridView.xaml
10 | ///
11 | public partial class DataGridView
12 | {
13 | public DataGridView()
14 | {
15 | InitializeComponent();
16 | this.DataContext = new DataGridViewModel();
17 | }
18 |
19 | private void OnGroupsTextChanged(object sender, TextChangedEventArgs e)
20 | {
21 | DataGridViewModel viewModel = (DataGridViewModel)this.DataContext;
22 |
23 | viewModel.FundsView.GroupDescriptions.Clear();
24 |
25 | foreach (string propertyName in this.GroupsTextBox.Text
26 | .Split(',')
27 | .Select(x => x.Trim())
28 | .Where(x => !string.IsNullOrWhiteSpace(x)))
29 | {
30 | viewModel.FundsView.GroupDescriptions.Add(new PropertyGroupDescription(propertyName));
31 | }
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/DragAndDropView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using Framework.UI.TestHarness.ViewModels;
4 |
5 | ///
6 | /// Interaction logic for DragAndDropView.xaml
7 | ///
8 | public partial class DragAndDropView
9 | {
10 | public DragAndDropView()
11 | {
12 | InitializeComponent();
13 | this.DataContext = new DragAndDropViewModel();
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/ElasticPickerView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using Framework.UI.TestHarness.ViewModels;
4 |
5 | ///
6 | /// Interaction logic for ElasticPickerView.xaml
7 | ///
8 | public partial class ElasticPickerView
9 | {
10 | public ElasticPickerView()
11 | {
12 | InitializeComponent();
13 | this.DataContext = new ElasticPickerViewModel();
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/ElysiumView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for ElysiumView.xaml
5 | ///
6 | public partial class ElysiumView
7 | {
8 | public ElysiumView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/ExpanderMenuView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using Framework.UI.TestHarness.ViewModels;
4 |
5 | ///
6 | /// Interaction logic for ExpanderMenuView.xaml
7 | ///
8 | public partial class ExpanderMenuView
9 | {
10 | public ExpanderMenuView()
11 | {
12 | InitializeComponent();
13 | this.DataContext = new ExpanderMenuViewModel();
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/ExpandersView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for ExpandersView.xaml
5 | ///
6 | public partial class ExpandersView
7 | {
8 | public ExpandersView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/FlipControlView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for FlipControlView.xaml
5 | ///
6 | public partial class FlipControlView
7 | {
8 | public FlipControlView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/FlyoutView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using System.Windows.Controls;
4 | using Framework.UI.Controls;
5 |
6 | ///
7 | /// Interaction logic for FlyoutView.xaml
8 | ///
9 | public partial class FlyoutView
10 | {
11 | public FlyoutView()
12 | {
13 | InitializeComponent();
14 | this.Loaded += this.OnLoaded;
15 | }
16 |
17 | private void OnLoaded(object sender, System.Windows.RoutedEventArgs e)
18 | {
19 | if (this.ParentGrid.Children.Contains(this.ExpanderGrid))
20 | {
21 | this.ParentGrid.Children.Remove(this.ExpanderGrid);
22 | Window window = (Window)Window.GetWindow(this);
23 | window.ForegroundContent = this.ExpanderGrid;
24 | }
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/FocusVisualStyleView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for FocusVisualStyleView.xaml
5 | ///
6 | public partial class FocusVisualStyleView
7 | {
8 | public FocusVisualStyleView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/IconsView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using Framework.UI.TestHarness.ViewModels;
4 |
5 | ///
6 | /// Interaction logic for IconsView.xaml
7 | ///
8 | public partial class IconsView
9 | {
10 | public IconsView()
11 | {
12 | InitializeComponent();
13 | this.DataContext = new IconViewModel();
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/InputView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using Framework.UI.TestHarness.ViewModels;
4 |
5 | ///
6 | /// Interaction logic for InputView.xaml
7 | ///
8 | public partial class InputView
9 | {
10 | public InputView()
11 | {
12 | InitializeComponent();
13 | this.DataContext = new InputViewModel();
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/ListBoxView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using System.Windows;
4 | using Framework.UI.Input;
5 | using Framework.UI.TestHarness.Models;
6 | using Framework.UI.TestHarness.ViewModels;
7 |
8 | ///
9 | /// Interaction logic for ListBoxView.xaml
10 | ///
11 | public partial class ListBoxView
12 | {
13 | public ListBoxView()
14 | {
15 | InitializeComponent();
16 | this.DataContext = new ListBoxViewModel();
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/ListViewView.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
14 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/ListViewView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for ListViewView.xaml
5 | ///
6 | public partial class ListViewView
7 | {
8 | public ListViewView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/MenuItemView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using Framework.UI.TestHarness.ViewModels;
4 |
5 | ///
6 | /// Interaction logic for MenuItemView.xaml
7 | ///
8 | public partial class MenuItemView
9 | {
10 | public MenuItemView()
11 | {
12 | InitializeComponent();
13 | this.DataContext = new MenuItemViewModel();
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/NotifyBoxView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using System;
4 | using System.Windows;
5 | using System.Windows.Media;
6 | using Framework.UI.Controls;
7 |
8 | ///
9 | /// Interaction logic for NotifyBoxView.xaml
10 | ///
11 | public partial class NotifyBoxView
12 | {
13 | public NotifyBoxView()
14 | {
15 | InitializeComponent();
16 | }
17 |
18 | ///
19 | /// The on show notify box.
20 | ///
21 | /// The sender.
22 | /// The event arguments.
23 | private void OnShowNotifyBox(object sender, RoutedEventArgs e)
24 | {
25 | NotifyBox.Show(
26 | (DrawingImage)this.FindResource(this.NotifyBoxIconTextBox.Text),
27 | this.NotifyBoxTitleTextBox.Text,
28 | this.NotifyBoxMessageTextBox.Text,
29 | this.IsDoubleHeightCheckBox.IsChecked.Value);
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/OverlayWindowExample.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using System.Windows;
4 |
5 | ///
6 | /// Interaction logic for OverlayWindowExample.xaml
7 | ///
8 | public partial class OverlayWindowExample
9 | {
10 | public OverlayWindowExample()
11 | {
12 | InitializeComponent();
13 | }
14 |
15 | private void OnClick(object sender, RoutedEventArgs e)
16 | {
17 | this.Close();
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/PagingView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using System.Windows;
4 | using System.Windows.Controls;
5 | using Framework.UI.Controls;
6 |
7 | ///
8 | /// Interaction logic for PagingView.xaml
9 | ///
10 | public partial class PagingView
11 | {
12 | public PagingView()
13 | {
14 | InitializeComponent();
15 | }
16 |
17 | private void OnSetPageClick(object sender, RoutedEventArgs e)
18 | {
19 | if (this.PageIntegerUpDown.Value.HasValue)
20 | {
21 | this.SetPage(this.PagingItemsControl, this.PageIntegerUpDown.Value.Value);
22 | }
23 | }
24 |
25 | private void SetPage(ItemsControl pagingItemsControl, int page)
26 | {
27 | PagingDecorator pagingDecorator = pagingItemsControl.FindVisualChild();
28 | if ((page >= 0) &&
29 | (page < pagingDecorator.Items.Count))
30 | {
31 | pagingDecorator.SelectedIndex = page;
32 | }
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/PanelsView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for PanelsView.xaml
5 | ///
6 | public partial class PanelsView
7 | {
8 | public PanelsView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/PopupsView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using System.Windows;
4 |
5 | ///
6 | /// Interaction logic for PopupsView.xaml
7 | ///
8 | public partial class PopupsView
9 | {
10 | public PopupsView()
11 | {
12 | InitializeComponent();
13 | }
14 |
15 | ///
16 | /// The on open popup click.
17 | ///
18 | /// The sender.
19 | /// The event arguments.
20 | private void OnOpenPopupClick(object sender, RoutedEventArgs e)
21 | {
22 | this.Popup.IsOpen = true;
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/PracticesView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for PracticesView.xaml
5 | ///
6 | public partial class PracticesView
7 | {
8 | public PracticesView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/ProgressView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for ProgressView.xaml
5 | ///
6 | public partial class ProgressView
7 | {
8 | public ProgressView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/ScrollView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for ScrollView.xaml
5 | ///
6 | public partial class ScrollView
7 | {
8 | public ScrollView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/SeperatorsView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for SeparatorsView.xaml
5 | ///
6 | public partial class SeparatorsView
7 | {
8 | public SeparatorsView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/TextView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for TextView.xaml
5 | ///
6 | public partial class TextView
7 | {
8 | public TextView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/ThemeView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for ThemeView.xaml
5 | ///
6 | public partial class ThemeView
7 | {
8 | public ThemeView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/ThicknessView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for ThicknessView.xaml
5 | ///
6 | public partial class ThicknessView
7 | {
8 | public ThicknessView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/ToolTipsView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for ToolTipsView.xaml
5 | ///
6 | public partial class ToolTipsView
7 | {
8 | public ToolTipsView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/TreeViewView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for TreeViewView.xaml
5 | ///
6 | public partial class TreeViewView
7 | {
8 | public TreeViewView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/ValidationView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | using Framework.UI.TestHarness.ViewModels;
4 |
5 | ///
6 | /// Interaction logic for ValidationView.xaml
7 | ///
8 | public partial class ValidationView
9 | {
10 | public ValidationView()
11 | {
12 | InitializeComponent();
13 | this.DataContext = new ValidationViewModel();
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Views/WebBrowserView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Views
2 | {
3 | ///
4 | /// Interaction logic for WebBrowserView.xaml
5 | ///
6 | public partial class WebBrowserView
7 | {
8 | public WebBrowserView()
9 | {
10 | InitializeComponent();
11 | this.DataContext = "http://www.bing.com";
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/Windows/StylesView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.TestHarness.Windows
2 | {
3 | ///
4 | /// Interaction logic for Styles View XAML
5 | ///
6 | public partial class StylesView
7 | {
8 | ///
9 | /// Initialises a new instance of the class.
10 | ///
11 | public StylesView()
12 | {
13 | InitializeComponent();
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source/Framework.UI.TestHarness/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Assets/Divider.png:
--------------------------------------------------------------------------------
1 | version https://git-lfs.github.com/spec/v1
2 | oid sha256:d6d62f7494006f4057d691022090c27212873519bcce908db2d651e862398691
3 | size 239
4 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Commands/CommandBindingCollection.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Commands
2 | {
3 | using System.Windows;
4 |
5 | ///
6 | /// Collection to store the list of behaviours. This is done so that you can initiate it from XAML
7 | /// This inherits from so that it gets inheritance context for DataBinding to work
8 | ///
9 | public class CommandBindingCollection : FreezableCollection
10 | {
11 | ///
12 | /// Gets or sets the Owner of the binding
13 | ///
14 | public DependencyObject Owner { get; set; }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Commands/Internal/ActionExecutionStrategy.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Commands
2 | {
3 | ///
4 | /// executes a delegate
5 | ///
6 | internal class ActionExecutionStrategy : IExecutionStrategy
7 | {
8 | #region IExecutionStrategy Members
9 |
10 | ///
11 | /// Gets or sets the behaviour that we execute this strategy
12 | ///
13 | public CommandBehaviorBinding Behavior { get; set; }
14 |
15 | ///
16 | /// Executes an Action delegate
17 | ///
18 | /// The parameter to pass to the Action
19 | public void Execute(object parameter)
20 | {
21 | this.Behavior.Action(parameter);
22 | }
23 |
24 | #endregion
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Commands/Internal/CommandExecutionStrategy.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Commands
2 | {
3 | using System;
4 |
5 | ///
6 | /// Executes a command
7 | ///
8 | internal class CommandExecutionStrategy : IExecutionStrategy
9 | {
10 | #region IExecutionStrategy Members
11 | ///
12 | /// Gets or sets the behaviour that we execute this strategy
13 | ///
14 | public CommandBehaviorBinding Behavior { get; set; }
15 |
16 | ///
17 | /// Executes the Command that is stored in the CommandProperty of the CommandExecution
18 | ///
19 | /// The parameter for the command
20 | public void Execute(object parameter)
21 | {
22 | if (this.Behavior == null)
23 | {
24 | throw new InvalidOperationException("Behavior property cannot be null when executing a strategy");
25 | }
26 |
27 | if (this.Behavior.Command.CanExecute(this.Behavior.CommandParameter))
28 | {
29 | this.Behavior.Command.Execute(this.Behavior.CommandParameter);
30 | }
31 | }
32 |
33 | #endregion
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Commands/Internal/IExecutionStrategy.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Commands
2 | {
3 | ///
4 | /// Defines the interface for a strategy of execution for the .
5 | ///
6 | internal interface IExecutionStrategy
7 | {
8 | ///
9 | /// Gets or sets the behaviour that we execute this strategy
10 | ///
11 | CommandBehaviorBinding Behavior { get; set; }
12 |
13 | ///
14 | /// Executes according to the strategy type
15 | ///
16 | /// The parameter to be used in the execution
17 | void Execute(object parameter);
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/Accordion/AccordionAction.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// Determines the action the AccordionItem will perform.
5 | ///
6 | /// Preview
7 | internal enum AccordionAction
8 | {
9 | ///
10 | /// No action will be performed.
11 | ///
12 | None,
13 |
14 | ///
15 | /// A collapse will be performed.
16 | ///
17 | Collapse,
18 |
19 | ///
20 | /// An expand will be performed.
21 | ///
22 | Expand,
23 |
24 | ///
25 | /// A resize will be performed.
26 | ///
27 | Resize
28 | }
29 | }
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/Accordion/AccordionSelectionMode.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// Defines the minimum and maximum number of selected items allowed in an Accordion control.
5 | ///
6 | /// Preview
7 | public enum AccordionSelectionMode
8 | {
9 | ///
10 | /// Exactly one item must be selected in the Accordion.
11 | ///
12 | One,
13 |
14 | ///
15 | /// At least one item must be selected in the Accordion.
16 | ///
17 | OneOrMore,
18 |
19 | ///
20 | /// No more than one item can be selected in the accordion.
21 | ///
22 | ZeroOrOne,
23 |
24 | ///
25 | /// Any number of items can be selected in the Accordion.
26 | ///
27 | ZeroOrMore
28 | }
29 | }
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/Accordion/Automation/Peers/AccordionItemWrapperAutomationPeer.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Automation.Peers
2 | {
3 | using System.Diagnostics.CodeAnalysis;
4 | using System.Windows.Automation.Peers;
5 | using System.Windows.Automation.Provider;
6 | using System.Windows.Controls;
7 | using Framework.UI.Controls;
8 |
9 | ///
10 | /// Wraps an .
11 | ///
12 | public class AccordionItemWrapperAutomationPeer : FrameworkElementAutomationPeer
13 | {
14 | ///
15 | /// Initialises a new instance of the class.
16 | ///
17 | /// The to wrap.
18 | public AccordionItemWrapperAutomationPeer(AccordionItem item)
19 | : base(item)
20 | {
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/Accordion/IUpdateVisualState.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System;
4 | using System.Diagnostics.CodeAnalysis;
5 |
6 | ///
7 | /// The IUpdateVisualState interface is used to provide the
8 | /// InteractionHelper with access to the type's UpdateVisualState method.
9 | ///
10 | [SuppressMessage("Microsoft.Design", "CA1064:ExceptionsShouldBePublic", Justification = "This is not an exception class.")]
11 | internal interface IUpdateVisualState
12 | {
13 | ///
14 | /// Update the visual state of the control.
15 | ///
16 | ///
17 | /// A value indicating whether to automatically generate transitions to
18 | /// the new state, or instantly transition to the new state.
19 | ///
20 | void UpdateVisualState(bool useTransitions);
21 | }
22 | }
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/Accordion/SelectionSequence.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// Determines the order in which visual states are set.
5 | ///
6 | /// Preview
7 | public enum SelectionSequence
8 | {
9 | ///
10 | /// Collapses are set before expansions.
11 | ///
12 | CollapseBeforeExpand,
13 |
14 | ///
15 | /// No delays, all states are set immediately.
16 | ///
17 | Simultaneous
18 | }
19 | }
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/AdornedControl/AdornerPlacement.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// Specifies the placement of the adorner in related to the adorned control.
5 | ///
6 | public enum AdornerPlacement
7 | {
8 | ///
9 | /// Inside the adorned control.
10 | ///
11 | Inside,
12 |
13 | ///
14 | /// Outside the adorned control.
15 | ///
16 | Outside
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/BorderFix.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Windows;
4 | using System.Windows.Controls;
5 |
6 | public sealed class BorderFix : ContentControl
7 | {
8 | #region Constructors
9 |
10 | ///
11 | /// Initialises a new instance of the class.
12 | ///
13 | static BorderFix()
14 | {
15 | DefaultStyleKeyProperty.OverrideMetadata(typeof(BorderFix), new FrameworkPropertyMetadata(typeof(BorderFix)));
16 | }
17 |
18 | #endregion
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/CalloutContentControl/ArrowAlignment.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// The arrow alignment.
5 | ///
6 | public enum ArrowAlignment
7 | {
8 | ///
9 | /// Left aligned.
10 | ///
11 | Left,
12 |
13 | ///
14 | /// Right aligned
15 | ///
16 | Right,
17 |
18 | ///
19 | /// Centre aligned.
20 | ///
21 | Centre
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/CalloutContentControl/ArrowPlacement.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// The arrow placement.
5 | ///
6 | public enum ArrowPlacement
7 | {
8 | ///
9 | /// Placed at the top.
10 | ///
11 | Top,
12 |
13 | ///
14 | /// Placed at the bottom.
15 | ///
16 | Bottom,
17 |
18 | ///
19 | /// Not placed.
20 | ///
21 | None
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/DataGrid/Columns/DataGridDecimalUpDownColumn.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.ComponentModel;
4 | using System.Windows;
5 | using System.Windows.Controls;
6 | using System.Windows.Data;
7 |
8 | ///
9 | /// The decimal column for the
10 | ///
11 | public class DataGridDecimalColumn : DataGridNumberColumn
12 | {
13 | #region Constructors
14 |
15 | ///
16 | /// Initialises static members of the class.
17 | ///
18 | static DataGridDecimalColumn()
19 | {
20 | DataGridDecimalColumn.UpdateMetadata(1M, decimal.MinValue, decimal.MaxValue);
21 | }
22 |
23 | ///
24 | /// Initialises a new instance of the class.
25 | ///
26 | public DataGridDecimalColumn()
27 | {
28 | this.EditingElementStyle = (Style)Application.Current.FindResource("DataGridDecimalUpDownColumnEditingElementStyle");
29 | this.ElementStyle = (Style)Application.Current.FindResource("DataGridDecimalUpDownColumnElementStyle");
30 | }
31 |
32 | #endregion
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/DataGrid/Columns/DataGridDoubleUpDownColumn.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Windows;
4 | using System.Windows.Controls;
5 | using System.Windows.Data;
6 |
7 | ///
8 | /// The double column for the
9 | ///
10 | public class DataGridDoubleColumn : DataGridNumberColumn
11 | {
12 | #region Constructors
13 |
14 | ///
15 | /// Initialises static members of the class.
16 | ///
17 | static DataGridDoubleColumn()
18 | {
19 | DataGridDoubleColumn.UpdateMetadata(1D, double.MinValue, double.MaxValue);
20 | }
21 |
22 | ///
23 | /// Initialises a new instance of the class.
24 | ///
25 | public DataGridDoubleColumn()
26 | {
27 | this.EditingElementStyle = (Style)Application.Current.FindResource("DataGridDoubleUpDownColumnEditingElementStyle");
28 | this.ElementStyle = (Style)Application.Current.FindResource("DataGridDoubleUpDownColumnElementStyle");
29 | }
30 |
31 | #endregion
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/DataGrid/Columns/DataGridIntegerUpDownColumn.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Windows;
4 | using System.Windows.Controls;
5 | using System.Windows.Data;
6 |
7 | ///
8 | /// The integer column for the
9 | ///
10 | public class DataGridIntegerColumn : DataGridNumberColumn
11 | {
12 | #region Constructors
13 |
14 | ///
15 | /// Initialises static members of the class.
16 | ///
17 | static DataGridIntegerColumn()
18 | {
19 | DataGridIntegerColumn.UpdateMetadata(1, int.MinValue, int.MaxValue);
20 | }
21 |
22 | ///
23 | /// Initialises a new instance of the class.
24 | ///
25 | public DataGridIntegerColumn()
26 | {
27 | this.EditingElementStyle = (Style)Application.Current.FindResource("DataGridIntegerUpDownColumnEditingElementStyle");
28 | this.ElementStyle = (Style)Application.Current.FindResource("DataGridIntegerUpDownColumnElementStyle");
29 | }
30 |
31 | #endregion
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/DataGrid/Columns/DataGridLongUpDownColumn.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Windows;
4 | using System.Windows.Controls;
5 | using System.Windows.Data;
6 |
7 | ///
8 | /// The integer column for the
9 | ///
10 | public class DataGridLongColumn : DataGridNumberColumn
11 | {
12 | #region Constructors
13 |
14 | ///
15 | /// Initialises static members of the class.
16 | ///
17 | static DataGridLongColumn()
18 | {
19 | DataGridLongColumn.UpdateMetadata(1L, long.MinValue, long.MaxValue);
20 | }
21 |
22 | ///
23 | /// Initialises a new instance of the class.
24 | ///
25 | public DataGridLongColumn()
26 | {
27 | this.EditingElementStyle = (Style)Application.Current.FindResource("DataGridLongUpDownColumnEditingElementStyle");
28 | this.ElementStyle = (Style)Application.Current.FindResource("DataGridLongUpDownColumnElementStyle");
29 | }
30 |
31 | #endregion
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/DataGrid/Columns/DataGridMultiLineTextColumn.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | namespace Framework.UI.Controls
3 | {
4 | ///
5 | /// The text box column for the
6 | ///
7 | public sealed class DataGridMultiLineTextColumn : System.Windows.Controls.DataGridTextColumn
8 | {
9 | ///
10 | /// Initialises a new instance of the class.
11 | ///
12 | public DataGridMultiLineTextColumn()
13 | {
14 | this.EditingElementStyle = (System.Windows.Style)Application.Current.FindResource("DataGridMultiLineTextColumnEditingElementStyle");
15 | this.ElementStyle = (System.Windows.Style)Application.Current.FindResource("DataGridMultiLineTextColumnElementStyle");
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/DataGrid/Columns/DataGridTemplateColumn.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Windows;
4 |
5 | ///
6 | /// The template column for the
7 | ///
8 | public class DataGridTemplateColumn : System.Windows.Controls.DataGridTemplateColumn
9 | {
10 | #region Constructors
11 |
12 | ///
13 | /// Initialises a new instance of the class.
14 | ///
15 | public DataGridTemplateColumn()
16 | {
17 | this.CellStyle = (System.Windows.Style)Application.Current.FindResource("DataGridTemplateColumnCellStyle");
18 | }
19 |
20 | #endregion
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/DataGrid/DataGridColumnAttached.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Windows;
4 | using System.Windows.Controls;
5 |
6 | ///
7 | /// attached properties
8 | ///
9 | public static class DataGridColumnAttached
10 | {
11 | #region Dependency Properties
12 |
13 | public static readonly DependencyProperty CanUserHideColumnProperty = DependencyProperty.RegisterAttached(
14 | "CanUserHideColumn",
15 | typeof(bool),
16 | typeof(DataGridColumnAttached),
17 | new PropertyMetadata(true));
18 |
19 | #endregion
20 |
21 | #region Public Static Methods
22 |
23 | public static bool GetCanUserHideColumn(DataGridColumn dataGridColumn)
24 | {
25 | return (bool)dataGridColumn.GetValue(CanUserHideColumnProperty);
26 | }
27 |
28 | public static void SetCanUserHideColumn(DataGridColumn dataGridColumn, bool value)
29 | {
30 | dataGridColumn.SetValue(CanUserHideColumnProperty, value);
31 | }
32 |
33 | #endregion
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/DataGrid/GroupSummary/DataGridGroupSummaryCollection.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Collections.ObjectModel;
4 | using System.Windows;
5 |
6 | ///
7 | /// The collection of group summary items.
8 | ///
9 | public sealed class DataGridGroupSummaryCollection : FreezableCollection
10 | {
11 | ///
12 | /// The create instance core.
13 | ///
14 | /// The Freeze able Object
15 | protected override Freezable CreateInstanceCore()
16 | {
17 | return new DataGridGroupSummaryCollection();
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/ElasticPicker/Picker/ElasticGroupCollection.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Windows;
4 |
5 | ///
6 | /// The elastic group collection.
7 | ///
8 | public class ElasticGroupCollection : FreezableCollection
9 | {
10 | ///
11 | /// The create instance core.
12 | ///
13 | /// The Freeze able Object
14 | protected override Freezable CreateInstanceCore()
15 | {
16 | return new ElasticGroupCollection();
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/ElasticPicker/Picker/ElasticGroupNumberFormat.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// The display number formats for an elastic group.
5 | ///
6 | public enum ElasticGroupNumberFormat
7 | {
8 | ///
9 | /// The number of items applicable at any one time.
10 | ///
11 | Value,
12 |
13 | ///
14 | /// The total number of items.
15 | ///
16 | Total,
17 |
18 | ///
19 | /// The number of items applicable over the total.
20 | ///
21 | ValueAndTotal
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/ElasticPicker/Picker/ElasticGroupSortMode.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// The sort method to sort the elastic group items by.
5 | ///
6 | public enum ElasticGroupSortMode
7 | {
8 | ///
9 | /// Sort by the content.
10 | ///
11 | Content,
12 |
13 | ///
14 | /// Sort by the number of items.
15 | ///
16 | Count
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/ElasticPicker/Picker/Internal/EntityGroupCollection.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Collections.ObjectModel;
4 |
5 | ///
6 | /// The entity group collection.
7 | ///
8 | public sealed class EntityGroupCollection : ObservableCollection
9 | {
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/ElasticPicker/Picker/Internal/EntityView.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// The Entity View
5 | ///
6 | public sealed class EntityView
7 | {
8 | private EntityGroupCollection groups;
9 |
10 | ///
11 | /// Initialises a new instance of the class.
12 | ///
13 | public EntityView()
14 | {
15 | this.groups = new EntityGroupCollection();
16 | }
17 |
18 | ///
19 | /// Gets the groups.
20 | ///
21 | public EntityGroupCollection Groups
22 | {
23 | get { return this.groups; }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/ExpanderMenu/ExpanderMenuItem.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Windows;
4 | using System.Windows.Controls;
5 |
6 | ///
7 | /// Represents a selectable item inside a .
8 | ///
9 | public class ExpanderMenuItem : MenuItem
10 | {
11 | public static readonly DependencyProperty IsColoursInvertedProperty = DependencyProperty.Register(
12 | "IsColoursInverted",
13 | typeof(bool),
14 | typeof(ExpanderMenuItem),
15 | new PropertyMetadata(false));
16 |
17 | ///
18 | /// Gets or sets a value indicating whether the colours of this instance are inverted so that the
19 | /// Foreground and Background are swapped. Useful for showing contrast.
20 | ///
21 | ///
22 | /// true if the colours in this instance are inverted; otherwise, false.
23 | ///
24 | public bool IsColoursInverted
25 | {
26 | get { return (bool)this.GetValue(IsColoursInvertedProperty); }
27 | set { this.SetValue(IsColoursInvertedProperty, value); }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/GroupStyleCollection.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Collections.ObjectModel;
4 | using System.Windows.Controls;
5 |
6 | ///
7 | /// The collection of group styles.
8 | ///
9 | public sealed class GroupStyleCollection : ObservableCollection
10 | {
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/Icon/IconSize.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | public enum IconSize
4 | {
5 | Small,
6 | Medium,
7 | Large,
8 | VeryLarge,
9 | Custom
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/Interactivity/Behaviors.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Collections.Generic;
4 | using System.Windows.Interactivity;
5 |
6 | ///
7 | /// The behaviours.
8 | ///
9 | public sealed class Behaviors : List
10 | {
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/Interactivity/Triggers.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Collections.Generic;
4 | using System.Windows.Interactivity;
5 |
6 | ///
7 | /// The triggers.
8 | ///
9 | public sealed class Triggers : List
10 | {
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/MessageDialog/MessageDialogButton.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Windows.Controls;
4 |
5 | public sealed class MessageDialogButton : Button
6 | {
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/MessageDialog/MessageDialogType.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | public enum MessageDialogType
4 | {
5 | Light,
6 | Dark,
7 | Accent
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/NumericUpDown/AllowedSpecialValuesEnum.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System;
4 |
5 | ///
6 | /// Flagged enumeration determining which special values if any are allowed.
7 | ///
8 | [Flags]
9 | public enum AllowedSpecialValues
10 | {
11 | ///
12 | /// None allowed.
13 | ///
14 | None = 0,
15 |
16 | ///
17 | /// NaN allowed.
18 | ///
19 | NaN = 1,
20 |
21 | ///
22 | /// Positive infinity allowed.
23 | ///
24 | PositiveInfinity = 2,
25 |
26 | ///
27 | /// Negative infinity allowed.
28 | ///
29 | NegativeInfinity = 4,
30 |
31 | ///
32 | /// Any infinity allowed.
33 | ///
34 | AnyInfinity = PositiveInfinity | NegativeInfinity,
35 |
36 | ///
37 | /// Any allowed.
38 | ///
39 | Any = NaN | AnyInfinity
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/NumericUpDown/IValidateInput.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// The ValidateInput interface.
5 | ///
6 | public interface IValidateInput
7 | {
8 | ///
9 | /// The input validation error.
10 | ///
11 | event InputValidationErrorEventHandler InputValidationError;
12 |
13 | ///
14 | /// The commit input.
15 | ///
16 | /// The .
17 | bool CommitInput();
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/PagingItemsControl/NumberedPage.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// A page with a number.
5 | ///
6 | public sealed class NumberedPage
7 | {
8 | ///
9 | /// Initialises a new instance of the class.
10 | ///
11 | /// The page number.
12 | public NumberedPage(int pageNumber)
13 | {
14 | this.PageNumber = pageNumber;
15 | }
16 |
17 | ///
18 | /// Gets or sets the page number.
19 | ///
20 | ///
21 | /// The page number.
22 | ///
23 | public int PageNumber { get; set; }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/Spinner/SpinDirection.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// Represents spin directions that could be initiated by the end-user.
5 | ///
6 | /// Preview
7 | public enum SpinDirection
8 | {
9 | ///
10 | /// Represents a spin initiated by the end-user in order to Increase a value.
11 | ///
12 | Increase = 0,
13 |
14 | ///
15 | /// Represents a spin initiated by the end-user in order to Decrease a value.
16 | ///
17 | Decrease = 1
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/Spinner/SpinEventArgs.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Windows;
4 |
5 | ///
6 | /// Provides data for the Spinner.Spin event.
7 | ///
8 | /// Preview
9 | public class SpinEventArgs : RoutedEventArgs
10 | {
11 | ///
12 | /// Initialises a new instance of the SpinEventArgs class.
13 | ///
14 | /// Spin direction.
15 | public SpinEventArgs(SpinDirection direction)
16 | : base()
17 | {
18 | this.Direction = direction;
19 | }
20 |
21 | ///
22 | /// Gets the SpinDirection for the spin that has been initiated by the
23 | /// end-user.
24 | ///
25 | public SpinDirection Direction
26 | {
27 | get;
28 | private set;
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/Spinner/ValidSpinDirections.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System;
4 |
5 | ///
6 | /// Represents spin directions that are valid.
7 | ///
8 | [Flags]
9 | public enum ValidSpinDirections
10 | {
11 | ///
12 | /// Can not increase nor decrease.
13 | ///
14 | None = 0,
15 |
16 | ///
17 | /// Can increase.
18 | ///
19 | Increase = 1,
20 |
21 | ///
22 | /// Can decrease.
23 | ///
24 | Decrease = 2
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/TextBox/QueryMoveFocusEventHandler.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// The query move focus event handler.
5 | ///
6 | /// The sender.
7 | /// The event arguments.
8 | public delegate void QueryMoveFocusEventHandler(object sender, QueryMoveFocusEventArgs e);
9 | }
10 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/Wizard/Internal/WizardItemModelCollection.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using Framework.ComponentModel;
4 |
5 | ///
6 | /// The wizard item model collection.
7 | ///
8 | public sealed class WizardItemModelCollection : KeyedObservableItemsCollection
9 | {
10 | ///
11 | /// The get key for item.
12 | ///
13 | /// The item.
14 | /// The .
15 | protected override string GetKeyForItem(WizardItemModel item)
16 | {
17 | return item.Id;
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/Wizard/WizardAnimation.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// The wizard animation.
5 | ///
6 | public enum WizardAnimation
7 | {
8 | Fade,
9 | Slide,
10 | FadeAndSlide
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/Wizard/WizardCollectionAnimation.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// The wizard collection animation.
5 | ///
6 | public enum WizardCollectionAnimation
7 | {
8 | Random,
9 | Sequential
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/Wizard/WizardItemCollection.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Collections.Generic;
4 | using Framework.ComponentModel;
5 |
6 | ///
7 | /// The wizard item collection.
8 | ///
9 | public sealed class WizardItemCollection : KeyedObservableCollection
10 | {
11 | ///
12 | /// Initialises a new instance of the class.
13 | ///
14 | public WizardItemCollection()
15 | {
16 | }
17 |
18 | ///
19 | /// Initialises a new instance of the class.
20 | ///
21 | /// The wizard items.
22 | public WizardItemCollection(IEnumerable items)
23 | {
24 | foreach (WizardItem item in items)
25 | {
26 | this.Add(item);
27 | }
28 | }
29 |
30 | ///
31 | /// The get key for item.
32 | ///
33 | /// The item.
34 | /// The .
35 | protected override string GetKeyForItem(WizardItem item)
36 | {
37 | return item.Id;
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/Wizard/WizardMode.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | ///
4 | /// The wizard mode.
5 | ///
6 | public enum WizardMode
7 | {
8 | None,
9 | Linear,
10 | Tree
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/Wizard/WizardXaml.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI.Controls
2 | {
3 | using System.Linq;
4 | using System.Windows;
5 | using System.Windows.Controls;
6 | using System.Windows.Controls.Primitives;
7 |
8 | ///
9 | /// Code behind for the XAML
10 | ///
11 | public partial class WizardXaml
12 | {
13 | ///
14 | /// On Arrow Click Event
15 | ///
16 | /// THe Sender
17 | /// Event Arguments
18 | private void OnArrowClick(object sender, RoutedEventArgs e)
19 | {
20 | Button button = (Button)sender;
21 | StackPanel stackPanel = (StackPanel)button.Parent;
22 | Popup popup = stackPanel.Children.OfType().First();
23 | popup.IsOpen = true;
24 | }
25 |
26 | ///
27 | /// On Arrow Item Click Event
28 | ///
29 | /// The Sender
30 | /// Event Arguments
31 | private void OnArrowItemClick(object sender, RoutedEventArgs e)
32 | {
33 | Button button = (Button)sender;
34 | Popup popup = button.FindVisualParent();
35 | popup.IsOpen = false;
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Controls/XmlSerializer.cs:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Themes/ElysiumExtra/Watermark.xaml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Themes/WPF/Base/Theme/DarkColor.xaml:
--------------------------------------------------------------------------------
1 |
4 |
5 | #00171717
6 | #20171717
7 | #FF171717
8 | #FFFFFFFF
9 | #FF313131
10 | #FF848484
11 | #FFBABABA
12 | #FF5C5956
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Themes/WPF/Base/Theme/LightColor.xaml:
--------------------------------------------------------------------------------
1 |
4 |
5 | #00FFFFFF
6 | #20FFFFFF
7 | #FFFFFFFF
8 | #FF000000
9 | #FFDEDEDE
10 | #FF777777
11 | #FF4D4D4D
12 | #FFB8B5B2
13 |
14 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Themes/WPF/Controls/Hyperlink.xaml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
24 |
25 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Themes/WPF/Controls/ItemsControl.xaml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
12 |
13 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Themes/WPF/Controls/PasswordBox.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
10 |
21 |
22 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Themes/WPF/Controls/RepeatButton.xaml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Themes/WPF/Controls/RichTextBox.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Source/Framework.UI/Themes/WPF/Controls/ToggleButton.xaml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
18 |
19 |
--------------------------------------------------------------------------------
/Source/Framework.UI/XamlHelper.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.UI
2 | {
3 | using System.Windows.Markup;
4 |
5 | ///
6 | /// XAML helper methods.
7 | ///
8 | public static class XamlHelper
9 | {
10 | ///
11 | /// Clones the specified object by writing it to XAML and reading the XAML into a new object.
12 | ///
13 | /// The object to be cloned.
14 | /// The cloned object.
15 | public static object Clone(this object obj)
16 | {
17 | string xaml = XamlWriter.Save(obj);
18 | return XamlReader.Parse(xaml);
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/Source/Framework.UI/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/Source/Framework.UI/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/Source/Framework/CharacterSet.cs:
--------------------------------------------------------------------------------
1 | namespace Framework
2 | {
3 | ///
4 | /// A selection of commonly used sets of characters.
5 | ///
6 | public static class CharacterSet
7 | {
8 | #region Alphabet
9 |
10 | ///
11 | /// All letters of the alphabet (uppercase and lowercase).
12 | ///
13 | public const string AlphabetBoth = AlphabetUppercase + AlphabetLowercase;
14 |
15 | ///
16 | /// Uppercase letters of the alphabet.
17 | ///
18 | public const string AlphabetUppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
19 |
20 | ///
21 | /// Lowercase letters of the alphabet.
22 | ///
23 | public const string AlphabetLowercase = "abcdefghijklmnopqrstuvwxyz";
24 |
25 | #endregion
26 |
27 | #region Numbers
28 |
29 | ///
30 | /// Numbers from zero to nine.
31 | ///
32 | public const string Numbers = "01234556789";
33 |
34 | #endregion
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/Source/Framework/Collections/TraverseKind.cs:
--------------------------------------------------------------------------------
1 | namespace Framework
2 | {
3 | ///
4 | /// The kind of traversal over a tree.
5 | ///
6 | public enum TraverseKind
7 | {
8 | ///
9 | /// Breadth first traversal.
10 | ///
11 | BreadthFirst,
12 |
13 | ///
14 | /// Depth first traversal.
15 | ///
16 | DepthFirst,
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Source/Framework/ComponentModel/Cloneable/ICloneableT.cs:
--------------------------------------------------------------------------------
1 | namespace Framework
2 | {
3 | using System;
4 |
5 | ///
6 | /// Produces deep clones of objects.
7 | ///
8 | /// The type of the object to clone.
9 | public interface ICloneable //: ICloneable
10 | {
11 | ///
12 | /// Clones the clone-able object of type .
13 | ///
14 | ///
15 | /// The cloned object of type .
16 | ///
17 | T Clone();
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Source/Framework/ComponentModel/Collections/ItemChangedEventArgs.cs:
--------------------------------------------------------------------------------
1 | namespace Framework.ComponentModel
2 | {
3 | using System.ComponentModel;
4 |
5 | ///
6 | /// Provides data for the ItemChanged event.
7 | ///
8 | /// The type of the item that changed.
9 | public sealed class ItemChangedEventArgs : PropertyChangedEventArgs
10 | {
11 | private readonly T item;
12 |
13 | #region Constructor
14 |
15 | ///
16 | /// Initializes a new instance of the class.
17 | ///
18 | /// The item that changed.
19 | /// Name of the property that changed on the item.
20 | public ItemChangedEventArgs(T item, string propertyName)
21 | : base(propertyName)
22 | {
23 | this.item = item;
24 | }
25 |
26 | #endregion
27 |
28 | #region Public Properties
29 |
30 | ///
31 | /// Gets the item that changed.
32 | ///
33 | /// The item that changed.
34 | public T Item
35 | {
36 | get { return this.item; }
37 | }
38 |
39 | #endregion
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/Source/Framework/Guard/Guard.cs:
--------------------------------------------------------------------------------
1 | namespace Framework
2 | {
3 | using System.Diagnostics;
4 |
5 | ///
6 | /// Determines the validity of an argument and throws Argument exceptions if invalid.
7 | ///
8 | [DebuggerStepThrough]
9 | public static partial class Guard
10 | {
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/Source/Framework/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------