Comments (1)
Hi,
We can reproduce the issue. Thank you for your sample code.
The problem is that all the bindings are evaluated when the XAML is read at the startup. So switching pages do not refresh the bindings.
Here's a workaround:
Define your own Wizard and override the OnCurrentPageChanged to clear the binding errors and update the binding source:
`public class MyWizard : Wizard
{
protected override void OnCurrentPageChanged( WizardPage oldValue, WizardPage newValue )
{
if( ( newValue != null ) && newValue.Content is FrameworkElement element )
{
for( var i = 0; i < VisualTreeHelper.GetChildrenCount( element ); i++ )
{
var childVisual = VisualTreeHelper.GetChild( element, i );
var localPropertyValues = childVisual.GetLocalValueEnumerator();
while( localPropertyValues.MoveNext() )
{
if( localPropertyValues.Current.Value is BindingExpression bindingExpression )
{
if( bindingExpression.HasError )
{
Validation.ClearInvalid( bindingExpression );
bindingExpression.UpdateSource();
}
}
}
}
}
base.OnCurrentPageChanged( oldValue, newValue );
}
}`
We will try to add this kind of fix for release v4.7.
Thanks
from wpftoolkit.
Related Issues (20)
- CheckComboBox Help HOT 3
- Set All or None Text HOT 1
- Bad ZIP file HOT 1
- Syntax error in DropDownButton.cs HOT 1
- PropertyGrid in ItemsControl ItemTemplate is always empty HOT 1
- [Suggest] TimeSpanUpDown With Hours >= 24 HOT 3
- Publishing Project ZoomBox in Visualstudio does not work HOT 5
- PropertyGrid styling issues HOT 3
- Single file publishment with .NET6/7 crashes HOT 1
- About BusyIndicator HOT 1
- With DateTimePicker Can't Access PART_TextBox HOT 2
- CheckListBox does not allow vertical item layout with horizontal overflow HOT 1
- After update to from 4.4.0 to 4.5.0 <Window.InputBindings> stop working. HOT 3
- IsExpandingNonPrimitiveTypes HOT 4
- PropertyGrid incorrect editor for IList of T, T is primitive type? HOT 1
- TimeSpanUpDown ShowDays and ShowSeconds bug inside ListView.ItemTemplate HOT 3
- RefreshProperties.All not working as I want HOT 1
- Hide area with Image, header and buttons HOT 3
- extended.wpf.toolkit is missing NuGet package README file
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 wpftoolkit.