Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7866571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:26:15+00:00 2026-06-03T00:26:15+00:00

Has anyone encountered this problem with Windows Phone 7.1? I have a simple page

  • 0

Has anyone encountered this problem with Windows Phone 7.1?

I have a simple page with a slider control at the top stretched to full width. The page supports orientation changes.

If you run the app and start in portrait mode, put the slider in the middle of the bar. Now change orientation so you are in lanscape mode. Now move the slider fully to the right (max value). Now orientate back to portrait – what do you see?

I see a slider, but the button is not on screen and if I tap anywhere in the slider to move the bar button it takes a few attempts. This seems to be happening because the slider hasn’t re-sized correctly. This only seems to happen if the slider value is at max.

Has anyone else seen this issue? The problem is the same on the emulator and my HTC Mozart device.

Try this out, run it up in Landscape mode, move slider all the way to the right, then change to portrait mode and notice the Slider Bar end is now not visible.

<phone:PhoneApplicationPage 
x:Class="SliderRedrawPageOrientation.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"
mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
shell:SystemTray.IsVisible="True">

<!--LayoutRoot is the root grid where all page content is placed-->
<Grid x:Name="LayoutRoot" Background="Transparent">
    <Grid.RowDefinitions>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="*"/>
    </Grid.RowDefinitions>

    <!--TitlePanel contains the name of the application and page title-->
    <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
        <TextBlock x:Name="ApplicationTitle" Text="MY APPLICATION" Style="{StaticResource PhoneTextNormalStyle}"/>
        <TextBlock x:Name="PageTitle" Text="page name" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
    </StackPanel>

    <!--ContentPanel - place additional content here-->
    <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
        <Slider HorizontalAlignment="Stretch"></Slider>
    </Grid>
</Grid>

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T00:26:16+00:00Added an answer on June 3, 2026 at 12:26 am

    I could reproduce this issue and it occurs even when the slider button is less than the MaxValue. Here’s a solution that uses a BackgroundWorker and a quick nap; a bit of a hack, but it does resolve the issue:

    public MainPage()
    {
        InitializeComponent();
    
        this.OrientationChanged += OnOrientationChanged;
    }
    
    private void OnOrientationChanged( object sender, OrientationChangedEventArgs e )
    {
        double val = MySlider.Value;
        MySlider.Value = 0;
    
        var bw = new BackgroundWorker();
        bw.DoWork += ( _, __ ) => Thread.Sleep( 100 );
        bw.RunWorkerCompleted += ( _, __ ) => Dispatcher.BeginInvoke( () => MySlider.Value = val );
        bw.RunWorkerAsync();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Uhm I'm not sure if anyone has encountered this problem a brief description is
Has anyone encountered the following problem: I have IIS7 running on my computer. On
Has anyone run into this problem? I have a collection of comments that I
Has anyone encountered this oddity? I'm checking for the existence of a number of
I was wondering if anyone has a good solution to a problem I've encountered
Has anyone used the FileSystemWatcher in framework 4 and have you encountered any problems?
Just wondering if anyone has encountered this and has a good fix. Here is
Has anyone ever set up Cruise Control to build an OS X Cocoa/Objective-C project?
Has anyone run into this error message before when using a timer on an
I have a control (derived from System.Windows.Forms.Control) which needs to be transparent in some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.