Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <phone:PhoneApplicationPage
- x:Class="SubCalc.MainPage"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
- xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
- mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
- FontFamily="{StaticResource PhoneFontFamilyNormal}"
- FontSize="{StaticResource PhoneFontSizeNormal}"
- Foreground="{StaticResource PhoneForegroundBrush}"
- SupportedOrientations="Portrait" Orientation="Portrait"
- shell:SystemTray.IsVisible="True">
- <!--LayoutRoot is the root grid where all page content is placed-->
- <Grid x:Name="LayoutRoot" >
- <Grid.Background>
- <ImageBrush ImageSource="Back2.jpg" />
- </Grid.Background>
- <controls:Pivot Title="Subnet Calculator">
- <controls:PivotItem Header="info">
- <Grid x:Name="ContentPanel" >
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="120"></ColumnDefinition>
- <ColumnDefinition Width="*"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="70"></RowDefinition>
- <RowDefinition Height="70"></RowDefinition>
- <RowDefinition Height="120"></RowDefinition>
- <RowDefinition Height="60"></RowDefinition>
- <RowDefinition Height="Auto"></RowDefinition>
- </Grid.RowDefinitions>
- <TextBlock x:Name="IPBlock" Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Right" Text="IP: " FontSize="40" FontFamily="Calibri"></TextBlock>
- <StackPanel Grid.Column="1" Grid.Row="0" Orientation="Horizontal" Margin="0,0,0,0" HorizontalAlignment="Left" >
- <TextBox x:Name="IPTextBoxA" VerticalAlignment="Center" Text="000" MaxLength="3" Width="92" FontSize="34" Margin="-5" LostFocus="ChangeIP">
- <TextBox.InputScope>
- <InputScope>
- <InputScopeName NameValue="Number" />
- </InputScope>
- </TextBox.InputScope>
- </TextBox>
- <TextBox x:Name="IPTextBoxB" VerticalAlignment="Center" Text="000" MaxLength="3" Width="92" FontSize="34" Margin="-5" LostFocus="ChangeIP">
- <TextBox.InputScope>
- <InputScope>
- <InputScopeName NameValue="Number" />
- </InputScope>
- </TextBox.InputScope>
- </TextBox>
- <TextBox x:Name="IPTextBoxC" VerticalAlignment="Center" Text="000" MaxLength="3" Width="92" FontSize="34" Margin="-5" LostFocus="ChangeIP">
- <TextBox.InputScope>
- <InputScope>
- <InputScopeName NameValue="Number" />
- </InputScope>
- </TextBox.InputScope>
- </TextBox>
- <TextBox x:Name="IPTextBoxD" VerticalAlignment="Center" Text="000" MaxLength="3" Width="92" FontSize="34" Margin="-5" LostFocus="ChangeIP">
- <TextBox.InputScope>
- <InputScope>
- <InputScopeName NameValue="Number" />
- </InputScope>
- </TextBox.InputScope>
- </TextBox>
- </StackPanel>
- <TextBlock x:Name="MaskBlock" Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Mask:" FontSize="40" FontFamily="Calibri" ></TextBlock>
- <StackPanel Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Center" Orientation="Horizontal">
- <TextBox x:Name="MaskPickerA" Width="92" MaxLength="3" HorizontalAlignment="Left" Margin="-5" LostFocus="ChangeMask" >
- <TextBox.InputScope>
- <InputScope>
- <InputScopeName NameValue="Number" />
- </InputScope>
- </TextBox.InputScope>
- </TextBox>
- <TextBox x:Name="MaskPickerB" Width="92" MaxLength="3" Padding="0" Margin="-5" LostFocus="ChangeMask">
- <TextBox.InputScope>
- <InputScope>
- <InputScopeName NameValue="Number" />
- </InputScope>
- </TextBox.InputScope>
- </TextBox>
- <TextBox x:Name="MaskPickerC" Width="92" MaxLength="3" Padding="0" Margin="-5" LostFocus="ChangeMask">
- <TextBox.InputScope>
- <InputScope>
- <InputScopeName NameValue="Number" />
- </InputScope>
- </TextBox.InputScope>
- </TextBox>
- <TextBox x:Name="MaskPickerD" Width="92" MaxLength="3" Padding="0" Margin="-5" LostFocus="ChangeMask">
- <TextBox.InputScope>
- <InputScope>
- <InputScopeName NameValue="Number" />
- </InputScope>
- </TextBox.InputScope>
- </TextBox>
- </StackPanel>
- <StackPanel Grid.ColumnSpan="2" Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center">
- <RadioButton x:Name="RB_A" Checked="RadioButton_Checked">A</RadioButton>
- <RadioButton x:Name="RB_B" Checked="RadioButton_Checked">B</RadioButton>
- <RadioButton x:Name="RB_C" Checked="RadioButton_Checked">C</RadioButton>
- </StackPanel>
- <StackPanel Grid.ColumnSpan="2" Grid.Row="3" >
- <StackPanel.Background>
- <SolidColorBrush Color="Black" Opacity="0.8" />
- </StackPanel.Background>
- <TextBlock x:Name="IPbin" Margin="0,10,0,0" Text=" IP (2): 00000000.00000000.00000000.00000000" FontFamily="Courier New" FontSize="16"></TextBlock>
- <TextBlock x:Name="Maskbin" Text="Mask (2): 11111111.11111111.11111111.00000000" FontFamily="Courier New" FontSize="16"></TextBlock>
- </StackPanel>
- <Grid Grid.ColumnSpan="2" Grid.Row="4" Margin="-5,0">
- <Grid.Background>
- <SolidColorBrush Color="Black" Opacity="0.8" />
- </Grid.Background>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="80"></ColumnDefinition>
- <ColumnDefinition Width="160"></ColumnDefinition>
- <ColumnDefinition Width="10"></ColumnDefinition>
- <ColumnDefinition Width="100"></ColumnDefinition>
- <ColumnDefinition Width="120"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="70"></RowDefinition>
- <RowDefinition Height="70"></RowDefinition>
- <RowDefinition Height="70"></RowDefinition>
- </Grid.RowDefinitions>
- <Image Source="Host.png" Grid.Column="0" Grid.Row="0" Margin="5,0,0,0"></Image>
- <TextBlock x:Name="MaxHostCountTB" Text="0" FontSize="30" FontFamily="Calibri" Grid.Column="1" Grid.Row="0" VerticalAlignment="Center" Margin="20"></TextBlock>
- <Image Source="Subnet.png" Grid.Column="0" Grid.Row="1" Margin="5,0,0,0"></Image>
- <TextBlock x:Name="MaxSubnetsCountTB" Text="0" FontSize="30" FontFamily="Calibri" Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" Margin="20"></TextBlock>
- <StackPanel Grid.Column="3" Grid.Row="0" Grid.ColumnSpan="2">
- <TextBlock Text="Subnet" Foreground="Gray" Margin="15,0" ></TextBlock>
- <TextBlock x:Name="SubnetTB" FontSize="30" Text="192.168.100.000" ></TextBlock>
- </StackPanel>
- <StackPanel Grid.Column="3" Grid.Row="1" Grid.ColumnSpan="2">
- <TextBlock Text="Broadcast" Foreground="Gray" Margin="15,0"></TextBlock>
- <TextBlock x:Name="BroadcastTB" FontSize="30" Text="192.168.100.255" ></TextBlock>
- </StackPanel>
- <StackPanel Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="5">
- <TextBlock Text="IP Range" Foreground="Gray" Margin="15,0" ></TextBlock>
- <TextBlock x:Name="IPRangeTB" FontFamily="Calibri" FontSize="30" Margin="5,0" Text="192.168.1.1 - 192.168.1.255" ></TextBlock>
- </StackPanel>
- </Grid>
- </Grid>
- </controls:PivotItem>
- <controls:PivotItem Header="calc">
- <TextBlock Margin="20" Text="Coming soon..." FontFamily="Verdana" FontSize="50"></TextBlock>
- </controls:PivotItem>
- </controls:Pivot>
- <!--ContentPanel - place additional content here-->
- </Grid>
- <!--Sample code showing usage of ApplicationBar-->
- <!--<phone:PhoneApplicationPage.ApplicationBar>
- <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
- <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
- <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
- <shell:ApplicationBar.MenuItems>
- <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
- <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
- </shell:ApplicationBar.MenuItems>
- </shell:ApplicationBar>
- </phone:PhoneApplicationPage.ApplicationBar>-->
- </phone:PhoneApplicationPage>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement