Comments (2)
Just add the Loaded Event.
private void Window_Loaded(object sender, RoutedEventArgs e)
{
MessageBox.Show("Welcom");
}
from stein.
Thank you for your comment.
As a welcome dialog I thought more of a dialog explaining what you can do with Stein, maybe add the first installer source (normally done by the + button), etc.
I really tried to get away from showing small dialogs via MessageBox.Show
simply because it doesn't support any theming and generally looks a bit off. Also they only support showing text with an optional icon (info, error, alert, etc.) and you can't select text in those dialogs.
An example, on how I would like the welcome dialog to be implemented, would be the dialog for showing exceptions.
I made a custom dialog which allows for the text to be selected, has a copy button which automatically copies the contents in the clipboard, supports theming and allows changes to the layout if needed.
Relevant files/lines of the ExceptionDialog
are:
- ExceptionDialog.xaml
- ExceptionView.xaml.cs
- ExceptionView.xaml
- ExceptionView.xaml.cs
- Views.xaml (adding entries for ExceptionDialog and ExceptionView)
- ExceptionDialogModel.cs
- ExceptionViewModel.cs
- CopyExceptionDetailsToClipboardCommand.cs
- ViewModelService.cs (adding case for ExceptionDialogModel)
Now you can show an exception like this.
var exceptionDialogModel = viewModelService.CreateViewModel<ExceptionDialogModel>(null, exception);
var dialogResult = dialogService.ShowDialog(exceptionDialogModel);
This would imply creating/modifying:
- create WelcomeDialog.xaml + WelcomeDialog.xaml.cs
- modify Views.xaml: add entry for WelcomeDialog
- create WelcomeDialogModel.cs
- modify ViewModelService.cs: add case for WelcomeDialogModel in CreateViewModel
- optionally create Commands for extra functionality
- modify App.xaml.cs: show dialog, when the configuration fails to load (here)
I just thought this would be a great issue for anybody which wants to contribute, since it doesn't involve the installer file handling, which is a bit difficult.
from stein.
Related Issues (20)
- "bundle" uninstall & install HOT 1
- When installer files get deleted on disk it won't remove them until a restart of the application HOT 1
- "Info" button
- Install logic not optimal
- Rename folder during installation leads to strange notification behavior HOT 2
- Installers don't get installed when Install log ist selected
- List dependencies in the about dialog
- Show in the main view how many installers are installed
- Improve error dialog when the config file failed to load
- Provide an option to delete install logs after a timespan
- Provide an option on each application to define additional install arguments
- Extract cached file index from configuration file into additional file HOT 1
- Stein failes to start HOT 2
- Improve error dialogs HOT 1
- Setup does not install .NET Framework when it's not installed in the correct version
- AboutDialog - copyright not correct HOT 1
- Usage of folder icon not clear HOT 4
- Installation process - not all buttons are disabled. HOT 1
- Settings are not persisted HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stein.