|
<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
x:Class="MessageBoxTest.MainPage"
Width="491" Height="406" mc:Ignorable="d">
<Grid x:Name="LayoutRoot" Background="White">
<TextBlock HorizontalAlignment="Left" Margin="8,42,0,0" VerticalAlignment="Top" Text="Type in your message" TextWrapping="Wrap"/>
<TextBox x:Name="txtMsg" Height="64" Margin="148,42,133,0" VerticalAlignment="Top" TextWrapping="Wrap" TabIndex="2"/>
<Button x:Name="btnDisplay" HorizontalAlignment="Right" Margin="0,132,16,0" VerticalAlignment="Top" Width="113" Content="Show Message" Click="btnDisplay_Click" TabIndex="5"/>
<TextBlock HorizontalAlignment="Left" Margin="8,134,0,0" VerticalAlignment="Top" Text="Type in your message" TextWrapping="Wrap"/>
<TextBlock HorizontalAlignment="Left" Margin="8,14,0,0" VerticalAlignment="Top" Text="Message title" TextWrapping="Wrap"/>
<TextBox x:Name="txtTitle" Margin="148,14,133,0" VerticalAlignment="Top" TextWrapping="Wrap" TabIndex="1"/>
<TextBlock HorizontalAlignment="Left" Margin="8,110,0,0" VerticalAlignment="Top" Text="Messagebox buttons" TextWrapping="Wrap"/>
<ComboBox x:Name="comboButtons" Margin="148,110,133,0" VerticalAlignment="Top" TabIndex="3">
<ComboBoxItem Content="Yes & No"/>
<ComboBoxItem Content="Yes, No & Cancel"/>
<ComboBoxItem Content="Ok"/>
<ComboBoxItem Content="Ok & Cancel"/>
</ComboBox>
<ComboBox x:Name="comboTypes" Margin="148,134,133,0" VerticalAlignment="Top" TabIndex="4">
<ComboBoxItem Content="Information Message"/>
<ComboBoxItem Content="Error Message"/>
<ComboBoxItem Content="Confirmation Message"/>
<ComboBoxItem Content="Warning Message"/>
</ComboBox>
</Grid>
</UserControl>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I'm a professional components designer, web developer, UX engineer and 3d designer as well, I'm 4 years experienced .net software engineer and 7 years experienced 3d designer using 3D Max. I'm very interested in RIA technologies, prototyping and UX engineering.
Ahmed Said
Senior .Net Software Engineer