-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TextToolbar - Switch Format from Custom Formatter #1514
TextToolbar - Switch Format from Custom Formatter #1514
Conversation
-Added new Reset Layout Command, Defaults the Toolbar to Default Configuration. -You can now Clear the Custom Buttons ButtonMap.
@nmetulev @michael-hawker I now have two way binding, but it doesn't seem to update the ComboBox UI. Is there a Shell command or something to update the properties of a Binding from code behind? |
@WilliamABradley, there are two things that need to be done to get the ComboBoxUI to work.
Once you do this, the behavior you are after will work. However, because properties are remembered from sample to sample, there is an exception that is thrown when you you navigate to the sample again after setting the Format to Custom. Steps to reproduce (after doing the above changes):
Not sure if this is an issue with the sample or the control itself, but it should be looked at. |
@WilliamABradley, up? |
Up? |
I'll see if I can do this later today |
-Fixed Custom Formatter not being initialised when returning to the sample after Navigation.
@nmetulev All done :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as advertised :)
{ | ||
get | ||
{ | ||
var sample = DataContext as Sample; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to check for null here unless you're sure then (cast) don't (as).
Same thing for the if(properties.TryGetValue), properties could be null because of the as.
-Added some Pattern Matching.
@IbraheemOsama Added some Null Safeties. |
@WilliamABradley perfect :) |
Fix for #1449.
-Added Two Way Binding to Format Property.
-Added new Reset Layout Command, Defaults the Toolbar to Default Configuration.
-You can now Clear the Custom Buttons ButtonMap.