Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
XamSpellChecker restrictive floating
posted

Let’s suppose that we have a Silverlight application like the following one:

    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="50" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        
        <!--Grid.Row="0" The Main App Menu-->
        
        <Canvas Grid.Row="1" x:Name="viewContainer">
            <!--Some controls-->
            
            <ig:XamSpellChecker x:Name="customSpellChecker">
                <ig:XamSpellChecker.DialogSettings>
                    <ig:XamSpellCheckerDialogSettings />
                </ig:XamSpellChecker.DialogSettings>
                <ig:XamSpellChecker.SpellCheckTargets>
                    <Binding ElementName="txtATextBoxIn_viewContainer" Path="Text" Mode="TwoWay"/>
                </ig:XamSpellChecker.SpellCheckTargets>
            </ig:XamSpellChecker>
        </Canvas>
    </Grid>

Is it possible to set the XamSpellChecker so its parent panel is viewContainer? The idea is that the spell checker does not float outside the parent panel. It looks like there is a ChildWindow that hosts the spell checker, which allows it to float in the whole Silverlight application window.

Thank you,


Juan Aquino

Parents
No Data
Reply
  • 6475
    Suggested Answer
    posted

    Hi Juan,

    You can restrict the XamSpellChecker from floating over the whole SL app by setting the RestrictInContainer property of the SpellCheckDialog:

     

    customSpellChecker.SpellCheckDialog.RestrictInContainer = true;

     

    Hope this helps,

Children