标签: windows-phone-toolkit

SlideInEffect和TurnstileFeatherEffect不起作用

有谁曾与问题SlideInEffect,并TurnstileFeatherEffect从Windows Phone的工具?

到目前为止,我正在努力SlideInEffect 工作LongListSelector并且LongListMultiSelector没有运气.

另外,TurnstileFeatherEffect页面载入时不工作,但导航从他们离开时,它的工作.同样适用于所有页面(全景/枢轴/普通页面).

以普通页面上的代码为例:

<phone:PhoneApplicationPage
    x:Class="SamplePage.Pages.About"
    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"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    shell:SystemTray.IsVisible="True">

    <!--Transitions-->
    <toolkit:TransitionService.NavigationInTransition>
        <toolkit:NavigationInTransition>
            <toolkit:NavigationInTransition.Backward>
                <toolkit:TurnstileFeatherTransition Mode="BackwardIn"/>
            </toolkit:NavigationInTransition.Backward>
            <toolkit:NavigationInTransition.Forward>
                <toolkit:TurnstileFeatherTransition Mode="ForwardIn"/>
            </toolkit:NavigationInTransition.Forward>
        </toolkit:NavigationInTransition>
    </toolkit:TransitionService.NavigationInTransition>
    <toolkit:TransitionService.NavigationOutTransition>
        <toolkit:NavigationOutTransition>
            <toolkit:NavigationOutTransition.Backward>
                <toolkit:TurnstileFeatherTransition Mode="BackwardOut"/>
            </toolkit:NavigationOutTransition.Backward>
            <toolkit:NavigationOutTransition.Forward>
                <toolkit:TurnstileFeatherTransition Mode="ForwardOut"/>
            </toolkit:NavigationOutTransition.Forward>
        </toolkit:NavigationOutTransition>
    </toolkit:TransitionService.NavigationOutTransition>

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/> …
Run Code Online (Sandbox Code Playgroud)

c# windows-phone-8 windows-phone-toolkit

5
推荐指数
1
解决办法
916
查看次数

如何在选择模式下锁定工具箱:LongListMultiSelector?

我已经在我的应用程序中实现了一个朋友列表toolkit:LongListMultiSelector,并且默认情况下我将其设置为显示用于检查朋友的框(启用选择模式).但是如果你选择某人,并取消选中复选框就会消失,并再次让它们可见,你必须奇怪地点击列表项的左侧,该框应该在哪里.

我已经入侵了它,所以它总是通过听取事件IsSelectionEnabledChanged而熬夜,在那种情况下,我总是强迫启用:ListOfFriends.IsSelectionEnabled = true;

是不是有更好的方法可以始终保持选择?我的黑客导致列表实际闪烁,它关闭列表20ms,但随后事件启动并强制列表再次启用选择.

c# windows-phone-8 windows-phone-toolkit

3
推荐指数
1
解决办法
502
查看次数

导航过渡 - Windows Phone工具包

我正在开发一个Windows phone 8.1 silverlight应用程序,我想在我的页面之间提供简单的导航过渡.

我在Nuget上找到了Windows Phone Toolkit.不幸的是,转换服务的导航转换不起作用.我究竟做错了什么?(我使用Caliburn Micro作为mvvm框架)

Bootstrapper.cs

public sealed class Bootstrapper : PhoneBootstrapperBase
    {
        public PhoneContainer Container { get; set; }

        public Bootstrapper()
        {
            StartRuntime();
        }

        protected override void Configure()
        {

            Container = new PhoneContainer();

            Container.RegisterPhoneServices(RootFrame);
            Container.Singleton<MainViewModel>()

            AddCustomConventions();
        }

        static void AddCustomConventions()
        {
            //ellided  
        }

        protected override object GetInstance(Type service, string key)
        {
            return Container.GetInstance(service, key);
        }

        protected override IEnumerable<object> GetAllInstances(Type service)
        {
            return Container.GetAllInstances(service);
        }

        protected override void BuildUp(object instance)
        {
            Container.BuildUp(instance);
        }

        protected override PhoneApplicationFrame CreatePhoneApplicationFrame() …
Run Code Online (Sandbox Code Playgroud)

c# silverlight xaml windows-phone-toolkit windows-phone-8.1

2
推荐指数
1
解决办法
1313
查看次数