Advertisement
rakoczyn

SubCalc - Microsoft Visual Studio (Administrator)

Nov 22nd, 2011
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.95 KB | None | 0 0
  1. <phone:PhoneApplicationPage
  2. x:Class="SubCalc.MainPage"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
  6. xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
  7. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9.  
  10.  
  11. xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
  12.  
  13. mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
  14. FontFamily="{StaticResource PhoneFontFamilyNormal}"
  15. FontSize="{StaticResource PhoneFontSizeNormal}"
  16. Foreground="{StaticResource PhoneForegroundBrush}"
  17. SupportedOrientations="Portrait" Orientation="Portrait"
  18. shell:SystemTray.IsVisible="True">
  19.  
  20. <!--LayoutRoot is the root grid where all page content is placed-->
  21. <Grid x:Name="LayoutRoot" >
  22. <Grid.Background>
  23. <ImageBrush ImageSource="Back2.jpg" />
  24. </Grid.Background>
  25. <controls:Pivot Title="Subnet Calculator">
  26.  
  27. <controls:PivotItem Header="info">
  28. <Grid x:Name="ContentPanel" >
  29. <Grid.ColumnDefinitions>
  30. <ColumnDefinition Width="120"></ColumnDefinition>
  31. <ColumnDefinition Width="*"></ColumnDefinition>
  32. </Grid.ColumnDefinitions>
  33. <Grid.RowDefinitions>
  34. <RowDefinition Height="70"></RowDefinition>
  35. <RowDefinition Height="70"></RowDefinition>
  36. <RowDefinition Height="120"></RowDefinition>
  37. <RowDefinition Height="60"></RowDefinition>
  38. <RowDefinition Height="Auto"></RowDefinition>
  39. </Grid.RowDefinitions>
  40.  
  41. <TextBlock x:Name="IPBlock" Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Right" Text="IP: " FontSize="40" FontFamily="Calibri"></TextBlock>
  42. <StackPanel Grid.Column="1" Grid.Row="0" Orientation="Horizontal" Margin="0,0,0,0" HorizontalAlignment="Left" >
  43. <TextBox x:Name="IPTextBoxA" VerticalAlignment="Center" Text="000" MaxLength="3" Width="92" FontSize="34" Margin="-5" LostFocus="ChangeIP">
  44. <TextBox.InputScope>
  45. <InputScope>
  46. <InputScopeName NameValue="Number" />
  47.  
  48. </InputScope>
  49. </TextBox.InputScope>
  50. </TextBox>
  51. <TextBox x:Name="IPTextBoxB" VerticalAlignment="Center" Text="000" MaxLength="3" Width="92" FontSize="34" Margin="-5" LostFocus="ChangeIP">
  52. <TextBox.InputScope>
  53. <InputScope>
  54. <InputScopeName NameValue="Number" />
  55. </InputScope>
  56. </TextBox.InputScope>
  57. </TextBox>
  58. <TextBox x:Name="IPTextBoxC" VerticalAlignment="Center" Text="000" MaxLength="3" Width="92" FontSize="34" Margin="-5" LostFocus="ChangeIP">
  59. <TextBox.InputScope>
  60. <InputScope>
  61. <InputScopeName NameValue="Number" />
  62.  
  63. </InputScope>
  64. </TextBox.InputScope>
  65. </TextBox>
  66. <TextBox x:Name="IPTextBoxD" VerticalAlignment="Center" Text="000" MaxLength="3" Width="92" FontSize="34" Margin="-5" LostFocus="ChangeIP">
  67. <TextBox.InputScope>
  68. <InputScope>
  69. <InputScopeName NameValue="Number" />
  70. </InputScope>
  71. </TextBox.InputScope>
  72. </TextBox>
  73. </StackPanel>
  74. <TextBlock x:Name="MaskBlock" Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Mask:" FontSize="40" FontFamily="Calibri" ></TextBlock>
  75. <StackPanel Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal">
  76. <TextBox x:Name="MaskPickerA" Width="92" MaxLength="3" HorizontalAlignment="Left" Margin="-5" LostFocus="ChangeMask" >
  77. <TextBox.InputScope>
  78. <InputScope>
  79. <InputScopeName NameValue="Number" />
  80.  
  81. </InputScope>
  82. </TextBox.InputScope>
  83. </TextBox>
  84. <TextBox x:Name="MaskPickerB" Width="92" MaxLength="3" Padding="0" Margin="-5" LostFocus="ChangeMask">
  85. <TextBox.InputScope>
  86. <InputScope>
  87. <InputScopeName NameValue="Number" />
  88.  
  89. </InputScope>
  90. </TextBox.InputScope>
  91. </TextBox>
  92. <TextBox x:Name="MaskPickerC" Width="92" MaxLength="3" Padding="0" Margin="-5" LostFocus="ChangeMask">
  93. <TextBox.InputScope>
  94. <InputScope>
  95. <InputScopeName NameValue="Number" />
  96.  
  97. </InputScope>
  98. </TextBox.InputScope>
  99. </TextBox>
  100. <TextBox x:Name="MaskPickerD" Width="92" MaxLength="3" Padding="0" Margin="-5" LostFocus="ChangeMask">
  101. <TextBox.InputScope>
  102. <InputScope>
  103. <InputScopeName NameValue="Number" />
  104.  
  105. </InputScope>
  106. </TextBox.InputScope>
  107. </TextBox>
  108. </StackPanel>
  109.  
  110. <StackPanel Grid.ColumnSpan="2" Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center">
  111. <RadioButton x:Name="RB_A" Checked="RadioButton_Checked">A</RadioButton>
  112. <RadioButton x:Name="RB_B" Checked="RadioButton_Checked">B</RadioButton>
  113. <RadioButton x:Name="RB_C" Checked="RadioButton_Checked">C</RadioButton>
  114. </StackPanel>
  115.  
  116. <StackPanel Grid.ColumnSpan="2" Grid.Row="3" >
  117. <StackPanel.Background>
  118. <SolidColorBrush Color="Black" Opacity="0.8" />
  119. </StackPanel.Background>
  120. <TextBlock x:Name="IPbin" Margin="0,10,0,0" Text=" IP (2): 00000000.00000000.00000000.00000000" FontFamily="Courier New" FontSize="16"></TextBlock>
  121. <TextBlock x:Name="Maskbin" Text="Mask (2): 11111111.11111111.11111111.00000000" FontFamily="Courier New" FontSize="16"></TextBlock>
  122. </StackPanel>
  123.  
  124. <Grid Grid.ColumnSpan="2" Grid.Row="4" Margin="-5,0">
  125. <Grid.Background>
  126. <SolidColorBrush Color="Black" Opacity="0.8" />
  127.  
  128. </Grid.Background>
  129. <Grid.ColumnDefinitions>
  130. <ColumnDefinition Width="80"></ColumnDefinition>
  131. <ColumnDefinition Width="160"></ColumnDefinition>
  132. <ColumnDefinition Width="10"></ColumnDefinition>
  133. <ColumnDefinition Width="100"></ColumnDefinition>
  134. <ColumnDefinition Width="120"></ColumnDefinition>
  135. </Grid.ColumnDefinitions>
  136. <Grid.RowDefinitions>
  137. <RowDefinition Height="70"></RowDefinition>
  138. <RowDefinition Height="70"></RowDefinition>
  139. <RowDefinition Height="70"></RowDefinition>
  140. </Grid.RowDefinitions>
  141.  
  142.  
  143. <Image Source="Host.png" Grid.Column="0" Grid.Row="0" Margin="5,0,0,0"></Image>
  144. <TextBlock x:Name="MaxHostCountTB" Text="0" FontSize="30" FontFamily="Calibri" Grid.Column="1" Grid.Row="0" VerticalAlignment="Center" Margin="20"></TextBlock>
  145.  
  146.  
  147. <Image Source="Subnet.png" Grid.Column="0" Grid.Row="1" Margin="5,0,0,0"></Image>
  148. <TextBlock x:Name="MaxSubnetsCountTB" Text="0" FontSize="30" FontFamily="Calibri" Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" Margin="20"></TextBlock>
  149.  
  150. <StackPanel Grid.Column="3" Grid.Row="0" Grid.ColumnSpan="2">
  151. <TextBlock Text="Subnet" Foreground="Gray" Margin="15,0" ></TextBlock>
  152. <TextBlock x:Name="SubnetTB" FontSize="30" Text="192.168.100.000" ></TextBlock>
  153. </StackPanel>
  154.  
  155. <StackPanel Grid.Column="3" Grid.Row="1" Grid.ColumnSpan="2">
  156. <TextBlock Text="Broadcast" Foreground="Gray" Margin="15,0"></TextBlock>
  157. <TextBlock x:Name="BroadcastTB" FontSize="30" Text="192.168.100.255" ></TextBlock>
  158. </StackPanel>
  159.  
  160. <StackPanel Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="5">
  161. <TextBlock Text="IP Range" Foreground="Gray" Margin="15,0" ></TextBlock>
  162. <TextBlock x:Name="IPRangeTB" FontFamily="Calibri" FontSize="30" Margin="5,0" Text="192.168.1.1 - 192.168.1.255" ></TextBlock>
  163. </StackPanel>
  164.  
  165.  
  166. </Grid>
  167.  
  168.  
  169.  
  170.  
  171. </Grid>
  172.  
  173. </controls:PivotItem>
  174. <controls:PivotItem Header="calc">
  175. <TextBlock Margin="20" Text="Coming soon..." FontFamily="Verdana" FontSize="50"></TextBlock>
  176.  
  177. </controls:PivotItem>
  178.  
  179.  
  180.  
  181. </controls:Pivot>
  182.  
  183.  
  184.  
  185. <!--ContentPanel - place additional content here-->
  186.  
  187.  
  188. </Grid>
  189.  
  190. <!--Sample code showing usage of ApplicationBar-->
  191. <!--<phone:PhoneApplicationPage.ApplicationBar>
  192. <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
  193. <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
  194. <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
  195. <shell:ApplicationBar.MenuItems>
  196. <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
  197. <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
  198. </shell:ApplicationBar.MenuItems>
  199. </shell:ApplicationBar>
  200. </phone:PhoneApplicationPage.ApplicationBar>-->
  201.  
  202. </phone:PhoneApplicationPage>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement