I have a textbox and a button in my form. I enter some text and click on Mouse double it should It should Call the Button Command,CommandParameter. Is this possible?
There is no code behind.
I have a textbox and a button in my form. I enter some text and click on Mouse double it should It should Call the Button Command,CommandParameter. Is this possible?
There is no code behind.
You could make a Button Template, that internally has a TextBox (maybe with IsHitTestVisible set to false and an outer Grid with Transparent Background). Then you can bind your command directly to this "TextBox-Button".
Edit: Source code:
<Grid>
<Grid.Resources>
<Style TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<TextBox />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Grid.Resources>
<Button Content="Test" />
</Grid>
And invoke the command via Attached Behavior Pattern like described here and here.
Andrej