2011-09-16 12 views
6

क्यों अक्षम एक्सएएमएल पर अगले एक्सएएमएल में टेक्स्टबॉक्स से फोकस चोरी करने के लिए स्क्रॉलव्यूयर का कारण बनता है? क्या यह सही है? कामकाज क्या है?स्क्रॉलव्यूयर फोकस

<Window 
x:Class="WpfApplication1.MainWindow" 
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
Title="MainWindow" Height="350" Width="525" 
FocusManager.FocusedElement="{Binding ElementName=TextBox}"> 
<ScrollViewer> 
    <StackPanel> 
     <TextBox x:Name="TextBox"/> 
     <Button IsEnabled="False" Content="Disabled Button"/> 
    </StackPanel> 
</ScrollViewer> 

स्थापना IsFocusable = "false" ScrollViewer पर मदद करता है। लेकिन क्या यह सही कामकाज है?

उत्तर

2

हाँ आप IsFocusable="False" या IsHitTestable="False"

+0

कर सकते हैं लेकिन यह एक संभावना दूर ले ScrollViewer के स्क्रॉलबार बटन पर ध्यान केंद्रित करने के लिए नहीं? क्या यह एक कामकाज है या क्या स्क्रॉलव्यूयर फोकसबिलिटी को पट्टी करने का यह सही तरीका है? –

संबंधित मुद्दे