×

Discussion Board

Page 2 of 2 FirstFirst 12
Results 16 to 24 of 24
  1. #16
    Nokia Developer Moderator
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    4,492

    Re: How to upgrade my windows Phone App developed uisng Microsft Visual studio 2010

    Quote Originally Posted by GTO_India View Post
    Ok one final question to all of you :My main motive behind upgradation is to Put or pace ADS in my windows 7.1 App.


    Can I put ADS and if Yes How as when I trued with Visual stuido 2012 It given error that my app is not compatible


    Give me the exact procedure and the designer or Tool


    Iam referring and working on :


    http://developer.nokia.com/Community...ows_Phone_apps


    I will update you theerros shown when I integrate them
    Quick look at the link that you show http://developer.nokia.com/Community...ows_Phone_apps has the step by step 'how to' with a example too. How much more exact do you want..can you specify?

  2. #17
    Registered User
    Join Date
    Nov 2010
    Posts
    1,169

    Re: How to upgrade my windows Phone App developed uisng Microsft Visual studio 2010

    Ok Thank you I will update you after trying then

  3. #18
    Registered User
    Join Date
    Nov 2010
    Posts
    1,169

    Re: How to upgrade my windows Phone App developed uisng Microsft Visual studio 2010

    Now sucesfully showing the AD with test values ApplicationId: test_client and AdUnitId: Image480_80 but the AD is showing on in the middle of the Main Page of my App

    as shown in the attachment please guide me to How show the Ad on the top of the main page or complete bottom of the main page.ADs.jpg
    Last edited by GTO_India; 2013-10-28 at 10:12.

  4. #19
    Registered User
    Join Date
    Oct 2012
    Posts
    120

    Re: How to upgrade my windows Phone App developed uisng Microsft Visual studio 2010

    Iam able to show the AD but using test values http://developer.nokia.com/Community...ows_Phone_apps


    But the AD is showing in the middle of App page as shown in the attachment in #18

    I want to show it at the Top of the page or the Bottom of the page so that it does'nt distrurb my App.



    Thanks

  5. #20
    Registered User
    Join Date
    Nov 2010
    Posts
    1,169

    Re: How to upgrade my windows Phone App developed uisng Microsft Visual studio 2010

    Hello any body following my query ?
    Please reply Asap.

    Succesfully showing AD with the test values but I want to show the AD on the top of the Main page or Bottom of the main page.

    Iam not able to show the AD with my account AD unit ID and Application ID. why ?

  6. #21
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    434

    Re: How to upgrade my windows Phone App developed uisng Microsft Visual studio 2010

    The Ad control is a regular Control. You can layout it like any other control as well.

  7. #22
    Registered User
    Join Date
    Nov 2010
    Posts
    1,169

    Re: How to upgrade my windows Phone App developed uisng Microsft Visual studio 2010

    My code is as follows


    <phone:PhoneApplicationPage.Resources>
    <Style x:Key="FeedGridItemStyle" TargetType="Button">
    <Setter Property="Background" Value="Transparent"/>
    <Setter Property="BorderBrush" Value="{StaticResource PhoneForegroundBrush}"/>
    <Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
    <Setter Property="BorderThickness" Value="{StaticResource PhoneBorderThickness}"/>
    <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilyNormal}"/>
    <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeNormal}"/>
    <Setter Property="Padding" Value="10,3,10,5"/>
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="Button">
    <Grid Background="Transparent">
    <VisualStateManager.VisualStateGroups>
    <VisualStateGroup x:Name="CommonStates">
    <VisualState x:Name="Normal"/>
    <VisualState x:Name="MouseOver"/>
    <VisualState x:Name="Pressed"/>
    <VisualState x:Name="Disabled"/>
    </VisualStateGroup>
    </VisualStateManager.VisualStateGroups>
    <Grid Height="180" Margin="8,8,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="180">
    <Image Source="{Binding ImageURL}"/>
    <TextBlock Margin="8,0,8,8" TextWrapping="Wrap" VerticalAlignment="Bottom" Height="27" Text="{Binding Title}" d:LayoutOverrides="VerticalAlignment" Foreground="Black" />
    </Grid>
    </Grid>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    </Style>

    <DataTemplate x:Key="FeedGridItemTemplate">
    <Button Style="{StaticResource FeedGridItemStyle}"
    Click="Button_Click"/>
    </DataTemplate>

    <ItemsPanelTemplate x:Key="FeedGridPanelTemplate">
    <!-- WrapPanel is part of Silverlight Toolkit which does not ship as part of this
    example. Please see release notes for instructions how to install and use
    Silverlight Toolkit. -->
    <toolkit:WrapPanel/>
    </ItemsPanelTemplate>
    </phone:PhoneApplicationPage.Resources>

    <Grid x:Name="LayoutRoot" Background="Transparent">
    <controls:Panorama Title="news update" x:Name="RSSFeedsPanorama" Foreground="Black">
    <controls:Panorama.Background>
    <ImageBrush ImageSource="/Resources/newspaper-background.jpg" />
    </controls:Panorama.Background>

    <controls:PanoramaItem DataContext="{Binding Source={StaticResource RSSPagesDataSource}, Path=FirstPage}">

    <controls:PanoramaItem.Header>
    <StackPanel Orientation="Horizontal">
    <TextBlock Text="{Binding Title}" />
    <Button Click="SettingsButton_Click" Margin="0,10,0,0" BorderThickness="0">
    <Image Source="/Resources/appbar.feature.settings.rest.png" Width="60" />
    </Button>
    </StackPanel>
    </controls:PanoramaItem.Header>

    <controls:PanoramaItem.Content>
    <ListBox Name="NewsFeedsListBox"
    toolkit:TiltEffect.IsTiltEnabled="True"
    ItemTemplate="{StaticResource FeedGridItemTemplate}"
    ItemsSource="{Binding FeedsView.View}"
    ItemsPanel="{StaticResource FeedGridPanelTemplate}"
    Margin="25,0,0,0"/>
    </controls:PanoramaItem.Content>
    </controls:PanoramaItem>

    <controls:PanoramaItem DataContext="{Binding Source={StaticResource RSSPagesDataSource}, Path=SecondPage}">

    <controls:PanoramaItem.Header>
    <StackPanel Orientation="Horizontal">
    <TextBlock Text="{Binding Title}" />
    <Button Click="SettingsButton_Click" Margin="0,10,0,0" BorderThickness="0">
    <Image Source="/Resources/appbar.feature.settings.rest.png" Width="60" />
    </Button>
    </StackPanel>
    </controls:PanoramaItem.Header>

    <controls:PanoramaItem.Content>
    <ListBox Name="LeisureListBox"
    toolkit:TiltEffect.IsTiltEnabled="True"
    ItemTemplate="{StaticResource FeedGridItemTemplate}"
    ItemsSource="{Binding FeedsView.View}"
    ItemsPanel="{StaticResource FeedGridPanelTemplate}"
    Margin="25,0,0,0"/>
    </controls:PanoramaItem.Content>
    </controls:PanoramaItem>

    <controls:PanoramaItem DataContext="{Binding Source={StaticResource RSSPagesDataSource}, Path=ThirdPage}">

    <controls:PanoramaItem.Header>
    <StackPanel Orientation="Horizontal">
    <TextBlock Text="{Binding Title}" />
    <Button Click="SettingsButton_Click" Margin="0,10,0,0" BorderThickness="0">
    <Image Source="/Resources/appbar.feature.settings.rest.png" Width="60" />
    </Button>
    </StackPanel>
    </controls:PanoramaItem.Header>

    <controls:PanoramaItem.Content>
    <ListBox Name="SportsFeedsListBox"
    toolkit:TiltEffect.IsTiltEnabled="True"
    ItemTemplate="{StaticResource FeedGridItemTemplate}"
    ItemsSource="{Binding FeedsView.View}"
    ItemsPanel="{StaticResource FeedGridPanelTemplate}"
    Margin="25,0,0,0"/>
    </controls:PanoramaItem.Content>
    </controls:PanoramaItem>

    <controls:PanoramaItem DataContext="{Binding Source={StaticResource RSSPagesDataSource}, Path=FourthPage}">

    <controls:PanoramaItem.Header>
    <StackPanel Orientation="Horizontal">
    <TextBlock Text="{Binding Title}" />
    <Button Click="SettingsButton_Click" Margin="0,10,0,0" BorderThickness="0">
    <Image Source="/Resources/appbar.feature.settings.rest.png" Width="60" />
    </Button>
    </StackPanel>
    </controls:PanoramaItem.Header>

    <controls:PanoramaItem.Content>
    <ListBox Name="TechFeedsListBox"
    toolkit:TiltEffect.IsTiltEnabled="True"
    ItemTemplate="{StaticResource FeedGridItemTemplate}"
    ItemsSource="{Binding FeedsView.View}"
    ItemsPanel="{StaticResource FeedGridPanelTemplate}"
    Margin="25,0,0,0"/>
    </controls:PanoramaItem.Content>
    </controls:PanoramaItem>

    </controls:Panorama>




    <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">

    </StackPanel>

    <!--ContentPanel - place additional content here-->
    <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
    <my:AdControl Visibility="Collapsed" AdUnitId="Image480_80" ApplicationId="test_client" Height="80" HorizontalAlignment="Left" Margin="-12,6,0,0" Name="adControl1" VerticalAlignment="Top" Width="480" />
    </Grid>
    </Grid>
    </phone:PhoneApplicationPage> [/QUOTE]


    Can you please adjust this code in such a way that My Ad is placed at the top or Bottom of the main page



    Thanks

  8. #23
    Nokia Developer Champion
    Join Date
    Feb 2013
    Location
    Dublin, Ireland
    Posts
    478

    Re: How to upgrade my windows Phone App developed uisng Microsft Visual studio 2010

    You should probably learn how alignment works in XAML...

    http://msdn.microsoft.com/en-us/library/ms751709.aspx

  9. #24
    Registered User
    Join Date
    Nov 2010
    Posts
    1,169

    Cool Re: How to show the AD at the Top or Bottom of the App main page?

    As of now Iam canfused between Grid and List Box models.

    Please suggest me the suitable place for showing my AD at the Top or Bottom of the main App page with the code

Similar Threads

  1. Replies: 1
    Last Post: 2013-09-02, 22:43
  2. Does 'Nokia PC Connectivity API 3.2' support Visual Studio 2010?
    By x0pauh in forum PC Suite API and PC Connectivity SDK
    Replies: 3
    Last Post: 2010-09-14, 06:46
  3. WRT Plugin for Visual Studio 2010
    By SkyWocky in forum Symbian
    Replies: 2
    Last Post: 2010-05-17, 09:08
  4. QSQLITE configuration on visual Studio (WIndows Mobile)
    By vishalrocks101 in forum [Archived] Qt SDKs and Tools
    Replies: 5
    Last Post: 2010-04-06, 06:08

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •