Am unable to set the default flowdirection property for the WPF Toolkit Extended 1.6 MessageBox dynamically , is there any way to do that in code & at runtime knowing that I've a static field myFlowDirection
i've tried its working fine & it changes the flow but i need it dynamically
<Style TargetType="{x:Type toolkit:MessageBox}">
<Setter Property="FlowDirection" Value="RightToLeft"/>
</Style>
this MessageBox can't be derived & has no constructor
Just a guess, but have you tried binding the Setter Property?
This link is a question from SO that sounds similar to yours:
WPF binding to another property's binding in a style
Here's another example:
Yes, you are able to set your message box FlowDirection by MessageBoxOptions.RtlReading
For Example:
MessageBox.Show("Your RTL Text", "Message Box Title", MessageBoxButton.OK, MessageBoxImage.Error, MessageBoxResult.None, MessageBoxOptions.RtlReading);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.