Wednesday, June 13, 2012

dynamically show and unshow panoramaitem pages

 private void button2_Click_2(object sender, System.Windows.RoutedEventArgs e)
        {
          //  MarketplaceReviewTask myTask2 = new MarketplaceReviewTask();
          //  myTask2.Show();


            PanoPage1.IsEnabled = true;
            PanoPage1.Visibility = System.Windows.Visibility.Visible;

        }

        private void button4_Click_2(object sender, System.Windows.RoutedEventArgs e)
        {
          /* MarketplaceSearchTask myTask3 = new MarketplaceSearchTask();
            myTask3.ContentType = MarketplaceContentType.Applications;
            myTask3.SearchTerms = "Lankerspoon";
            myTask3.Show(); */
                    


            PanoPage1.IsEnabled = false;
            PanoPage1.Visibility = System.Windows.Visibility.Collapsed;

Monday, June 4, 2012

Double/Multi List Box

Desc:  Buttons /tiles side by side and scroll together.



[ Button 1 ] [Button 2]
[ Button 3 ] [Button 4]
[ Button 5 ] [Button 6]
[ Button 7 ] [Button 8]


<
controls:PanoramaItem >

<StackPanel Margin="1,280,-20,1" Width="476" Orientation="Vertical" Height="587" HorizontalAlignment="Left" VerticalAlignment="Top">

<MediaElement Height="1" Name="mediaElement1" Width="85" Volume="1" />

<!-- <TextBlock Height="45" Name="textBlock33" Text="Selected RingTone:" Width="313" FontFamily="Segoe WP Black" Foreground="White" FontSize="32" HorizontalAlignment="Left" /> -->

<ListBox Name="ldd" Width="476" Height="353" SelectionChanged="ListBox_SelectionChanged_2" SelectionMode="Single" Margin="0,-20,0,0">

<TextBlock Height="45" Name="textBlock3344" Text="Select Topic:" Width="403" FontFamily="Segoe WP Black" Foreground="White" FontSize="28" HorizontalAlignment="Left" Margin="0,15,-1,0" />

<StackPanel Width="200">

<Button Height="120" Name="soundbutton633" Width="203" Click="soundbuttonQ_Click" BorderThickness="0" HorizontalAlignment="Left" FontFamily="Segoe WP Black" FontWeight="Normal" FontSize="48" BorderBrush="#FF382D2D" Foreground="#FF0CFFC0" Opacity="0.8" Margin="0,-10,0,0">

<Button.Background>

<ImageBrush ImageSource="/JAMiTechnoPanorama;component/Resources/variables_green.PNG" />

</Button.Background>

</Button>

<Button Height="120" Name="soujjndbutton6334" Width="204" Click="sounddfbjjuttonQ_Click2" BorderThickness="0" HorizontalAlignment="Left" FontFamily="DengXian" FontWeight="Normal" FontSize="56" BorderBrush="#FF382D2D" Foreground="#FF0C00FF" Opacity="0.8" Margin="0,-15,0,0">

<Button.Background>

<ImageBrush ImageSource="/JAMiTechnoPanorama;component/Resources/remarks_green.PNG" />

</Button.Background>

</Button>

<Button Height="120" Name="soundbuttonq633" Width="203" Click="soundbuttonQ_Click" BorderThickness="0" HorizontalAlignment="Left" FontFamily="Segoe WP Black" FontWeight="Normal" FontSize="48" BorderBrush="#FF382D2D" Foreground="#FF0CFFC0" Opacity="0.8" Margin="0,-10,0,0">

<Button.Background>

<ImageBrush ImageSource="/JAMiTechnoPanorama;component/Resources/variables_green.PNG" />

</Button.Background>

</Button>

<Button Height="120" Name="soujjndbuttonw6334" Width="204" Click="sounddfbjjuttonQ_Click2" BorderThickness="0" HorizontalAlignment="Left" FontFamily="DengXian" FontWeight="Normal" FontSize="56" BorderBrush="#FF382D2D" Foreground="#FF0C00FF" Opacity="0.8" Margin="0,-15,0,0">

<Button.Background>

<ImageBrush ImageSource="/JAMiTechnoPanorama;component/Resources/remarks_green.PNG" />

</Button.Background>

</Button>

</StackPanel>

<StackPanel Width="200" Margin="199,-420,0,0" Orientation="Vertical">

<Button Height="120" Name="soundbutton6334" Width="207" Click="soundbjjuttonQ_Click2" BorderThickness="0" HorizontalAlignment="Left" FontFamily="Trebuchet MS" FontWeight="Normal" FontSize="48" BorderBrush="#FF382D2D" Foreground="White" Opacity="0.8" Margin="0,-15,0,0">

<Button.Background>

<ImageBrush ImageSource="/JAMiTechnoPanorama;component/Resources/if_green.PNG" />

</Button.Background>

</Button>

<Button Height="120" Name="soujjndbkutton6334" Width="197" Click="sounddfbjjuttoknQ_Click2" BorderThickness="0" HorizontalAlignment="Left" FontFamily="Comic Sans MS" FontWeight="Normal" FontSize="64" BorderBrush="#FF382D2D" Foreground="#FFFF00B7" Opacity="0.8" Margin="0,-15,0,0">

<Button.Background>

<ImageBrush ImageSource="/JAMiTechnoPanorama;component/Resources/cmdlets_green.PNG" />

</Button.Background>

</Button>

<Button Height="120" Name="soundbuttjon6334" Width="207" Click="soundbjjuttonQ_Click2" BorderThickness="0" HorizontalAlignment="Left" FontFamily="Trebuchet MS" FontWeight="Normal" FontSize="48" BorderBrush="#FF382D2D" Foreground="White" Opacity="0.8" Margin="0,-15,0,0">

<Button.Background>

<ImageBrush ImageSource="/JAMiTechnoPanorama;component/Resources/if_green.PNG" />

</Button.Background>

</Button>

<Button Height="120" Name="soujjndbklutton6334" Width="197" Click="sounddfbjjuttoknQ_Click2" BorderThickness="0" HorizontalAlignment="Left" FontFamily="Comic Sans MS" FontWeight="Normal" FontSize="64" BorderBrush="#FF382D2D" Foreground="#FFFF00B7" Opacity="0.8" Margin="0,-15,0,0">

<Button.Background>

<ImageBrush ImageSource="/JAMiTechnoPanorama;component/Resources/cmdlets_green.PNG" />

</Button.Background>

</Button>

</StackPanel>











 

<!-- <Button Content="Button" Height="70" Name="button2" Width="301" /> -->

<!-- <Button Content="Button" Height="70" Name="button2" Width="301" /> -->

</ListBox>



</StackPanel>