├── WPFBootstrapUI
├── BootstrapUISample
│ ├── obj
│ │ └── Debug
│ │ │ ├── BootstrapUISample.csproj.CopyComplete
│ │ │ ├── App.baml
│ │ │ ├── BootstrapUISample.csproj.CoreCompileInputs.cache
│ │ │ ├── BootstrapUISample.exe
│ │ │ ├── BootstrapUISample.pdb
│ │ │ ├── BootstrapUISample.g.resources
│ │ │ ├── TempPE
│ │ │ └── Properties.Resources.Designer.cs.dll
│ │ │ ├── BootstrapUISample.csproj.GenerateResource.cache
│ │ │ ├── BootstrapUISample.csprojAssemblyReference.cache
│ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ │ ├── BootstrapUISample.Properties.Resources.resources
│ │ │ ├── App.g.cs
│ │ │ ├── App.g.i.cs
│ │ │ └── MainWindow.g.i.cs
│ ├── Persona.cs
│ ├── bin
│ │ └── Debug
│ │ │ ├── WPFBootstrapUI.dll
│ │ │ ├── WPFBootstrapUI.pdb
│ │ │ ├── BootstrapUISample.exe
│ │ │ ├── BootstrapUISample.pdb
│ │ │ └── BootstrapUISample.exe.config
│ ├── App.config
│ ├── Properties
│ │ ├── Settings.settings
│ │ ├── Settings.Designer.cs
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ └── Resources.resx
│ ├── App.xaml.cs
│ ├── packages.config
│ ├── ViewModels
│ │ └── MainWindowViewModel.cs
│ ├── BoolToColorConverter.cs
│ ├── App.xaml
│ ├── Views
│ │ └── MainWindow.xaml.cs
│ └── BootstrapUISample.csproj
├── images
│ ├── card.png
│ ├── alert.png
│ ├── badge.png
│ ├── button.png
│ ├── modal.png
│ ├── checkbox.png
│ ├── combobox.png
│ ├── groupbox.png
│ ├── listbox.png
│ ├── listview.png
│ ├── modalgif.gif
│ ├── popover.png
│ ├── spinner.gif
│ ├── textbox.png
│ ├── tooltip.png
│ ├── passwordbox.gif
│ ├── passwordbox.png
│ ├── progressbar.png
│ ├── radiobutton.png
│ └── Sample Image.jpeg
├── WPFBootstrapUI
│ ├── Generic.xaml
│ ├── Fonts
│ │ ├── Helvetica.ttf
│ │ ├── Helvetica-Bold.ttf
│ │ ├── Helvetica95Black.ttf
│ │ ├── HelveticaNeueBold.otf
│ │ ├── Helvetica-BoldOblique.ttf
│ │ ├── Helvetica45Light_22437.ttf
│ │ ├── Helvetica 76 Bold Italic.ttf
│ │ └── Helvetica65Medium_22443.ttf
│ ├── ControlsAssists
│ │ ├── ShadowAssist.cs
│ │ ├── LinkButtonTextAssist.cs
│ │ ├── BorderAssist.cs
│ │ ├── TextBoxAssist.cs
│ │ └── PasswordBoxAssist.cs
│ ├── Controls
│ │ ├── Modals
│ │ │ ├── ModalResult.cs
│ │ │ ├── ModalService.cs
│ │ │ └── Modal.cs
│ │ ├── BootstrapWindow.cs
│ │ ├── Carousel.cs
│ │ ├── CardChildPanel.cs
│ │ ├── Card.cs
│ │ ├── Spinner.cs
│ │ ├── Jumbotron.cs
│ │ ├── Badge.cs
│ │ ├── PopOver.cs
│ │ └── Alert.cs
│ ├── Properties
│ │ ├── Settings.settings
│ │ ├── Settings.Designer.cs
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ └── Resources.resx
│ ├── Themes
│ │ ├── BootstrapUI.xaml
│ │ └── System.Windows.xaml
│ ├── WPFBootstrapColors
│ │ └── BootstrapColors.cs
│ ├── Styles
│ │ ├── CarouselStyles.xaml
│ │ ├── WindowStyles.xaml.cs
│ │ ├── Fonts.xaml
│ │ ├── JumbotronStyles.xaml
│ │ ├── GroupBoxStyles.xaml
│ │ ├── SeparatorStyles.xaml
│ │ ├── TextBoxStyles.xaml
│ │ ├── Colors.xaml
│ │ ├── ToolTipStyles.xaml
│ │ ├── PopOverStyles.xaml
│ │ ├── RadioButtonStyles.xaml
│ │ ├── ProgressBarStyles.xaml
│ │ ├── WindowStyles.xaml
│ │ ├── ModalStyles.xaml
│ │ ├── CheckBoxStyles.xaml
│ │ └── SpinnerStyles.xaml
│ ├── Converters
│ │ └── BooleanToVisibilityConverter.cs
│ ├── Animations
│ │ └── StoryBoardHelper.cs
│ └── WPFBootstrapUI.csproj
├── .vs
│ └── WPFBootstrapUI
│ │ └── v16
│ │ └── .suo
├── .idea
│ └── .idea.WPFBootstrapUI
│ │ ├── .idea
│ │ ├── encodings.xml
│ │ ├── misc.xml
│ │ ├── vcs.xml
│ │ ├── indexLayout.xml
│ │ └── .gitignore
│ │ └── riderModule.iml
├── WPFBootstrapUI.Test
│ ├── packages.config
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Controls
│ │ └── Modals
│ │ │ └── ModalServiceTests.cs
│ ├── Converters
│ │ └── BooleanToVisibilityConverterTests.cs
│ └── WPFBootstrapUI.Test.csproj
└── WPFBootstrapUI.sln
├── README.md
├── .github
└── workflows
│ ├── main.yml
│ └── dotnet-desktop.yml
└── .gitignore
/WPFBootstrapUI/BootstrapUISample/obj/Debug/BootstrapUISample.csproj.CopyComplete:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/images/card.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/images/card.png
--------------------------------------------------------------------------------
/WPFBootstrapUI/images/alert.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/images/alert.png
--------------------------------------------------------------------------------
/WPFBootstrapUI/images/badge.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/images/badge.png
--------------------------------------------------------------------------------
/WPFBootstrapUI/images/button.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/images/button.png
--------------------------------------------------------------------------------
/WPFBootstrapUI/images/modal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/images/modal.png
--------------------------------------------------------------------------------
/WPFBootstrapUI/images/checkbox.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/images/checkbox.png
--------------------------------------------------------------------------------
/WPFBootstrapUI/images/combobox.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/images/combobox.png
--------------------------------------------------------------------------------
/WPFBootstrapUI/images/groupbox.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/images/groupbox.png
--------------------------------------------------------------------------------
/WPFBootstrapUI/images/listbox.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/images/listbox.png
--------------------------------------------------------------------------------
/WPFBootstrapUI/images/listview.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/images/listview.png
--------------------------------------------------------------------------------
/WPFBootstrapUI/images/modalgif.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/images/modalgif.gif
--------------------------------------------------------------------------------
/WPFBootstrapUI/images/popover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/images/popover.png
--------------------------------------------------------------------------------
/WPFBootstrapUI/images/spinner.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/images/spinner.gif
--------------------------------------------------------------------------------
/WPFBootstrapUI/images/textbox.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/images/textbox.png
--------------------------------------------------------------------------------
/WPFBootstrapUI/images/tooltip.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/images/tooltip.png
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Generic.xaml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/images/passwordbox.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/images/passwordbox.gif
--------------------------------------------------------------------------------
/WPFBootstrapUI/images/passwordbox.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/images/passwordbox.png
--------------------------------------------------------------------------------
/WPFBootstrapUI/images/progressbar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/images/progressbar.png
--------------------------------------------------------------------------------
/WPFBootstrapUI/images/radiobutton.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/images/radiobutton.png
--------------------------------------------------------------------------------
/WPFBootstrapUI/images/Sample Image.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/images/Sample Image.jpeg
--------------------------------------------------------------------------------
/WPFBootstrapUI/.vs/WPFBootstrapUI/v16/.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/.vs/WPFBootstrapUI/v16/.suo
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Fonts/Helvetica.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/WPFBootstrapUI/Fonts/Helvetica.ttf
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/obj/Debug/App.baml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/BootstrapUISample/obj/Debug/App.baml
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/obj/Debug/BootstrapUISample.csproj.CoreCompileInputs.cache:
--------------------------------------------------------------------------------
1 | ea068676ad90df72e2a1a7a3f0f0799e636b6a057bbf704356a30006f9bfe91a
2 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/ControlsAssists/ShadowAssist.cs:
--------------------------------------------------------------------------------
1 | namespace WPFBootstrapUI.ControlsAssists
2 | {
3 | public class ShadowAssist
4 | {
5 | }
6 | }
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Fonts/Helvetica-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/WPFBootstrapUI/Fonts/Helvetica-Bold.ttf
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Fonts/Helvetica95Black.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/WPFBootstrapUI/Fonts/Helvetica95Black.ttf
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Fonts/HelveticaNeueBold.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/WPFBootstrapUI/Fonts/HelveticaNeueBold.otf
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/Persona.cs:
--------------------------------------------------------------------------------
1 | namespace BootstrapUISample
2 | {
3 | public class Persona
4 | {
5 | public string Nombre { get; set; }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/bin/Debug/WPFBootstrapUI.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/BootstrapUISample/bin/Debug/WPFBootstrapUI.dll
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/bin/Debug/WPFBootstrapUI.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/BootstrapUISample/bin/Debug/WPFBootstrapUI.pdb
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Fonts/Helvetica-BoldOblique.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/WPFBootstrapUI/Fonts/Helvetica-BoldOblique.ttf
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Fonts/Helvetica45Light_22437.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/WPFBootstrapUI/Fonts/Helvetica45Light_22437.ttf
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/bin/Debug/BootstrapUISample.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/BootstrapUISample/bin/Debug/BootstrapUISample.exe
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/bin/Debug/BootstrapUISample.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/BootstrapUISample/bin/Debug/BootstrapUISample.pdb
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/obj/Debug/BootstrapUISample.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/BootstrapUISample/obj/Debug/BootstrapUISample.exe
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/obj/Debug/BootstrapUISample.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/BootstrapUISample/obj/Debug/BootstrapUISample.pdb
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Fonts/Helvetica 76 Bold Italic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/WPFBootstrapUI/Fonts/Helvetica 76 Bold Italic.ttf
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Fonts/Helvetica65Medium_22443.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/WPFBootstrapUI/Fonts/Helvetica65Medium_22443.ttf
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/obj/Debug/BootstrapUISample.g.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/BootstrapUISample/obj/Debug/BootstrapUISample.g.resources
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/BootstrapUISample/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/obj/Debug/BootstrapUISample.csproj.GenerateResource.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/BootstrapUISample/obj/Debug/BootstrapUISample.csproj.GenerateResource.cache
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/obj/Debug/BootstrapUISample.csprojAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/BootstrapUISample/obj/Debug/BootstrapUISample.csprojAssemblyReference.cache
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/BootstrapUISample/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/WPFBootstrapUI/.idea/.idea.WPFBootstrapUI/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/obj/Debug/BootstrapUISample.Properties.Resources.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RandyPJ/WPFBootstrapUI/HEAD/WPFBootstrapUI/BootstrapUISample/obj/Debug/BootstrapUISample.Properties.Resources.resources
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Controls/Modals/ModalResult.cs:
--------------------------------------------------------------------------------
1 | namespace WPFBootstrapUI.Controls.Modals
2 | {
3 | public enum ModalResult
4 | {
5 | None = 0,
6 | Accept = 1,
7 | Cancel = 2
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/.idea/.idea.WPFBootstrapUI/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/.idea/.idea.WPFBootstrapUI/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/bin/Debug/BootstrapUISample.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI.Test/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/.idea/.idea.WPFBootstrapUI/.idea/indexLayout.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/.idea/.idea.WPFBootstrapUI/riderModule.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Themes/BootstrapUI.xaml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Controls/BootstrapWindow.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using System.Windows;
7 |
8 | namespace WPFBootstrapUI.Controls
9 | {
10 | public class BootstrapWindow : Window
11 | {
12 | //TO DO
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/.idea/.idea.WPFBootstrapUI/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 | # Rider ignored files
5 | /modules.xml
6 | /.idea.WPFBootstrapUI.iml
7 | /contentModel.xml
8 | /projectSettingsUpdater.xml
9 | # Datasource local storage ignored files
10 | /dataSources/
11 | /dataSources.local.xml
12 | # Editor-based HTTP Client requests
13 | /httpRequests/
14 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/WPFBootstrapColors/BootstrapColors.cs:
--------------------------------------------------------------------------------
1 | namespace WPFBootstrapUI.WPFBootstrapColors
2 | {
3 | public enum BootstrapColor
4 | {
5 | Primary,
6 | Secondary,
7 | Success,
8 | Danger,
9 | Warning,
10 | Info,
11 | Light,
12 | Dark,
13 | Muted,
14 | White,
15 | Gray
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Controls/Carousel.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | using System.Windows.Controls;
3 |
4 | namespace WPFBootstrapUI.Controls
5 | {
6 | public class Carousel : Panel
7 | {
8 | static Carousel()
9 | {
10 | DefaultStyleKeyProperty.OverrideMetadata(typeof(Carousel), new FrameworkPropertyMetadata(typeof(Carousel)));
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Controls/CardChildPanel.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | using System.Windows.Controls;
3 |
4 | namespace WPFBootstrapUI.Controls
5 | {
6 | public class CardChildPanel : ContentControl
7 | {
8 | static CardChildPanel()
9 | {
10 | DefaultStyleKeyProperty.OverrideMetadata(typeof(CardChildPanel),new FrameworkPropertyMetadata(typeof(CardChildPanel)));
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Styles/CarouselStyles.xaml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Configuration;
4 | using System.Data;
5 | using System.Globalization;
6 | using System.Linq;
7 | using System.Threading;
8 | using System.Threading.Tasks;
9 | using System.Windows;
10 | using System.Windows.Markup;
11 |
12 | namespace BootstrapUISample
13 | {
14 | ///
15 | /// Lógica de interacción para App.xaml
16 | ///
17 | public partial class App : Application
18 | {
19 |
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/ViewModels/MainWindowViewModel.cs:
--------------------------------------------------------------------------------
1 | using Prism.Mvvm;
2 |
3 | namespace BootstrapUISample.ViewModels
4 | {
5 | public class MainWindowViewModel : BindableBase
6 | {
7 | public MainWindowViewModel()
8 | {
9 | Contrasena = "Hola mundo";
10 | }
11 |
12 | private string _contrasena;
13 | public string Contrasena
14 | {
15 | get => _contrasena;
16 | set
17 | {
18 | SetProperty(ref _contrasena, value);
19 | }
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Converters/BooleanToVisibilityConverter.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Globalization;
3 | using System.Windows;
4 | using System.Windows.Data;
5 |
6 | namespace WPFBootstrapUI.Converters
7 | {
8 | public class BooleanToVisibilityConverter : IValueConverter
9 | {
10 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
11 | => (bool)value ? Visibility.Visible : Visibility.Collapsed;
12 |
13 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
14 | {
15 | return null;
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Controls/Card.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | using System.Windows.Controls;
3 |
4 | namespace WPFBootstrapUI.Controls
5 | {
6 | public class Card : ContentControl
7 | {
8 | static Card()
9 | {
10 | DefaultStyleKeyProperty.OverrideMetadata(typeof(Card), new FrameworkPropertyMetadata(typeof(Card)));
11 | }
12 |
13 | public string Title
14 | {
15 | get { return (string)GetValue(TitleProperty); }
16 | set { SetValue(TitleProperty, value); }
17 | }
18 |
19 | public static readonly DependencyProperty TitleProperty =
20 | DependencyProperty.Register("Title", typeof(string), typeof(Card), new PropertyMetadata(""));
21 |
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI.Test/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | [assembly: AssemblyTitle("WPFBootstrapUI.Test")]
6 | [assembly: AssemblyDescription("")]
7 | [assembly: AssemblyConfiguration("")]
8 | [assembly: AssemblyCompany("")]
9 | [assembly: AssemblyProduct("WPFBootstrapUI.Test")]
10 | [assembly: AssemblyCopyright("Copyright © 2020")]
11 | [assembly: AssemblyTrademark("")]
12 | [assembly: AssemblyCulture("")]
13 |
14 | [assembly: ComVisible(false)]
15 |
16 | [assembly: Guid("5bb41279-86d0-4a38-843b-a719009339ac")]
17 |
18 | // [assembly: AssemblyVersion("1.0.*")]
19 | [assembly: AssemblyVersion("1.0.0.0")]
20 | [assembly: AssemblyFileVersion("1.0.0.0")]
21 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Controls/Spinner.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | using System.Windows.Controls;
3 |
4 | namespace WPFBootstrapUI.Controls
5 | {
6 | public class Spinner: Control
7 | {
8 | public static readonly DependencyProperty StrokeThicknessProperty = DependencyProperty.Register("StrokeThickness", typeof(double), typeof(Spinner), new PropertyMetadata(0d));
9 |
10 | static Spinner()
11 | {
12 | DefaultStyleKeyProperty.OverrideMetadata(typeof(Spinner), new FrameworkPropertyMetadata(typeof(Spinner)));
13 | }
14 |
15 | public double StrokeThickness
16 | {
17 | get { return (double)GetValue(StrokeThicknessProperty); }
18 | set { SetValue(StrokeThicknessProperty, value); }
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Controls/Jumbotron.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | using System.Windows.Controls;
3 |
4 | namespace WPFBootstrapUI.Controls
5 | {
6 | public class Jumbotron : ContentControl
7 | {
8 | static Jumbotron()
9 | {
10 | DefaultStyleKeyProperty.OverrideMetadata(typeof(Jumbotron), new FrameworkPropertyMetadata(typeof(Jumbotron)));
11 | }
12 | public CornerRadius CornerRadius
13 | {
14 | get { return (CornerRadius)GetValue(CornerRadiusProperty); }
15 | set { SetValue(CornerRadiusProperty, value); }
16 | }
17 |
18 | public static readonly DependencyProperty CornerRadiusProperty =
19 | DependencyProperty.Register("CornerRadius", typeof(CornerRadius), typeof(Jumbotron), new PropertyMetadata(new CornerRadius(0,0,0,0)));
20 |
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI.Test/Controls/Modals/ModalServiceTests.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.VisualStudio.TestTools.UnitTesting;
2 | using WPFBootstrapUI.Controls.Modals;
3 | using System;
4 | using System.Collections.Generic;
5 | using System.Linq;
6 | using System.Text;
7 | using System.Threading.Tasks;
8 | using System.Management.Instrumentation;
9 |
10 | namespace WPFBootstrapUI.Controls.Modals.Tests
11 | {
12 | [TestClass()]
13 | public class ModalServiceTests
14 | {
15 | [TestMethod()]
16 | public void ShowModalTest()
17 | {
18 | Assert.AreEqual(ModalService.ShowModal(BootstrapUISample.App.Current.MainWindow,"Titulo","Hola","Aceptar","Cancelar",true),ModalResult.Accept);
19 | }
20 |
21 | [TestMethod()]
22 | public void ShowModalAsyncTest()
23 | {
24 | //Assert.Fail();
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/BoolToColorConverter.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Globalization;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 | using System.Windows;
8 | using System.Windows.Data;
9 | using System.Windows.Media;
10 |
11 | namespace BootstrapUISample
12 | {
13 | public class BoolToColorConverter : IValueConverter
14 | {
15 | public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
16 | {
17 | Brush color = Brushes.Blue;
18 |
19 | if ((bool)value)
20 | {
21 | color = Brushes.Black;
22 | }
23 | return color;
24 | }
25 |
26 | public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
27 | {
28 | return null;
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Animations/StoryBoardHelper.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows;
3 | using System.Windows.Media.Animation;
4 |
5 | namespace WPFBootstrapUI.Animations
6 | {
7 | public static class StoryBoardHelper
8 | {
9 | public static void SlideToLeft(this Storyboard storyboard, long seconds,float offset, float decelerationRatio, bool keepMargin)
10 | {
11 | ThicknessAnimation animation = new ThicknessAnimation()
12 | {
13 | Duration = new Duration(new TimeSpan(seconds)),
14 | From = new Thickness(0),
15 | To = new Thickness(-offset, keepMargin ? offset : 0, 0,0),
16 | DecelerationRatio = decelerationRatio
17 | };
18 |
19 | Storyboard.SetTargetProperty(animation, new PropertyPath("Margin"));
20 |
21 | storyboard.Children.Add(animation);
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/App.xaml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/Views/MainWindow.xaml.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using System.Windows;
3 | using WPFBootstrapUI.Controls.Modals;
4 |
5 | namespace BootstrapUISample
6 | {
7 | ///
8 | /// Lógica de interacción para MainWindow.xaml
9 | ///
10 | public partial class MainWindow : Window
11 | {
12 | public MainWindow()
13 | {
14 | InitializeComponent();
15 | }
16 |
17 | private List GetList()
18 | {
19 | return new List()
20 | {
21 | new Persona() { Nombre = "Steve Jobbs" },
22 | new Persona() { Nombre = "Bill Gates" },
23 | new Persona() { Nombre = "Mark Zuckerberg" },
24 | new Persona() { Nombre = "Scott Hanshelman" }
25 | };
26 | }
27 |
28 | private void Button_Click(object sender, RoutedEventArgs e)
29 | {
30 | _ = ModalService.ShowModal(this, "Modal", "This is a modal", "Aceptar", "Cancelar", true);
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace WPFBootstrapUI.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.5.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace BootstrapUISample.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.5.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI.Test/Converters/BooleanToVisibilityConverterTests.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.VisualStudio.TestTools.UnitTesting;
2 | using System.Windows;
3 | using System.Windows.Controls;
4 |
5 | namespace WPFBootstrapUI.Converters.Tests
6 | {
7 | [TestClass()]
8 | public class BooleanToVisibilityConverterTests
9 | {
10 | [TestMethod()]
11 | public void ConvertToVisibleTest()
12 | {
13 | BooleanToVisibilityConverter converter = new BooleanToVisibilityConverter();
14 |
15 | Assert.AreEqual(converter.Convert(true, typeof(FrameworkElement), null, null), Visibility.Visible);
16 | }
17 |
18 | [TestMethod()]
19 | public void ConvertCollapseTest()
20 | {
21 | BooleanToVisibilityConverter converter = new BooleanToVisibilityConverter();
22 | Assert.AreEqual(converter.Convert(false, typeof(FrameworkElement), null, null), Visibility.Collapsed);
23 | }
24 |
25 | [TestMethod()]
26 | public void ConvertBackTest()
27 | {
28 | BooleanToVisibilityConverter converter = new BooleanToVisibilityConverter();
29 | Assert.AreEqual(converter.ConvertBack(false, typeof(FrameworkElement), null, null), null);
30 | }
31 | }
32 | }
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/ControlsAssists/LinkButtonTextAssist.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 |
3 | namespace WPFBootstrapUI.ControlsAssists
4 | {
5 | public static class LinkButtonTextAssist
6 | {
7 | public static string GetText(DependencyObject obj)
8 | {
9 | return (string)obj.GetValue(TextProperty);
10 | }
11 |
12 | public static void SetText(DependencyObject obj, string value)
13 | {
14 | obj.SetValue(TextProperty, value);
15 | }
16 |
17 | public static readonly DependencyProperty TextProperty =
18 | DependencyProperty.RegisterAttached("Text", typeof(string), typeof(LinkButtonTextAssist), new PropertyMetadata(string.Empty));
19 |
20 |
21 | public static CornerRadius GetCornerRadius(DependencyObject obj)
22 | {
23 | return (CornerRadius)obj.GetValue(CornerRadiusProperty);
24 | }
25 |
26 | public static void SetCornerRadius(DependencyObject obj, CornerRadius value)
27 | {
28 | obj.SetValue(CornerRadiusProperty, value);
29 | }
30 |
31 | public static readonly DependencyProperty CornerRadiusProperty =
32 | DependencyProperty.RegisterAttached("CornerRadius", typeof(CornerRadius), typeof(LinkButtonTextAssist), new PropertyMetadata(new CornerRadius(2)));
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Styles/WindowStyles.xaml.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | using System.Windows.Controls;
3 | using WPFBootstrapUI;
4 |
5 |
6 | namespace WPFBootstrapUI.Styles
7 | {
8 | public partial class WindowStyles : ResourceDictionary
9 | {
10 | public WindowStyles()
11 | {
12 | InitializeComponent();
13 | }
14 |
15 | private void OnClose(object sender, RoutedEventArgs e)
16 | {
17 | var window = (Window)((FrameworkElement)sender).TemplatedParent;
18 | window.Close();
19 | }
20 |
21 | private void OnMinimize(object sender, RoutedEventArgs e)
22 | {
23 | var window = (Window)((FrameworkElement)sender).TemplatedParent;
24 | if (window.WindowState == WindowState.Normal || window.WindowState == WindowState.Maximized)
25 | window.WindowState = WindowState.Minimized;
26 | }
27 |
28 | private void OnRestoreMaximize(object sender, RoutedEventArgs e)
29 | {
30 | var window = (Window)((FrameworkElement)sender).TemplatedParent;
31 |
32 | if (window.WindowState == WindowState.Normal)
33 | window.WindowState = WindowState.Maximized;
34 | else if (window.WindowState == WindowState.Maximized)
35 | window.WindowState = WindowState.Normal;
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Styles/Fonts.xaml:
--------------------------------------------------------------------------------
1 |
6 |
7 | Segoe UI
8 | pack://application:,,,/WPFBootstrapUI;component/Fonts/#Helvetica.ttf
9 | Arial
10 | pack://application:,,,/WPFBootstrapUI;component/Fonts/#HelveticaNeue.ttf
11 |
12 | 30
13 | 25
14 | 14
15 | 14
16 | 26.67
17 | 10
18 | 14
19 | 12
20 | 14
21 | 14
22 | 12
23 |
24 |
25 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Controls/Badge.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | using System.Windows.Controls;
3 | using WPFBootstrapUI.WPFBootstrapColors;
4 |
5 | namespace WPFBootstrapUI.Controls
6 | {
7 | [TemplatePart( Name = InnerBorderName, Type = typeof(Border))]
8 | [TemplatePart(Name = ContentName, Type = typeof(TextBlock))]
9 | public class Badge : Control
10 | {
11 | private const string InnerBorderName = "InnerBorder";
12 | private const string ContentName = "PART_Content";
13 |
14 |
15 | public static readonly DependencyProperty CornerRadiusProperty = DependencyProperty.Register("CornerRadius", typeof(CornerRadius), typeof(Badge), new PropertyMetadata(new CornerRadius(0,0,0,0)));
16 | public static readonly DependencyProperty TextProperty = DependencyProperty.Register("Text", typeof(string), typeof(Badge), new PropertyMetadata(string.Empty));
17 |
18 | static Badge()
19 | {
20 | DefaultStyleKeyProperty.OverrideMetadata(typeof(Badge), new FrameworkPropertyMetadata(typeof(Badge)));
21 | }
22 |
23 | public CornerRadius CornerRadius
24 | {
25 | get { return (CornerRadius)GetValue(CornerRadiusProperty); }
26 | set { SetValue(CornerRadiusProperty, value); }
27 | }
28 | public string Text
29 | {
30 | get { return (string)GetValue(TextProperty); }
31 | set { SetValue(TextProperty, value); }
32 | }
33 | }
34 | }
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Resources;
3 | using System.Runtime.CompilerServices;
4 | using System.Runtime.InteropServices;
5 | using System.Windows;
6 | using System.Windows.Markup;
7 |
8 | // La información general de un ensamblado se controla mediante el siguiente
9 | // conjunto de atributos. Cambie estos valores de atributo para modificar la información
10 | // asociada con un ensamblado.
11 | [assembly: AssemblyTitle("WPFBootstrapUI")]
12 | [assembly: AssemblyDescription("The Bootstrap UI for WPF.")]
13 | [assembly: AssemblyConfiguration("")]
14 | [assembly: AssemblyCompany(".Randy")]
15 | [assembly: AssemblyProduct("WPFBootstrapUI")]
16 | [assembly: AssemblyCopyright("Copyright © 2020")]
17 | [assembly: AssemblyTrademark("")]
18 | [assembly: AssemblyCulture("")]
19 |
20 |
21 | [assembly: ComVisible(true)]
22 | [assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)]
23 |
24 |
25 | [assembly: XmlnsDefinition("http://wpfbootstrapui.com/2019/ui/wpf", "WPFBootstrapUI")]
26 | [assembly: XmlnsDefinition("http://wpfbootstrapui.com/2019/ui/wpf", "WPFBootstrapUI.Controls")]
27 | [assembly: XmlnsDefinition("http://wpfbootstrapui.com/2019/ui/wpf", "WPFBootstrapUI.ControlsAssists")]
28 | [assembly: XmlnsDefinition("http://wpfbootstrapui.com/2019/ui/wpf", "WPFBootstrapUI.Converters")]
29 |
30 | [assembly: XmlnsPrefix("http://wpfbootstrapui.com/2019/ui/wpf", "bootstrap")]
31 |
32 |
33 | [assembly: AssemblyVersion("1.0.0.0")]
34 | [assembly: AssemblyFileVersion("1.0.0.0")]
35 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Styles/JumbotronStyles.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
12 |
13 |
17 |
18 |
19 |
20 |
21 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Themes/System.Windows.xaml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Controls/PopOver.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | using System.Windows.Controls;
3 | using System.Windows.Controls.Primitives;
4 |
5 | namespace WPFBootstrapUI.Controls
6 | {
7 | [TemplatePart(Name = "Container", Type = typeof(Grid))]
8 | [TemplatePart(Name = "OutterBorder", Type = typeof(Border))]
9 | [TemplatePart(Name = "InnerBorder", Type = typeof(Border))]
10 | [TemplatePart(Name = "Popup", Type = typeof(Popup))]
11 | [TemplatePart(Name = "PopupContainer", Type = typeof(Grid))]
12 | public class PopOver : ButtonBase
13 | {
14 | public static readonly DependencyProperty PopOverTextProperty = DependencyProperty.Register("PopOverText", typeof(string), typeof(PopOver), new PropertyMetadata(string.Empty));
15 | public static readonly DependencyProperty PopupPlacementProperty = DependencyProperty.Register("PopupPlacement", typeof(PlacementMode), typeof(PopOver), new PropertyMetadata(PlacementMode.Relative));
16 | public static readonly DependencyProperty IsClickedProperty = DependencyProperty.Register("IsClicked", typeof(bool), typeof(PopOver), new PropertyMetadata(false));
17 |
18 | protected override void OnClick()
19 | {
20 | base.OnClick();
21 |
22 | IsClicked ^= true;
23 | }
24 | public string PopOverText
25 | {
26 | get { return (string)GetValue(PopOverTextProperty); }
27 | set { SetValue(PopOverTextProperty, value); }
28 | }
29 | public PlacementMode PopupPlacement
30 | {
31 | get { return (PlacementMode)GetValue(PopupPlacementProperty); }
32 | set { SetValue(PopupPlacementProperty, value); }
33 | }
34 | public bool IsClicked
35 | {
36 | get { return (bool)GetValue(IsClickedProperty); }
37 | set { SetValue(IsClickedProperty, value); }
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # WPFBootstrapUI
2 |
3 | The Bootstrap UI for WPF.
4 |
5 | ### **Features**
6 |
7 | * Modern styles.
8 | * Targets .Net Framework >= 4.5 && .NET6+
9 | * No packages dependencies.
10 |
11 | ### **Quick start**
12 |
13 | * Create a new WPF app.
14 | * Install from nuget: _Install-Package WPFBootstrapUI_.
15 | * Edit the App.xaml to following:
16 |
17 | ```xaml
18 |
19 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 | ```
34 |
35 | **Edit the MainWindow.xaml to following:**
36 |
37 | ```xaml
38 |
39 |
49 |
50 |
51 |
52 |
53 |
54 |
57 |
60 |
61 |
62 | ```
63 |
64 | More information in the [wiki](https://github.com/RandyPJ/WPFBootstrapUI/wiki/Inicio)
65 |
66 |
67 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 16
4 | VisualStudioVersion = 16.0.29806.167
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WPFBootstrapUI", "WPFBootstrapUI\WPFBootstrapUI.csproj", "{584D2C24-51F1-4AEE-8779-78DA7EC99152}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BootstrapUISample", "BootstrapUISample\BootstrapUISample.csproj", "{949B3DC7-957A-4FA1-A26D-623D79EBDCF2}"
9 | EndProject
10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPFBootstrapUI.Test", "WPFBootstrapUI.Test\WPFBootstrapUI.Test.csproj", "{5BB41279-86D0-4A38-843B-A719009339AC}"
11 | EndProject
12 | Global
13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
14 | Debug|Any CPU = Debug|Any CPU
15 | Release|Any CPU = Release|Any CPU
16 | EndGlobalSection
17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
18 | {584D2C24-51F1-4AEE-8779-78DA7EC99152}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19 | {584D2C24-51F1-4AEE-8779-78DA7EC99152}.Debug|Any CPU.Build.0 = Debug|Any CPU
20 | {584D2C24-51F1-4AEE-8779-78DA7EC99152}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {584D2C24-51F1-4AEE-8779-78DA7EC99152}.Release|Any CPU.Build.0 = Release|Any CPU
22 | {949B3DC7-957A-4FA1-A26D-623D79EBDCF2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23 | {949B3DC7-957A-4FA1-A26D-623D79EBDCF2}.Debug|Any CPU.Build.0 = Debug|Any CPU
24 | {949B3DC7-957A-4FA1-A26D-623D79EBDCF2}.Release|Any CPU.ActiveCfg = Release|Any CPU
25 | {949B3DC7-957A-4FA1-A26D-623D79EBDCF2}.Release|Any CPU.Build.0 = Release|Any CPU
26 | {5BB41279-86D0-4A38-843B-A719009339AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27 | {5BB41279-86D0-4A38-843B-A719009339AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
28 | {5BB41279-86D0-4A38-843B-A719009339AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
29 | {5BB41279-86D0-4A38-843B-A719009339AC}.Release|Any CPU.Build.0 = Release|Any CPU
30 | EndGlobalSection
31 | GlobalSection(SolutionProperties) = preSolution
32 | HideSolutionNode = FALSE
33 | EndGlobalSection
34 | GlobalSection(ExtensibilityGlobals) = postSolution
35 | SolutionGuid = {5CE1D3B1-E641-406E-97A3-341C711AB7A9}
36 | EndGlobalSection
37 | EndGlobal
38 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Styles/GroupBoxStyles.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
19 |
25 |
32 |
33 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/ControlsAssists/BorderAssist.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | using System.Windows.Controls;
3 | using System.Windows.Media;
4 |
5 | namespace WPFBootstrapUI.ControlsAssists
6 | {
7 | public class BorderAssist
8 | {
9 | public static Brush GetBorderBrush(DependencyObject obj)
10 | {
11 | return (Brush)obj.GetValue(BorderBrushProperty);
12 | }
13 |
14 | public static void SetBorderBrush(DependencyObject obj, Brush value)
15 | {
16 | obj.SetValue(BorderBrushProperty, value);
17 | }
18 |
19 | public static readonly DependencyProperty BorderBrushProperty =
20 | DependencyProperty.RegisterAttached("BorderBrush", typeof(Brush), typeof(BorderAssist), new PropertyMetadata(new SolidColorBrush(Color.FromRgb(0,0,0)),OnBorderBrushChanged));
21 |
22 | private static void OnBorderBrushChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
23 | {
24 | if (e.NewValue != e.OldValue)
25 | {
26 | if (d is Button)
27 | {
28 | Button button = d as Button;
29 | button.BorderBrush = (Brush)e.NewValue;
30 | }
31 | else if (d is TextBox)
32 | {
33 | TextBox textBox = d as TextBox;
34 | textBox.BorderBrush = (Brush)e.NewValue;
35 | }
36 | }
37 | }
38 |
39 | public static double GetBorderOpacity(DependencyObject obj)
40 | {
41 | return (double)obj.GetValue(BorderOpacityProperty);
42 | }
43 |
44 | public static void SetBorderOpacity(DependencyObject obj, double value)
45 | {
46 | obj.SetValue(BorderOpacityProperty, value);
47 | }
48 |
49 | public static readonly DependencyProperty BorderOpacityProperty =
50 | DependencyProperty.RegisterAttached("BorderOpacity", typeof(double), typeof(BorderAssist), new PropertyMetadata(double.MinValue, OnBorderAssistPropertyChanged));
51 |
52 | private static void OnBorderAssistPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
53 | {
54 | if (e.NewValue != e.OldValue)
55 | {
56 | if (d is Button)
57 | {
58 | Button button = d as Button;
59 | button.BorderBrush.Opacity = (double)e.NewValue;
60 | }
61 | else if (d is TextBox)
62 | {
63 | TextBox textBox = d as TextBox;
64 | textBox.BorderBrush.Opacity = (double)e.NewValue;
65 | }
66 | }
67 | }
68 | }
69 | }
70 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/ControlsAssists/TextBoxAssist.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | using System.Windows.Controls;
3 |
4 | namespace WPFBootstrapUI.ControlsAssists
5 | {
6 | public static class TextBoxAssist
7 | {
8 | public static readonly DependencyProperty PlaceHolderProperty =
9 | DependencyProperty.RegisterAttached("PlaceHolder", typeof(string), typeof(TextBoxAssist), new PropertyMetadata(string.Empty, OnPlaceHolderPropertyChanged));
10 |
11 | public static readonly DependencyProperty HasTextProperty =
12 | DependencyProperty.RegisterAttached("HasText", typeof(bool), typeof(TextBoxAssist), new PropertyMetadata(false));
13 |
14 | public static readonly DependencyProperty IsMonitoringProperty =
15 | DependencyProperty.RegisterAttached("IsMonitoring", typeof(bool), typeof(TextBoxAssist), new PropertyMetadata(false, OnIsMonitoringChanged));
16 |
17 |
18 | public static string GetPlaceHolder(DependencyObject obj)
19 | {
20 | return (string)obj.GetValue(PlaceHolderProperty);
21 | }
22 |
23 | public static void SetPlaceHolder(DependencyObject obj, string value)
24 | {
25 | obj.SetValue(PlaceHolderProperty, value);
26 | }
27 |
28 | public static bool GetHasText(DependencyObject obj)
29 | {
30 | return (bool)obj.GetValue(HasTextProperty);
31 | }
32 |
33 | public static void SetHasText(DependencyObject obj, bool value)
34 | {
35 | obj.SetValue(HasTextProperty, value);
36 | }
37 |
38 | public static bool GetIsMonitoring(DependencyObject obj)
39 | {
40 | return (bool)obj.GetValue(IsMonitoringProperty);
41 | }
42 |
43 | public static void SetIsMonitoring(DependencyObject obj, bool value)
44 | {
45 | obj.SetValue(IsMonitoringProperty, value);
46 | }
47 |
48 | private static void OnPlaceHolderPropertyChanged(DependencyObject element, DependencyPropertyChangedEventArgs e)
49 | {
50 | if (!string.IsNullOrEmpty(e.NewValue.ToString()))
51 | SetIsMonitoring(((TextBox)element), true);
52 | }
53 |
54 | private static void OnIsMonitoringChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
55 | {
56 | TextBox textbox = (TextBox)d;
57 |
58 | if ((bool)e.NewValue == false)
59 | textbox.TextChanged -= Textbox_TextChanged;
60 |
61 | if (e.NewValue != e.OldValue)
62 | textbox.TextChanged += Textbox_TextChanged;
63 | }
64 |
65 | private static void Textbox_TextChanged(object sender, TextChangedEventArgs e)
66 | {
67 | TextBox textBox = sender as TextBox;
68 | SetHasText(textBox, textBox.Text.Length > 0);
69 | }
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Resources;
3 | using System.Runtime.CompilerServices;
4 | using System.Runtime.InteropServices;
5 | using System.Windows;
6 |
7 | // La información general de un ensamblado se controla mediante el siguiente
8 | // conjunto de atributos. Cambie estos valores de atributo para modificar la información
9 | // asociada con un ensamblado.
10 | [assembly: AssemblyTitle("BootstrapUISample")]
11 | [assembly: AssemblyDescription("")]
12 | [assembly: AssemblyConfiguration("")]
13 | [assembly: AssemblyCompany("")]
14 | [assembly: AssemblyProduct("BootstrapUISample")]
15 | [assembly: AssemblyCopyright("Copyright © 2020")]
16 | [assembly: AssemblyTrademark("")]
17 | [assembly: AssemblyCulture("")]
18 |
19 | // Si establece ComVisible en false, los tipos de este ensamblado no estarán visibles
20 | // para los componentes COM. Si es necesario obtener acceso a un tipo en este ensamblado desde
21 | // COM, establezca el atributo ComVisible en true en este tipo.
22 | [assembly: ComVisible(false)]
23 |
24 | //Para comenzar a compilar aplicaciones que se puedan traducir, establezca
25 | //CultureYouAreCodingWith en el archivo .csproj
26 | //dentro de . Por ejemplo, si utiliza inglés de EE.UU.
27 | //en los archivos de código fuente, establezca en en-US. A continuación, quite la marca de comentario
28 | //del atributo NeutralResourceLanguage. Actualice "en-US" en
29 | //la siguiente línea para que coincida con el valor UICulture del archivo de proyecto.
30 |
31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
32 |
33 |
34 | [assembly: ThemeInfo(
35 | ResourceDictionaryLocation.None, //donde se encuentran los diccionarios de recursos específicos del tema
36 | //(se utiliza si no se encuentra ningún recurso en la página,
37 | // ni diccionarios de recursos de la aplicación)
38 | ResourceDictionaryLocation.SourceAssembly //donde se encuentra el diccionario de recursos genérico
39 | //(se utiliza si no se encuentra ningún recurso en la página,
40 | // aplicación o diccionarios de recursos específicos del tema)
41 | )]
42 |
43 |
44 | // La información de versión de un ensamblado consta de los cuatro valores siguientes:
45 | //
46 | // Versión principal
47 | // Versión secundaria
48 | // Número de compilación
49 | // Revisión
50 | //
51 | // Puede especificar todos los valores o usar los valores predeterminados de número de compilación y de revisión
52 | // utilizando el carácter "*", como se muestra a continuación:
53 | // [assembly: AssemblyVersion("1.0.*")]
54 | [assembly: AssemblyVersion("1.0.0.0")]
55 | [assembly: AssemblyFileVersion("1.0.0.0")]
56 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace WPFBootstrapUI.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// A strongly-typed resource class, for looking up localized strings, etc.
17 | ///
18 | // This class was auto-generated by the StronglyTypedResourceBuilder
19 | // class via a tool like ResGen or Visual Studio.
20 | // To add or remove a member, edit your .ResX file then rerun ResGen
21 | // with the /str option, or rebuild your VS project.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// Returns the cached ResourceManager instance used by this class.
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WPFBootstrapUI.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// Overrides the current thread's CurrentUICulture property for all
51 | /// resource lookups using this strongly typed resource class.
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace BootstrapUISample.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// A strongly-typed resource class, for looking up localized strings, etc.
17 | ///
18 | // This class was auto-generated by the StronglyTypedResourceBuilder
19 | // class via a tool like ResGen or Visual Studio.
20 | // To add or remove a member, edit your .ResX file then rerun ResGen
21 | // with the /str option, or rebuild your VS project.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// Returns the cached ResourceManager instance used by this class.
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("BootstrapUISample.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// Overrides the current thread's CurrentUICulture property for all
51 | /// resource lookups using this strongly typed resource class.
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/obj/Debug/App.g.cs:
--------------------------------------------------------------------------------
1 | #pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "0A6D34E03E2269D725CD7AEB7C4513398B84B2BDEFF101658A3C728631A2C0E7"
2 | //------------------------------------------------------------------------------
3 | //
4 | // This code was generated by a tool.
5 | // Runtime Version:4.0.30319.42000
6 | //
7 | // Changes to this file may cause incorrect behavior and will be lost if
8 | // the code is regenerated.
9 | //
10 | //------------------------------------------------------------------------------
11 |
12 | using System;
13 | using System.Diagnostics;
14 | using System.Windows;
15 | using System.Windows.Automation;
16 | using System.Windows.Controls;
17 | using System.Windows.Controls.Primitives;
18 | using System.Windows.Data;
19 | using System.Windows.Documents;
20 | using System.Windows.Ink;
21 | using System.Windows.Input;
22 | using System.Windows.Markup;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Animation;
25 | using System.Windows.Media.Effects;
26 | using System.Windows.Media.Imaging;
27 | using System.Windows.Media.Media3D;
28 | using System.Windows.Media.TextFormatting;
29 | using System.Windows.Navigation;
30 | using System.Windows.Shapes;
31 | using System.Windows.Shell;
32 | using WPFBootstrapUI;
33 | using WPFBootstrapUI.Controls;
34 | using WPFBootstrapUI.ControlsAssists;
35 | using WPFBootstrapUI.Converters;
36 |
37 |
38 | namespace BootstrapUISample {
39 |
40 |
41 | ///
42 | /// App
43 | ///
44 | public partial class App : System.Windows.Application {
45 |
46 | private bool _contentLoaded;
47 |
48 | ///
49 | /// InitializeComponent
50 | ///
51 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
52 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
53 | public void InitializeComponent() {
54 | if (_contentLoaded) {
55 | return;
56 | }
57 | _contentLoaded = true;
58 |
59 | #line 6 "..\..\App.xaml"
60 | this.StartupUri = new System.Uri("Views/MainWindow.xaml", System.UriKind.Relative);
61 |
62 | #line default
63 | #line hidden
64 | System.Uri resourceLocater = new System.Uri("/BootstrapUISample;component/app.xaml", System.UriKind.Relative);
65 |
66 | #line 1 "..\..\App.xaml"
67 | System.Windows.Application.LoadComponent(this, resourceLocater);
68 |
69 | #line default
70 | #line hidden
71 | }
72 |
73 | ///
74 | /// Application Entry Point.
75 | ///
76 | [System.STAThreadAttribute()]
77 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
78 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
79 | public static void Main() {
80 | BootstrapUISample.App app = new BootstrapUISample.App();
81 | app.InitializeComponent();
82 | app.Run();
83 | }
84 | }
85 | }
86 |
87 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/obj/Debug/App.g.i.cs:
--------------------------------------------------------------------------------
1 | #pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "0A6D34E03E2269D725CD7AEB7C4513398B84B2BDEFF101658A3C728631A2C0E7"
2 | //------------------------------------------------------------------------------
3 | //
4 | // This code was generated by a tool.
5 | // Runtime Version:4.0.30319.42000
6 | //
7 | // Changes to this file may cause incorrect behavior and will be lost if
8 | // the code is regenerated.
9 | //
10 | //------------------------------------------------------------------------------
11 |
12 | using System;
13 | using System.Diagnostics;
14 | using System.Windows;
15 | using System.Windows.Automation;
16 | using System.Windows.Controls;
17 | using System.Windows.Controls.Primitives;
18 | using System.Windows.Data;
19 | using System.Windows.Documents;
20 | using System.Windows.Ink;
21 | using System.Windows.Input;
22 | using System.Windows.Markup;
23 | using System.Windows.Media;
24 | using System.Windows.Media.Animation;
25 | using System.Windows.Media.Effects;
26 | using System.Windows.Media.Imaging;
27 | using System.Windows.Media.Media3D;
28 | using System.Windows.Media.TextFormatting;
29 | using System.Windows.Navigation;
30 | using System.Windows.Shapes;
31 | using System.Windows.Shell;
32 | using WPFBootstrapUI;
33 | using WPFBootstrapUI.Controls;
34 | using WPFBootstrapUI.ControlsAssists;
35 | using WPFBootstrapUI.Converters;
36 |
37 |
38 | namespace BootstrapUISample {
39 |
40 |
41 | ///
42 | /// App
43 | ///
44 | public partial class App : System.Windows.Application {
45 |
46 | private bool _contentLoaded;
47 |
48 | ///
49 | /// InitializeComponent
50 | ///
51 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
52 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
53 | public void InitializeComponent() {
54 | if (_contentLoaded) {
55 | return;
56 | }
57 | _contentLoaded = true;
58 |
59 | #line 6 "..\..\App.xaml"
60 | this.StartupUri = new System.Uri("Views/MainWindow.xaml", System.UriKind.Relative);
61 |
62 | #line default
63 | #line hidden
64 | System.Uri resourceLocater = new System.Uri("/BootstrapUISample;component/app.xaml", System.UriKind.Relative);
65 |
66 | #line 1 "..\..\App.xaml"
67 | System.Windows.Application.LoadComponent(this, resourceLocater);
68 |
69 | #line default
70 | #line hidden
71 | }
72 |
73 | ///
74 | /// Application Entry Point.
75 | ///
76 | [System.STAThreadAttribute()]
77 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
78 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
79 | public static void Main() {
80 | BootstrapUISample.App app = new BootstrapUISample.App();
81 | app.InitializeComponent();
82 | app.Run();
83 | }
84 | }
85 | }
86 |
87 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Controls/Alert.cs:
--------------------------------------------------------------------------------
1 | using System.Windows.Controls;
2 | using System.Windows;
3 | using System;
4 | using System.Windows.Media;
5 |
6 | namespace WPFBootstrapUI.Controls
7 | {
8 | [TemplatePart(Name = DismissButtonName, Type = typeof(Button))]
9 | public class Alert : ContentControl
10 | {
11 | private const string DismissButtonName = "PART_DismissButton";
12 | private Button DismissButton;
13 |
14 | public static readonly DependencyProperty CornerRadiusProperty = DependencyProperty.RegisterAttached("CornerRadius", typeof(CornerRadius), typeof(Alert), new PropertyMetadata(new CornerRadius(2.0)));
15 | public static readonly DependencyProperty IsAlertDismissibleProperty = DependencyProperty.Register("IsAlertDismissible", typeof(bool), typeof(Alert), new PropertyMetadata(false));
16 | public static readonly DependencyProperty AlertDismissButtonForegroundProperty = DependencyProperty.RegisterAttached("AlertDismissButtonForeground", typeof(Brush), typeof(Alert), new PropertyMetadata(Brushes.Transparent, OnAlertAssistDismissForegroundChanged));
17 |
18 | public bool IsAlertDismissible
19 | {
20 | get { return (bool)GetValue(IsAlertDismissibleProperty); }
21 | set { SetValue(IsAlertDismissibleProperty, value); }
22 | }
23 | public static Brush GetAlertDismissButtonForeground(DependencyObject obj)
24 | {
25 | return (Brush)obj.GetValue(AlertDismissButtonForegroundProperty);
26 | }
27 | public static void SetAlertDismissButtonForeground(DependencyObject obj, Brush value)
28 | {
29 | obj.SetValue(AlertDismissButtonForegroundProperty, value);
30 | }
31 | public static CornerRadius GetCornerRadius(DependencyObject obj)
32 | {
33 | return (CornerRadius)obj.GetValue(CornerRadiusProperty);
34 | }
35 | public static void SetCornerRadius(DependencyObject obj, CornerRadius value)
36 | {
37 | obj.SetValue(CornerRadiusProperty, value);
38 | }
39 | static Alert()
40 | {
41 | DefaultStyleKeyProperty.OverrideMetadata(typeof(Alert),new FrameworkPropertyMetadata(typeof(Alert)));
42 | }
43 | public override void OnApplyTemplate()
44 | {
45 | DismissButton = (Button)GetTemplateChild(DismissButtonName);
46 |
47 | if (DismissButton == null)
48 | throw new InvalidOperationException($"Control {DismissButtonName} not found in the template.");
49 |
50 | DismissButton.Click -= DismissButton_Click;
51 |
52 | SetAlertDismissButtonForeground(DismissButton, this.Foreground);
53 |
54 | DismissButton.Click += DismissButton_Click;
55 |
56 | base.OnApplyTemplate();
57 | }
58 | private void DismissButton_Click(object sender, RoutedEventArgs e)
59 | {
60 | this.Visibility = Visibility.Collapsed;
61 | }
62 | private static void OnAlertAssistDismissForegroundChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
63 | {
64 | Button button = (Button)obj;
65 | if (e.NewValue != e.OldValue)
66 | button.Foreground = (Brush)e.NewValue;
67 | }
68 | }
69 | }
70 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/WPFBootstrapUI.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net45;net451;net46;net461;net472;net48;net6.0-windows;net7.0-windows;net8.0-windows;net9.0-windows
5 | true
6 | false
7 | WPFBootstrapUI
8 | WPFBootstrapUI
9 | false
10 | false
11 | latest
12 |
13 |
14 | true
15 | true
16 | true
17 | WPFBootstrapUI
18 | 1.0.0.9
19 | The Bootstrap UI for WPF.
20 | https://github.com/RandyPJ/WPFBootstrapUI
21 | MIT
22 | https://github.com/RandyPJ/WPFBootstrapUI
23 | Public
24 | WPF .NET Bootstrap Desktop
25 | Support for .NET6+
26 | .Randy
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 | True
53 | True
54 | Settings.settings
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 | SettingsSingleFileGenerator
65 | Settings.Designer.cs
66 |
67 |
68 |
--------------------------------------------------------------------------------
/.github/workflows/main.yml:
--------------------------------------------------------------------------------
1 | name: Action to build and publish the project as a nuget package to github package registry
2 |
3 | on:
4 | push:
5 | branches: [master]
6 |
7 | jobs:
8 | build:
9 | runs-on: ubuntu-latest
10 | outputs:
11 | Version: ${{ steps.gitversion.outputs.SemVer }}
12 | CommitsSinceVersionSource: ${{ steps.gitversion.outputs.CommitsSinceVersionSource }}
13 |
14 | steps:
15 | - uses: actions/checkout@v2
16 | with:
17 | fetch-depth: 0 #fetch-depth is needed for GitVersion
18 |
19 | #Install and calculate the new version with GitVersion
20 | - name: Install GitVersion
21 | uses: gittools/actions/gitversion/setup@v0.9.7
22 | with:
23 | versionSpec: 5.x
24 | - name: Determine Version
25 | uses: gittools/actions/gitversion/execute@v0.9.7
26 | id: gitversion # step id used as reference for output values
27 | - name: Display GitVersion outputs
28 | run: |
29 | echo "Version: ${{ steps.gitversion.outputs.SemVer }}"
30 | echo "CommitsSinceVersionSource: ${{ steps.gitversion.outputs.CommitsSinceVersionSource }}"
31 |
32 | #Build/pack the project
33 | - name: Setup .NET
34 | uses: actions/setup-dotnet@v1
35 | with:
36 | dotnet-version: 8.0.x
37 | - name: Build and Pack NuGet package
38 | run: dotnet pack src/services/Florage.Shared/Florage.Shared.csproj -p:Version='${{ steps.gitversion.outputs.SemVer }}' -c Release
39 | - name: Upload NuGet package to GitHub
40 | uses: actions/upload-pages-artifact@v3
41 | with:
42 | name: nugetPackage
43 | path: bin/Release/
44 |
45 | release:
46 | runs-on: ubuntu-latest
47 | needs: build
48 | if: github.ref == 'refs/heads/master' # only run job if on the master branch
49 |
50 | steps:
51 | #Push NuGet package to GitHub packages
52 | - name: Download nuget package artifact
53 | uses: actions/download-artifact@v1.0.0
54 | with:
55 | name: nugetPackage
56 | - name: Prep packages
57 | run: dotnet nuget add source --username RandyPJ --password ${{ secrets.NUGET_PACKAGE_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/RandyPJ/index.json"
58 | - name: Push package to GitHub packages
59 | if: needs.build.outputs.CommitsSinceVersionSource > 0 #Only release if there has been a commit/version change
60 | run: dotnet nuget push nugetPackage/*.nupkg --api-key ${{ secrets.NUGET_PACKAGE_TOKEN }} --source "github"
61 |
62 | #Create release
63 | - name: Create Release
64 | if: 1 == 0 #needs.build.outputs.CommitsSinceVersionSource > 0 #Only release if there has been a commit/version change
65 | uses: actions/create-release@v1
66 | env:
67 | GITHUB_TOKEN: ${{ secrets.NUGET_PACKAGE_TOKEN }}
68 | with:
69 | tag_name: ${{ needs.build.outputs.Version }}
70 | release_name: Release ${{ needs.build.outputs.Version }}
71 | - name: Create Release
72 | if: needs.build.outputs.CommitsSinceVersionSource > 0 #Only release if there has been a commit/version change
73 | uses: ncipollo/release-action@v1
74 | with:
75 | tag: ${{ needs.build.outputs.Version }}
76 | name: Release ${{ needs.build.outputs.Version }}
77 | artifacts: "nugetPackage/*"
78 | token: ${{ secrets.NUGET_PACKAGE_TOKEN }}
79 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Controls/Modals/ModalService.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Threading.Tasks;
3 | using System.Windows;
4 |
5 | namespace WPFBootstrapUI.Controls.Modals
6 | {
7 | public class ModalService
8 | {
9 | ///
10 | /// Shows a modal.
11 | ///
12 | /// Represents the owner of the modal.
13 | /// Title of the modal.
14 | /// Content of the modal.
15 | /// Accept button.
16 | /// Cancel button.
17 | /// If true, the cancel button will be shown.
18 | ///
19 | public static ModalResult ShowModal(Window ownerWindow, string title, string message, string acceptButtonText, string cancelButtonText, bool isDesition)
20 | {
21 | Modal modal;
22 | try
23 | {
24 | if (ownerWindow == null)
25 | return ModalResult.None;
26 |
27 | modal = new Modal(ownerWindow)
28 | {
29 | Title = title,
30 | Message = message,
31 | AcceptButtonText = acceptButtonText,
32 | CancelButtonText = cancelButtonText,
33 | IsDesition = isDesition
34 | };
35 |
36 | ownerWindow.Opacity = 0.6;
37 | ownerWindow.Dispatcher.Invoke(new Action(() => modal.ShowDialog()));
38 | ownerWindow.Opacity = 1;
39 | }
40 | catch (Exception)
41 | {
42 |
43 | throw;
44 | }
45 | return modal.ModalResult;
46 | }
47 |
48 | ///
49 | /// Shows a modal asynchronously.
50 | ///
51 | /// Represents the owner of the modal.
52 | /// Title of the modal.
53 | /// Content of the modal.
54 | /// Accept button.
55 | /// Cancel button.
56 | /// If true, the cancel button will be shown.
57 | ///
58 | public static async Task ShowModalAsync(Window ownerWindow, string title, string message, string acceptButtonText, string cancelButtonText, bool isDesition)
59 | {
60 | TaskCompletionSource modalResultSource = new TaskCompletionSource();
61 | try
62 | {
63 | Modal modal = new Modal(ownerWindow)
64 | {
65 | Title = title,
66 | Message = message,
67 | AcceptButtonText = acceptButtonText,
68 | CancelButtonText = cancelButtonText,
69 | IsDesition = isDesition
70 | };
71 |
72 | ownerWindow.Opacity = 0.6;
73 |
74 | await ownerWindow.Dispatcher.BeginInvoke(new Action(() =>
75 | {
76 | modal.ShowDialog();
77 | modalResultSource.SetResult(modal.ModalResult);
78 | }));
79 |
80 | ownerWindow.Opacity = 1;
81 | }
82 | catch (Exception)
83 | {
84 | throw;
85 | }
86 | return await modalResultSource.Task;
87 | }
88 | }
89 | }
90 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Styles/SeparatorStyles.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
13 |
14 |
15 |
21 |
22 |
28 |
29 |
35 |
36 |
42 |
43 |
49 |
50 |
56 |
57 |
63 |
64 |
70 |
71 |
72 |
73 |
74 |
75 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Styles/TextBoxStyles.xaml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
15 |
16 |
25 |
26 |
27 |
28 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
83 |
84 |
85 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/obj/Debug/MainWindow.g.i.cs:
--------------------------------------------------------------------------------
1 | #pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "AD2BF959E9528E4C42936C0C34C0C6E1556E940816B080851A621A4E3E710351"
2 | //------------------------------------------------------------------------------
3 | //
4 | // This code was generated by a tool.
5 | // Runtime Version:4.0.30319.42000
6 | //
7 | // Changes to this file may cause incorrect behavior and will be lost if
8 | // the code is regenerated.
9 | //
10 | //------------------------------------------------------------------------------
11 |
12 | using BootstrapUISample;
13 | using System;
14 | using System.Diagnostics;
15 | using System.Windows;
16 | using System.Windows.Automation;
17 | using System.Windows.Controls;
18 | using System.Windows.Controls.Primitives;
19 | using System.Windows.Data;
20 | using System.Windows.Documents;
21 | using System.Windows.Ink;
22 | using System.Windows.Input;
23 | using System.Windows.Markup;
24 | using System.Windows.Media;
25 | using System.Windows.Media.Animation;
26 | using System.Windows.Media.Effects;
27 | using System.Windows.Media.Imaging;
28 | using System.Windows.Media.Media3D;
29 | using System.Windows.Media.TextFormatting;
30 | using System.Windows.Navigation;
31 | using System.Windows.Shapes;
32 | using System.Windows.Shell;
33 | using WPFBootstrapUI;
34 | using WPFBootstrapUI.Controls;
35 | using WPFBootstrapUI.ControlsAssists;
36 | using WPFBootstrapUI.Converters;
37 |
38 |
39 | namespace BootstrapUISample {
40 |
41 |
42 | ///
43 | /// MainWindow
44 | ///
45 | public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
46 |
47 |
48 | #line 937 "..\..\MainWindow.xaml"
49 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
50 | internal System.Windows.Controls.PasswordBox txtPassword;
51 |
52 | #line default
53 | #line hidden
54 |
55 |
56 | #line 1300 "..\..\MainWindow.xaml"
57 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
58 | internal System.Windows.Controls.ListView myListView;
59 |
60 | #line default
61 | #line hidden
62 |
63 | private bool _contentLoaded;
64 |
65 | ///
66 | /// InitializeComponent
67 | ///
68 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
69 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
70 | public void InitializeComponent() {
71 | if (_contentLoaded) {
72 | return;
73 | }
74 | _contentLoaded = true;
75 | System.Uri resourceLocater = new System.Uri("/BootstrapUISample;component/mainwindow.xaml", System.UriKind.Relative);
76 |
77 | #line 1 "..\..\MainWindow.xaml"
78 | System.Windows.Application.LoadComponent(this, resourceLocater);
79 |
80 | #line default
81 | #line hidden
82 | }
83 |
84 | [System.Diagnostics.DebuggerNonUserCodeAttribute()]
85 | [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
86 | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
87 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
88 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
89 | [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
90 | void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
91 | switch (connectionId)
92 | {
93 | case 1:
94 | this.txtPassword = ((System.Windows.Controls.PasswordBox)(target));
95 | return;
96 | case 2:
97 | this.myListView = ((System.Windows.Controls.ListView)(target));
98 | return;
99 | }
100 | this._contentLoaded = true;
101 | }
102 | }
103 | }
104 |
105 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Styles/Colors.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 | #007bff
8 | #17a2b8
9 | #28a745
10 | #ffc107
11 | #dc3545
12 | #343a40
13 | #6c757d
14 | #f8f9fa
15 | #ffffff
16 | #CAE6FD
17 | #006CD3
18 | #0e5fad
19 | #5a6268
20 | #218838
21 | #c82333
22 | #d39e00
23 | #117a8b
24 | #dae0e5
25 | #23272b
26 | #007bff
27 | #7ABFFA
28 | #E9ECEF
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Styles/ToolTipStyles.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
30 |
31 |
43 |
47 |
48 |
49 |
59 |
60 |
70 |
71 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
117 |
118 |
119 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI.Test/WPFBootstrapUI.Test.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Debug
7 | AnyCPU
8 | {5BB41279-86D0-4A38-843B-A719009339AC}
9 | Library
10 | Properties
11 | WPFBootstrapUI.Test
12 | WPFBootstrapUI.Test
13 | v4.6.1
14 | 512
15 | {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
16 | 15.0
17 | $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
18 | $(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages
19 | False
20 | UnitTest
21 |
22 |
23 |
24 |
25 | true
26 | full
27 | false
28 | bin\Debug\
29 | DEBUG;TRACE
30 | prompt
31 | 4
32 |
33 |
34 | pdbonly
35 | true
36 | bin\Release\
37 | TRACE
38 | prompt
39 | 4
40 |
41 |
42 |
43 | ..\packages\MSTest.TestFramework.2.1.1\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll
44 |
45 |
46 | ..\packages\MSTest.TestFramework.2.1.1\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 | {949b3dc7-957a-4fa1-a26d-623d79ebdcf2}
64 | BootstrapUISample
65 |
66 |
67 | {584D2C24-51F1-4AEE-8779-78DA7EC99152}
68 | WPFBootstrapUI
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 | This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
77 |
78 |
79 |
80 |
81 |
82 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Styles/PopOverStyles.xaml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
13 |
18 |
23 |
31 |
32 |
33 |
34 |
46 |
52 |
53 |
54 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
101 |
102 |
103 |
--------------------------------------------------------------------------------
/.github/workflows/dotnet-desktop.yml:
--------------------------------------------------------------------------------
1 | # This workflow uses actions that are not certified by GitHub.
2 | # They are provided by a third-party and are governed by
3 | # separate terms of service, privacy policy, and support
4 | # documentation.
5 |
6 | # This workflow will build, test, sign and package a WPF or Windows Forms desktop application
7 | # built on .NET Core.
8 | # To learn how to migrate your existing application to .NET Core,
9 | # refer to https://docs.microsoft.com/en-us/dotnet/desktop-wpf/migration/convert-project-from-net-framework
10 | #
11 | # To configure this workflow:
12 | #
13 | # 1. Configure environment variables
14 | # GitHub sets default environment variables for every workflow run.
15 | # Replace the variables relative to your project in the "env" section below.
16 | #
17 | # 2. Signing
18 | # Generate a signing certificate in the Windows Application
19 | # Packaging Project or add an existing signing certificate to the project.
20 | # Next, use PowerShell to encode the .pfx file using Base64 encoding
21 | # by running the following Powershell script to generate the output string:
22 | #
23 | # $pfx_cert = Get-Content '.\SigningCertificate.pfx' -Encoding Byte
24 | # [System.Convert]::ToBase64String($pfx_cert) | Out-File 'SigningCertificate_Encoded.txt'
25 | #
26 | # Open the output file, SigningCertificate_Encoded.txt, and copy the
27 | # string inside. Then, add the string to the repo as a GitHub secret
28 | # and name it "Base64_Encoded_Pfx."
29 | # For more information on how to configure your signing certificate for
30 | # this workflow, refer to https://github.com/microsoft/github-actions-for-desktop-apps#signing
31 | #
32 | # Finally, add the signing certificate password to the repo as a secret and name it "Pfx_Key".
33 | # See "Build the Windows Application Packaging project" below to see how the secret is used.
34 | #
35 | # For more information on GitHub Actions, refer to https://github.com/features/actions
36 | # For a complete CI/CD sample to get started with GitHub Action workflows for Desktop Applications,
37 | # refer to https://github.com/microsoft/github-actions-for-desktop-apps
38 |
39 | name: .NET Core Desktop
40 |
41 | on:
42 | push:
43 | branches: [ "master" ]
44 | pull_request:
45 | branches: [ "master" ]
46 |
47 | jobs:
48 |
49 | build:
50 |
51 | strategy:
52 | matrix:
53 | configuration: [Debug, Release]
54 |
55 | runs-on: windows-latest # For a list of available runner types, refer to
56 | # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
57 |
58 | env:
59 | Solution_Name: WPFBoostrapUI.sln # Replace with your solution name, i.e. MyWpfApp.sln.
60 | Test_Project_Path: your-test-project-path # Replace with the path to your test project, i.e. MyWpfApp.Tests\MyWpfApp.Tests.csproj.
61 | Wap_Project_Directory: your-wap-project-directory-name # Replace with the Wap project directory relative to the solution, i.e. MyWpfApp.Package.
62 | Wap_Project_Path: your-wap-project-path # Replace with the path to your Wap project, i.e. MyWpf.App.Package\MyWpfApp.Package.wapproj.
63 |
64 | steps:
65 | - name: Checkout
66 | uses: actions/checkout@v4
67 | with:
68 | fetch-depth: 0
69 |
70 | # Install the .NET Core workload
71 | - name: Install .NET Core
72 | uses: actions/setup-dotnet@v4
73 | with:
74 | dotnet-version: 8.0.x
75 |
76 | # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
77 | - name: Setup MSBuild.exe
78 | uses: microsoft/setup-msbuild@v2
79 |
80 | # Execute all unit tests in the solution
81 | - name: Execute unit tests
82 | run: dotnet test
83 |
84 | # Restore the application to populate the obj folder with RuntimeIdentifiers
85 | - name: Restore the application
86 | run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
87 | env:
88 | Configuration: ${{ matrix.configuration }}
89 |
90 | # Decode the base 64 encoded pfx and save the Signing_Certificate
91 | - name: Decode the pfx
92 | run: |
93 | $pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.Base64_Encoded_Pfx }}")
94 | $certificatePath = Join-Path -Path $env:Wap_Project_Directory -ChildPath GitHubActionsWorkflow.pfx
95 | [IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte)
96 |
97 | # Create the app package by building and packaging the Windows Application Packaging project
98 | - name: Create the app package
99 | run: msbuild $env:Wap_Project_Path /p:Configuration=$env:Configuration /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=GitHubActionsWorkflow.pfx /p:PackageCertificatePassword=${{ secrets.Pfx_Key }}
100 | env:
101 | Appx_Bundle: Always
102 | Appx_Bundle_Platforms: x86|x64
103 | Appx_Package_Build_Mode: StoreUpload
104 | Configuration: ${{ matrix.configuration }}
105 |
106 | # Remove the pfx
107 | - name: Remove the pfx
108 | run: Remove-Item -path $env:Wap_Project_Directory\GitHubActionsWorkflow.pfx
109 |
110 | # Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact
111 | - name: Upload build artifacts
112 | uses: actions/upload-artifact@v4
113 | with:
114 | name: MSIX Package
115 | path: ${{ env.Wap_Project_Directory }}\AppPackages
116 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Controls/Modals/Modal.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows;
3 | using System.Windows.Controls;
4 | using WPFBootstrapUI.Controls.Modals;
5 |
6 | namespace WPFBootstrapUI.Controls
7 | {
8 | [TemplatePart(Name = "PART_Title", Type = typeof(StackPanel))]
9 | [TemplatePart(Name = "PART_CloseButton", Type = typeof(Button))]
10 | [TemplatePart(Name = "PART_MessageScrollViewer", Type = typeof(ScrollViewer))]
11 | [TemplatePart(Name = "PART_TextBlockMessage", Type = typeof(TextBlock))]
12 | [TemplatePart(Name = "PART_AcceptButton", Type = typeof(Button))]
13 | [TemplatePart(Name = "PART_CancelButton", Type = typeof(Button))]
14 | public class Modal : Window
15 | {
16 | public static readonly DependencyProperty MessageProperty =
17 | DependencyProperty.Register("Message", typeof(string), typeof(Modal), new PropertyMetadata(string.Empty));
18 |
19 | public static readonly DependencyProperty AcceptButtonTextProperty =
20 | DependencyProperty.Register("AcceptButtonText", typeof(string), typeof(Modal), new PropertyMetadata(string.Empty));
21 |
22 | public static readonly DependencyProperty CancelButtonTextProperty =
23 | DependencyProperty.Register("CancelButtonText", typeof(string), typeof(Modal), new PropertyMetadata(string.Empty));
24 |
25 | public static readonly DependencyProperty IsDesitionProperty =
26 | DependencyProperty.Register("IsDesition", typeof(bool), typeof(Modal), new PropertyMetadata(false));
27 |
28 | static Modal()
29 | {
30 | DefaultStyleKeyProperty.OverrideMetadata(typeof(Modal), new FrameworkPropertyMetadata(typeof(Modal)));
31 | }
32 |
33 | public Modal(Window ownerWindow)
34 | {
35 | this.Width = 600;
36 | this.Height = 280;
37 |
38 | this.Owner = ownerWindow;
39 | this.WindowStartupLocation = WindowStartupLocation.CenterOwner;
40 | this.WindowStyle = WindowStyle.None;
41 | this.AllowsTransparency = true;
42 | }
43 |
44 | private readonly string closeButtonName = "PART_CloseButton";
45 | private readonly string acceptButtonName = "PART_AcceptButton";
46 | private readonly string cancelButtonName = "PART_CancelButton";
47 |
48 | private Button CloseButton;
49 | private Button AcceptButton;
50 | private Button CancelButton;
51 |
52 | public string Message
53 | {
54 | get { return (string)GetValue(MessageProperty); }
55 | set { SetValue(MessageProperty, value); }
56 | }
57 | public string AcceptButtonText
58 | {
59 | get { return (string)GetValue(AcceptButtonTextProperty); }
60 | set { SetValue(AcceptButtonTextProperty, value); }
61 | }
62 | public string CancelButtonText
63 | {
64 | get { return (string)GetValue(CancelButtonTextProperty); }
65 | set { SetValue(CancelButtonTextProperty, value); }
66 | }
67 | public bool IsDesition
68 | {
69 | get { return (bool)GetValue(IsDesitionProperty); }
70 | set { SetValue(IsDesitionProperty, value); }
71 | }
72 |
73 | public ModalResult ModalResult { get; set; }
74 |
75 | public override void OnApplyTemplate()
76 | {
77 | base.OnApplyTemplate();
78 |
79 | this.CloseButton = GetTemplateChild(closeButtonName) as Button;
80 | this.AcceptButton = GetTemplateChild(acceptButtonName) as Button;
81 | this.CancelButton = GetTemplateChild(cancelButtonName) as Button;
82 |
83 | UnHookEvents();
84 |
85 | if (CloseButton != null && AcceptButton != null && CancelButton != null)
86 | {
87 | HookUpEvents();
88 | }
89 | else
90 | {
91 | throw new InvalidOperationException("An error occured while applying the template to the modal control.");
92 | }
93 | }
94 |
95 | private void CancelButton_Click(object sender, RoutedEventArgs e)
96 | {
97 | this.Owner.Dispatcher.Invoke(new Action(() =>
98 | {
99 | this.ModalResult = ModalResult.Cancel;
100 | this.Close();
101 | }));
102 | }
103 |
104 | private void AcceptButton_Click(object sender, RoutedEventArgs e)
105 | {
106 | this.Owner.Dispatcher.Invoke(new Action(() =>
107 | {
108 | this.ModalResult = ModalResult.Accept;
109 | this.Close();
110 | }));
111 | }
112 |
113 | private void CloseButton_Click(object sender, RoutedEventArgs e)
114 | {
115 | this.Owner.Dispatcher.Invoke(new Action(() =>
116 | {
117 | this.ModalResult = ModalResult.None;
118 | this.Close(); }
119 | ));
120 | }
121 |
122 | private void HookUpEvents()
123 | {
124 | this.CloseButton.Click += CloseButton_Click;
125 | this.AcceptButton.Click += AcceptButton_Click;
126 | this.CancelButton.Click += CancelButton_Click;
127 | }
128 |
129 | private void UnHookEvents()
130 | {
131 | this.CloseButton.Click -= CloseButton_Click;
132 | this.AcceptButton.Click -= AcceptButton_Click;
133 | this.CancelButton.Click -= CancelButton_Click;
134 | }
135 | }
136 | }
137 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Properties/Resources.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 | text/microsoft-resx
107 |
108 |
109 | 2.0
110 |
111 |
112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
113 |
114 |
115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/Properties/Resources.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 | text/microsoft-resx
107 |
108 |
109 | 2.0
110 |
111 |
112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
113 |
114 |
115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Styles/RadioButtonStyles.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
20 |
21 |
35 |
36 |
114 |
115 |
116 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/ControlsAssists/PasswordBoxAssist.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | using System.Windows.Controls;
3 |
4 | namespace WPFBootstrapUI.ControlsAssists
5 | {
6 | ///
7 | /// The PasswordBox control's assistant
8 | ///
9 | public class PasswordBoxAssist : DependencyObject
10 | {
11 | private readonly PasswordBox _passwordBox;
12 |
13 | public PasswordBoxAssist(PasswordBox passwordBox)
14 | {
15 | _passwordBox = passwordBox;
16 | }
17 |
18 | public static readonly DependencyProperty AttachProperty = DependencyProperty.RegisterAttached("Attach", typeof(bool), typeof(PasswordBoxAssist), new PropertyMetadata(false,OnAttachChanged));
19 | public static readonly DependencyProperty IsMonitoringProperty = DependencyProperty.RegisterAttached("IsMonitoring", typeof(bool), typeof(PasswordBoxAssist), new PropertyMetadata(false));
20 | public static readonly DependencyProperty TextProperty = DependencyProperty.RegisterAttached("Text", typeof(string), typeof(PasswordBoxAssist), new PropertyMetadata(string.Empty, OnTextPropertyChanged));
21 | public static readonly DependencyProperty HasTextProperty = DependencyProperty.RegisterAttached("HasText", typeof(bool), typeof(PasswordBoxAssist), new PropertyMetadata(false));
22 | public static readonly DependencyProperty CanShowPasswordProperty = DependencyProperty.RegisterAttached("CanShowPassword", typeof(bool), typeof(PasswordBoxAssist), new PropertyMetadata(false));
23 | public static readonly DependencyProperty PlaceHolderProperty = DependencyProperty.RegisterAttached("PlaceHolder", typeof(string), typeof(PasswordBoxAssist), new PropertyMetadata(string.Empty));
24 | public static readonly DependencyProperty AttachHelperButtonProperty = DependencyProperty.RegisterAttached("AttachHelperButton", typeof(bool), typeof(PasswordBoxAssist), new PropertyMetadata(false, OnAttachedChanged));
25 |
26 | public static bool GetAttach(DependencyObject obj)
27 | {
28 | return (bool)obj.GetValue(AttachProperty);
29 | }
30 |
31 | public static void SetAttach(DependencyObject obj, bool value)
32 | {
33 | obj.SetValue(AttachProperty, value);
34 | }
35 |
36 | public static bool GetIsMonitoring(DependencyObject obj)
37 | {
38 | return (bool)obj.GetValue(IsMonitoringProperty);
39 | }
40 |
41 | public static void SetIsMonitoring(DependencyObject obj, bool value)
42 | {
43 | obj.SetValue(IsMonitoringProperty, value);
44 | }
45 |
46 | public static string GetText(DependencyObject obj)
47 | {
48 | return (string)obj.GetValue(TextProperty);
49 | }
50 |
51 | public static void SetText(DependencyObject obj, string value)
52 | {
53 | obj.SetValue(TextProperty, value);
54 | }
55 |
56 | public static bool GetHasText(DependencyObject obj)
57 | {
58 | return (bool)obj.GetValue(HasTextProperty);
59 | }
60 |
61 | public static void SetHasText(DependencyObject obj, bool value)
62 | {
63 | obj.SetValue(HasTextProperty, value);
64 | }
65 |
66 | public static bool GetCanShowPassword(DependencyObject obj)
67 | {
68 | return (bool)obj.GetValue(CanShowPasswordProperty);
69 | }
70 |
71 | public static void SetCanShowPassword(DependencyObject obj, bool value)
72 | {
73 | obj.SetValue(CanShowPasswordProperty, value);
74 | }
75 |
76 | public static string GetPlaceHolder(DependencyObject obj)
77 | {
78 | return (string)obj.GetValue(PlaceHolderProperty);
79 | }
80 |
81 | public static void SetPlaceHolder(DependencyObject obj, string value)
82 | {
83 | obj.SetValue(PlaceHolderProperty, value);
84 | }
85 |
86 | public static bool GetAttachHelperButton(DependencyObject obj)
87 | {
88 | return (bool)obj.GetValue(AttachHelperButtonProperty);
89 | }
90 |
91 | public static void SetAttachHelperButton(DependencyObject obj, bool value)
92 | {
93 | obj.SetValue(AttachHelperButtonProperty, value);
94 | }
95 |
96 | private static void OnAttachChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
97 | {
98 | PasswordBox passwordBox = (PasswordBox)d;
99 |
100 | if (passwordBox == null)
101 | return;
102 |
103 | if ((bool)e.OldValue)
104 | passwordBox.PasswordChanged -= PasswordBox_PasswordChanged;
105 |
106 |
107 | if ((bool)e.NewValue)
108 | passwordBox.PasswordChanged += PasswordBox_PasswordChanged;
109 | }
110 |
111 | private static void PasswordBox_PasswordChanged(object sender, RoutedEventArgs e)
112 | {
113 | PasswordBox passwordBox = (PasswordBox)sender;
114 |
115 | SetIsMonitoring(passwordBox, true);
116 | SetText(passwordBox, passwordBox.Password);
117 | SetIsMonitoring(passwordBox, false);
118 | }
119 |
120 | private static void OnTextPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
121 | {
122 | PasswordBox passwordBox = (PasswordBox)d;
123 |
124 | passwordBox.PasswordChanged -= PasswordBox_PasswordChanged;
125 |
126 | string newValue = (string)e.NewValue;
127 |
128 | if (!(bool)GetIsMonitoring(passwordBox))
129 | {
130 | passwordBox.Password = newValue;
131 | }
132 |
133 | SetHasText(passwordBox, passwordBox.Password.Length > 0);
134 | SetCanShowPassword(passwordBox, passwordBox.Password.Length < 0);
135 | ToggleShowPasswordButtonContent = !(passwordBox.Password.Length > 0);
136 |
137 | passwordBox.PasswordChanged += PasswordBox_PasswordChanged;
138 | }
139 |
140 | private static void OnAttachedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
141 | {
142 | Button button = (Button)d;
143 |
144 | if (button == null)
145 | return;
146 |
147 | if ((bool)e.NewValue)
148 | button.Click -= ButtonClicked;
149 |
150 | if ((bool)e.NewValue)
151 | button.Click += ButtonClicked;
152 | }
153 |
154 | ///Toggles the content of the ShowPasswordButton.
155 | ///Decides if the can take inputs.
156 | private static bool ToggleShowPasswordButtonContent = false;
157 |
158 | private static void ButtonClicked(object sender, RoutedEventArgs e)
159 | {
160 | Button button = (Button)sender;
161 |
162 | ToggleShowPasswordButtonContent ^= true;
163 |
164 | if (button.TemplatedParent is PasswordBox passwordBox)
165 | {
166 | if (GetHasText(passwordBox))
167 | SetCanShowPassword(passwordBox, ToggleShowPasswordButtonContent);
168 | }
169 | }
170 | }
171 | }
172 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/BootstrapUISample/BootstrapUISample.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {949B3DC7-957A-4FA1-A26D-623D79EBDCF2}
8 | WinExe
9 | BootstrapUISample
10 | BootstrapUISample
11 | v4.7.2
12 | 512
13 | {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
14 | 4
15 | true
16 | true
17 |
18 |
19 |
20 |
21 |
22 | AnyCPU
23 | true
24 | full
25 | false
26 | bin\Debug\
27 | DEBUG;TRACE
28 | prompt
29 | 4
30 |
31 |
32 | AnyCPU
33 | pdbonly
34 | true
35 | bin\Release\
36 | TRACE
37 | prompt
38 | 4
39 |
40 |
41 |
42 | ..\packages\CommonServiceLocator.2.0.4\lib\net47\CommonServiceLocator.dll
43 |
44 |
45 |
46 |
47 |
48 | ..\packages\Prism.Core.7.2.0.1422\lib\net45\Prism.dll
49 |
50 |
51 | ..\packages\Prism.Wpf.7.2.0.1422\lib\net45\Prism.Wpf.dll
52 |
53 |
54 |
55 |
56 |
57 |
58 | ..\packages\System.ValueTuple.4.5.0\lib\net47\System.ValueTuple.dll
59 |
60 |
61 | ..\packages\Prism.Wpf.7.2.0.1422\lib\net45\System.Windows.Interactivity.dll
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 | MSBuild:Compile
72 | Designer
73 |
74 |
75 | MSBuild:Compile
76 | Designer
77 |
78 |
79 | App.xaml
80 | Code
81 |
82 |
83 |
84 |
85 | MainWindow.xaml
86 | Code
87 |
88 |
89 |
90 |
91 |
92 | Code
93 |
94 |
95 | True
96 | True
97 | Resources.resx
98 |
99 |
100 | True
101 | Settings.settings
102 | True
103 |
104 |
105 | ResXFileCodeGenerator
106 | Resources.Designer.cs
107 |
108 |
109 |
110 | SettingsSingleFileGenerator
111 | Settings.Designer.cs
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 | {584d2c24-51f1-4aee-8779-78da7ec99152}
123 | WPFBootstrapUI
124 |
125 |
126 |
127 |
128 |
129 |
130 | This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
131 |
132 |
133 |
134 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.rsuser
8 | *.suo
9 | *.user
10 | *.userosscache
11 | *.sln.docstates
12 | */**/bin/Debug
13 | */**/bin/Release
14 | */**/obj/Debug
15 | */**/obj/Release
16 |
17 | # User-specific files (MonoDevelop/Xamarin Studio)
18 | *.userprefs
19 |
20 | # Build results
21 | [Dd]ebug/
22 | [Dd]ebugPublic/
23 | [Rr]elease/
24 | [Rr]eleases/
25 | x64/
26 | x86/
27 | [Aa][Rr][Mm]/
28 | [Aa][Rr][Mm]64/
29 | bld/
30 | [Bb]in/
31 | [Oo]bj/
32 | [Ll]og/
33 |
34 | # Visual Studio 2015/2017 cache/options directory
35 | .vs/
36 | # Uncomment if you have tasks that create the project's static files in wwwroot
37 | #wwwroot/
38 |
39 | # Visual Studio 2017 auto generated files
40 | Generated\ Files/
41 |
42 | # MSTest test Results
43 | [Tt]est[Rr]esult*/
44 | [Bb]uild[Ll]og.*
45 |
46 | # NUNIT
47 | *.VisualState.xml
48 | TestResult.xml
49 |
50 | # Build Results of an ATL Project
51 | [Dd]ebugPS/
52 | [Rr]eleasePS/
53 | dlldata.c
54 |
55 | # Benchmark Results
56 | BenchmarkDotNet.Artifacts/
57 |
58 | # .NET Core
59 | project.lock.json
60 | project.fragment.lock.json
61 | artifacts/
62 |
63 | # StyleCop
64 | StyleCopReport.xml
65 |
66 | # Files built by Visual Studio
67 | *_i.c
68 | *_p.c
69 | *_h.h
70 | *.ilk
71 | *.meta
72 | *.obj
73 | *.iobj
74 | *.pch
75 | *.pdb
76 | *.ipdb
77 | *.pgc
78 | *.pgd
79 | *.rsp
80 | *.sbr
81 | *.tlb
82 | *.tli
83 | *.tlh
84 | *.tmp
85 | *.tmp_proj
86 | *_wpftmp.csproj
87 | *.log
88 | *.vspscc
89 | *.vssscc
90 | .builds
91 | *.pidb
92 | *.svclog
93 | *.scc
94 |
95 | # Chutzpah Test files
96 | _Chutzpah*
97 |
98 | # Visual C++ cache files
99 | ipch/
100 | *.aps
101 | *.ncb
102 | *.opendb
103 | *.opensdf
104 | *.sdf
105 | *.cachefile
106 | *.VC.db
107 | *.VC.VC.opendb
108 |
109 | # Visual Studio profiler
110 | *.psess
111 | *.vsp
112 | *.vspx
113 | *.sap
114 |
115 | # Visual Studio Trace Files
116 | *.e2e
117 |
118 | # TFS 2012 Local Workspace
119 | $tf/
120 |
121 | # Guidance Automation Toolkit
122 | *.gpState
123 |
124 | # ReSharper is a .NET coding add-in
125 | _ReSharper*/
126 | *.[Rr]e[Ss]harper
127 | *.DotSettings.user
128 |
129 | # JustCode is a .NET coding add-in
130 | .JustCode
131 |
132 | # TeamCity is a build add-in
133 | _TeamCity*
134 |
135 | # DotCover is a Code Coverage Tool
136 | *.dotCover
137 |
138 | # AxoCover is a Code Coverage Tool
139 | .axoCover/*
140 | !.axoCover/settings.json
141 |
142 | # Visual Studio code coverage results
143 | *.coverage
144 | *.coveragexml
145 |
146 | # NCrunch
147 | _NCrunch_*
148 | .*crunch*.local.xml
149 | nCrunchTemp_*
150 |
151 | # MightyMoose
152 | *.mm.*
153 | AutoTest.Net/
154 |
155 | # Web workbench (sass)
156 | .sass-cache/
157 |
158 | # Installshield output folder
159 | [Ee]xpress/
160 |
161 | # DocProject is a documentation generator add-in
162 | DocProject/buildhelp/
163 | DocProject/Help/*.HxT
164 | DocProject/Help/*.HxC
165 | DocProject/Help/*.hhc
166 | DocProject/Help/*.hhk
167 | DocProject/Help/*.hhp
168 | DocProject/Help/Html2
169 | DocProject/Help/html
170 |
171 | # Click-Once directory
172 | publish/
173 |
174 | # Publish Web Output
175 | *.[Pp]ublish.xml
176 | *.azurePubxml
177 | # Note: Comment the next line if you want to checkin your web deploy settings,
178 | # but database connection strings (with potential passwords) will be unencrypted
179 | *.pubxml
180 | *.publishproj
181 |
182 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
183 | # checkin your Azure Web App publish settings, but sensitive information contained
184 | # in these scripts will be unencrypted
185 | PublishScripts/
186 |
187 | # NuGet Packages
188 | *.nupkg
189 | # The packages folder can be ignored because of Package Restore
190 | **/[Pp]ackages/*
191 | # except build/, which is used as an MSBuild target.
192 | !**/[Pp]ackages/build/
193 | # Uncomment if necessary however generally it will be regenerated when needed
194 | #!**/[Pp]ackages/repositories.config
195 | # NuGet v3's project.json files produces more ignorable files
196 | *.nuget.props
197 | *.nuget.targets
198 |
199 | # Microsoft Azure Build Output
200 | csx/
201 | *.build.csdef
202 |
203 | # Microsoft Azure Emulator
204 | ecf/
205 | rcf/
206 |
207 | # Windows Store app package directories and files
208 | AppPackages/
209 | BundleArtifacts/
210 | Package.StoreAssociation.xml
211 | _pkginfo.txt
212 | *.appx
213 |
214 | # Visual Studio cache files
215 | # files ending in .cache can be ignored
216 | *.[Cc]ache
217 | # but keep track of directories ending in .cache
218 | !?*.[Cc]ache/
219 |
220 | # Others
221 | ClientBin/
222 | ~$*
223 | *~
224 | *.dbmdl
225 | *.dbproj.schemaview
226 | *.jfm
227 | *.pfx
228 | *.publishsettings
229 | orleans.codegen.cs
230 |
231 | # Including strong name files can present a security risk
232 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
233 | #*.snk
234 |
235 | # Since there are multiple workflows, uncomment next line to ignore bower_components
236 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
237 | #bower_components/
238 |
239 | # RIA/Silverlight projects
240 | Generated_Code/
241 |
242 | # Backup & report files from converting an old project file
243 | # to a newer Visual Studio version. Backup files are not needed,
244 | # because we have git ;-)
245 | _UpgradeReport_Files/
246 | Backup*/
247 | UpgradeLog*.XML
248 | UpgradeLog*.htm
249 | ServiceFabricBackup/
250 | *.rptproj.bak
251 |
252 | # SQL Server files
253 | *.mdf
254 | *.ldf
255 | *.ndf
256 |
257 | # Business Intelligence projects
258 | *.rdl.data
259 | *.bim.layout
260 | *.bim_*.settings
261 | *.rptproj.rsuser
262 | *- Backup*.rdl
263 |
264 | # Microsoft Fakes
265 | FakesAssemblies/
266 |
267 | # GhostDoc plugin setting file
268 | *.GhostDoc.xml
269 |
270 | # Node.js Tools for Visual Studio
271 | .ntvs_analysis.dat
272 | node_modules/
273 |
274 | # Visual Studio 6 build log
275 | *.plg
276 |
277 | # Visual Studio 6 workspace options file
278 | *.opt
279 |
280 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
281 | *.vbw
282 |
283 | # Visual Studio LightSwitch build output
284 | **/*.HTMLClient/GeneratedArtifacts
285 | **/*.DesktopClient/GeneratedArtifacts
286 | **/*.DesktopClient/ModelManifest.xml
287 | **/*.Server/GeneratedArtifacts
288 | **/*.Server/ModelManifest.xml
289 | _Pvt_Extensions
290 |
291 | # Paket dependency manager
292 | .paket/paket.exe
293 | paket-files/
294 |
295 | # FAKE - F# Make
296 | .fake/
297 |
298 | # JetBrains Rider
299 | .idea/
300 | *.sln.iml
301 |
302 | # CodeRush personal settings
303 | .cr/personal
304 |
305 | # Python Tools for Visual Studio (PTVS)
306 | __pycache__/
307 | *.pyc
308 |
309 | # Cake - Uncomment if you are using it
310 | # tools/**
311 | # !tools/packages.config
312 |
313 | # Tabs Studio
314 | *.tss
315 |
316 | # Telerik's JustMock configuration file
317 | *.jmconfig
318 |
319 | # BizTalk build output
320 | *.btp.cs
321 | *.btm.cs
322 | *.odx.cs
323 | *.xsd.cs
324 |
325 | # OpenCover UI analysis results
326 | OpenCover/
327 |
328 | # Azure Stream Analytics local run output
329 | ASALocalRun/
330 |
331 | # MSBuild Binary and Structured Log
332 | *.binlog
333 |
334 | # NVidia Nsight GPU debugger configuration file
335 | *.nvuser
336 |
337 | # MFractors (Xamarin productivity tool) working folder
338 | .mfractor/
339 |
340 | # Local History for Visual Studio
341 | .localhistory/
342 |
343 | # BeatPulse healthcheck temp database
344 | healthchecksdb
345 | WPFBootstrapUI/BootstrapUISample/bin/Debug/WPFBootstrapUI.dll
346 | *.dll
347 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Styles/ProgressBarStyles.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
13 |
14 |
18 |
22 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
82 |
83 |
91 |
92 |
100 |
101 |
109 |
110 |
118 |
119 |
127 |
128 |
136 |
137 |
138 |
139 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Styles/WindowStyles.xaml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
14 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
48 |
49 |
50 |
51 |
52 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
84 |
85 |
92 |
93 |
104 |
105 |
116 |
117 |
129 |
130 |
131 |
132 |
133 |
134 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
177 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Styles/ModalStyles.xaml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
49 |
50 |
166 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Styles/CheckBoxStyles.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
11 |
12 |
13 |
14 |
15 |
24 |
25 |
32 |
37 |
38 |
39 |
51 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
115 |
116 |
127 |
128 |
139 |
140 |
151 |
152 |
163 |
164 |
175 |
176 |
177 |
178 |
--------------------------------------------------------------------------------
/WPFBootstrapUI/WPFBootstrapUI/Styles/SpinnerStyles.xaml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
17 |
18 |
19 |
20 |
21 |
27 |
28 |
34 |
35 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
93 |
94 |
101 |
102 |
109 |
110 |
117 |
118 |
125 |
126 |
133 |
134 |
141 |
142 |
143 |
144 |
145 |
166 |
167 |
168 |
169 |
175 |
176 |
182 |
183 |
189 |
190 |
196 |
197 |
203 |
204 |
210 |
211 |
217 |
218 |
219 |
220 |
--------------------------------------------------------------------------------