슬라이더 컨트롤을 사용하려고합니다. 그것은 단지 간단한 제어입니다. 멋진 일은 없어. 그러나 나는 혼란스런 문제에 봉착한다.wp7 슬라이더가 달려 있습니다.
컨트롤을 테스트 페이지 (아무것도 표시하지 않음)에 놓고 앱이 시작된 직후에 탐색하면 완벽하게 슬라이드 할 수 있습니다. 하지만 먼저 다른 페이지로 이동 한 다음 테스트 페이지로 이동하면 나는 아주 이상한 행동을 취한다. 슬라이더 컨트롤이 단계적으로 이동합니다. 마치 전화가 끊어 지거나 포커스를 잃는 것처럼 보입니다.
저는 wp7.1을 사용하고 있으며 에뮬레이터와 전화에서 테스트했습니다. 둘 다 나에게 같은 결과를 준다. 이 문제를 어디서부터 시작해야할지조차 모르겠지만 슬라이더가 필요하고 부드럽게 움직이게해야합니다.
아이디어가 있으십니까?
<phone:PhoneApplicationPage
x:Class="WP7ListBoxSelectedItemStyle.TestPage"
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="Portrait" Orientation="Portrait"
xmlns:local="clr-namespace:WP7ListBoxSelectedItemStyle"
xmlns:my="clr-namespace:colordata_controls;assembly=colordata_controls"
shell:SystemTray.IsVisible="True" xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit">
<!--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="IPO" Style="{StaticResource PhoneTextNormalStyle}"/>
<TextBlock x:Name="PageTitle" Text="Test" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
</StackPanel>
<!--ContentPanel - place additional content here-->
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="8,17,16,-17">
<Slider Height="84" HorizontalAlignment="Left" Margin="10,10,0,0" Name="slider1" VerticalAlignment="Top" Width="460" />
</Grid>
</Grid>
여기
에뮬레이터의 행동에 그것의 비디오에 대한 링크입니다 :
는 XAML을 포함하도록 수정. https://vimeo.com/36428677
당신이 컨트롤에 아무것도 확실합니까? 피벗 컨트롤에 슬라이더가있는 경우이 문제가 발생합니다. – MyKuLLSKI
XAML을 보여줍니다! –