Just Code‎ > ‎

WPF - Cut & Copy & paste buttons in a toolbar. NO CODE

posted Jun 16, 2011, 7:38 AM by Peter Henell
<StackPanel>
        <ToolBar>
            <Button Command="{x:Static ApplicationCommands.Cut}">Cut</Button>
            <Button Command="{x:Static ApplicationCommands.Copy}">Copy</Button>
            <Button Command="{x:Static ApplicationCommands.Paste}">Paste</Button>
        </ToolBar>
        <TextBox x:Name="MyLittleTextbox" 
             AcceptsReturn="True"
             TextWrapping="Wrap"
             VerticalScrollBarVisibility="Visible"
             ></TextBox>
    </StackPanel>
Comments