Comments (5)
Hi, are you looking for an event saying "now I am showing the next step"? Such an event does not exist yet but I will add a StepChanged
event to my ToDo list.
The Stepper
has a property Controller
which exposes ActiveStep
. This property always contains the current step, because the UI binds to it. I am thinking of exposing a ActiveStep
property directly on the Stepper
. Or you might want listen to the PropertyChanged
event of the controller and check the arguments for the ActiveStep
property name.
from materialdesignextensions.
are you looking for an event saying "now I am showing the next step"?
Not an event, but rather a SelectedStep
binding, (like a tab control has SelectedItem
), which then my ViewModel would know when we have actually reached that step. I need to do this because when I reach a certain step, I need to perform some calculations. Right now I have to do some ugly code-behind inspection on the prev/next steps to see when I am about to reach the step in question.
I am thinking of exposing a ActiveStep property directly on the Stepper
exactly what I would be looking for.
from materialdesignextensions.
Also, how do I know when the Continue / Finish button is clicked - can I bind to that specific button's Command
?
from materialdesignextensions.
Hi, based on your feedback, I added the following members to the Stepper API:
- read-only
ActiveStep
property - event
ActiveStepChangedEvent
- command properties for navigation callbacks
ActiveStepChangedCommand
BackNavigationCommand
CancelNavigationCommand
ContinueNavigationCommand
StepNavigationCommand
You can assign your custom command to these new command properties. According well-tried events already exist. The changes will be scheduled for the next release.
from materialdesignextensions.
I'm again adding to this now closed issue because I still feel that I don't know exactly to handle the validation, A new issue is not required.
When I have a 2 Step stepper with BlockNavigationOnValidationErrors set to true. I have derived from Step to allow for validation as per the documents. If I reach step 2 and it fails validation.. why would it prevent me from going back a step? I feel that the BlockNavigationOnValidationErrors should only restrict going to the next step.
How can I accomplish this with the already implemented validation and events/commands already in play?
from materialdesignextensions.
Related Issues (20)
- TabControl enhancement request
- How to make tabs scrollable? HOT 1
- Cannot scroll a SideNavigation
- Weird flickering on Windows 11 when using MaterialWindow
- Hide close button ToolWindow
- Wrong Foreground style set for FlatButton
- How to include a PopupBox in MaterialWindow TitleTemplate
- Bug: Commands trigger only once in Stepper.
- Graphic Bug with MaterialWindow : Apply ToolWindow style and SizeToContent HOT 1
- Impossible to change Language of NavigationItems during runtime
- Foreground of the Textblocks inside the TabControl does not change when the theme is set to dark mode. HOT 2
- build errors: xml does not exist in namespace
- No refresh when the same viewModel is used in a List<INavigationItem>
- SideNavigation Style Scrollbar ?
- OpenFileDialog not gone when hitting a breakpoint in visual studio HOT 1
- MaterialDesignExtensions 3.3.0 has a resource with the locale 'Ru' HOT 2
- Stepper Controller Bug: Navigating to Initial (First) Step in Code Goes to Second Step Instead HOT 1
- It is recommended that you add functionality to the file system control
- MaterialDesignThemes.WPF 5.0.0 HOT 2
- MaterialDesignStepNumberIconTemplate not found HOT 1
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 materialdesignextensions.