svahidm
پنج شنبه 09 اردیبهشت 1389, 09:13 صبح
سلام
من مي خواستم از Keybinding تو برنامم استفاده كنم و اين كد رو نوشتم :
<StackPanel>
<StackPanel.InputBindings>
<KeyBinding Command="ApplicationCommands.Cut" Gesture="CTRL+U" >
</KeyBinding>
</StackPanel.InputBindings>
<TextBox Name="txt1" />
</StackPanel>
ولي نمي دونم چرا هر چي رو از textbox انتخاب مي كنم و ctrl+U رو ميزنم چيزي cut نمي شه ؟؟؟
من مي خواستم از Keybinding تو برنامم استفاده كنم و اين كد رو نوشتم :
<StackPanel>
<StackPanel.InputBindings>
<KeyBinding Command="ApplicationCommands.Cut" Gesture="CTRL+U" >
</KeyBinding>
</StackPanel.InputBindings>
<TextBox Name="txt1" />
</StackPanel>
ولي نمي دونم چرا هر چي رو از textbox انتخاب مي كنم و ctrl+U رو ميزنم چيزي cut نمي شه ؟؟؟