Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes


CSharp Programming

CSharp > Code Examples

Basic DialogBox

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Basic DialogBox <Window x:Class="Styles.BasicDialogBox" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="BasicDialogBox" Height="250" Width="250" MinHeight="150" MinWidth="200"> <Window.Resources> <Thickness x:Key="BasicMargin" Bottom="4" Top="4" Left="4" Right="4"></Thickness> </Window.Resources> <DockPanel LastChildFill="True"> <StackPanel DockPanel.Dock="Bottom" HorizontalAlignment="Right" Orientation="Horizontal"> <Button Margin="{StaticResource BasicMargin}" Padding="3,3,3,3">OK</Button> <Button Margin="{StaticResource BasicMargin}" Padding="3,3,3,3">Cancel</Button> </StackPanel> <TextBox DockPanel.Dock="Top" Margin="10">This is a test.</TextBox> </DockPanel> </Window>