Search code examples
c#wpfwpftoolkit

Set Default FlowDirection Wpf toolkit extended MessageBox


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


Solution

  • 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:

    http://forums.silverlight.net/t/130096.aspx/1