Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Treeview Numpad Subtract Key Problem

$
0
0
I have a number of textboxes embedded within a TreeViewItem and I have run into a problem where if you type the '-' (the Subtract key) from the numpad (the -/_ key works fine)  the branch collapses.  NumLock seems to have no effect on this behavior.

has anyone else run into this problem? if so have you found a good solution?

here is an example similar to my xaml, nothing fancy here:

<Window x:Class="wpfTreeviewTest.Window1" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Title="Window1" Height="300" Width="300"
    <Grid> 
        <TreeView> 
            <TreeViewItem IsExpanded="True"
                <TextBox Width="100" Margin="5"></TextBox> 
                <TextBox Width="100" Margin="5"></TextBox> 
            </TreeViewItem> 
        </TreeView> 
    </Grid> 
</Window> 

Thanks

Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>