2017-03-18 17 views
5

ユニバーサルWindows(UWP)アプリケーションを使用しています。ページにNavigationTransitionsページを追加したいとします。私は以下のコードのように、デフォルトNavigationThemeTransitionを使用することができることを知って :UWPのページナビゲーショントランジション用にカスタマイズされたNavigationTransitionInfoを作成します。

<Page.Transitions> 
    <TransitionCollection> 
     <NavigationThemeTransition> 
      <NavigationThemeTransition.DefaultNavigationTransitionInfo> 
       <CommonNavigationTransitionInfo/> 
      </NavigationThemeTransition.DefaultNavigationTransitionInfo> 
     </NavigationThemeTransition> 
    </TransitionCollection> 
</Page.Transitions> 

が、私は自分のナビゲーショントランジションを作成したいが、私は何度もありませんが、結果を検索しました。 私はデフォルトのナビゲーションの定義を取得しようとしましたが、私は以下のようなコードを書くことができましたが、コードブロックで何を書く必要があるのか​​分かりません。どんな助け?

using Windows.UI.Xaml; 
    using Windows.UI.Xaml.Media.Animation; 
    using Windows.UI.Xaml.Controls.Primitives; 

    namespace BindingSample2 
    { 
    internal interface IWikiSedaNavigationTransitionInfo 
    { 
     System.Boolean IsStaggeringEnabled { get; set; } 
    } 
    public sealed class WikiSedaNavigationTransitionInfo : NavigationTransitionInfo, IWikiSedaNavigationTransitionInfo 
    { 
     // 
     // Summary: 
     //  Initializes a new instance of the WikiSedaNavigationTransitionInfo class. 
     public WikiSedaNavigationTransitionInfo() 
     { 
      var a = this.GetNavigationStateCore(); 
      var s = this.MemberwiseClone(); 
      // NavigationThemeTransition theme = new NavigationThemeTransition(); 

      var themeR = new EdgeUIThemeTransition(); 

      themeR.Edge = EdgeTransitionLocation.Bottom; 

      //Transitions = collection; 
     } 

     // Summary: 
     //  Identifies the CommonNavigationTransitionInfo.IsStaggerElement attached property. 
     // 
     // Returns: 
     //  The identifier for the CommonNavigationTransitionInfo.IsStaggerElement attached 
     //  property. 
     public static DependencyProperty IsStaggerElementProperty { get; } 

     // Summary: 
     //  Identifies the IsStaggeringEnabled dependency property. 
     // 
     // Returns: 
     //  The identifier for the IsStaggeringEnabled dependency property. 
     public static DependencyProperty IsStaggeringEnabledProperty { get; } 

     // Summary: 
     //  Gets or sets a Boolean value indicating if staggering is enabled for the navigation 
     //  transition. 
     // 
     // Returns: 
     //  A Boolean value indicating if staggering is enabled for the navigation transition. 
     public System.Boolean IsStaggeringEnabled { get; set; } 

     // Summary: 
     //  Returns a Boolean value indicating if the specified UIElement is the stagger 
     //  element for the navigation transition. 
     // 
     // Parameters: 
     // element: 
     //  The UIElement to check as being the stagger element. 
     // 
     // Returns: 
     //  Returns true if element is the stagger element; otherwise false. 
     public static System.Boolean GetIsStaggerElement(UIElement element) 
     { 
      return false; 
     } 

     // Summary: 
     //  Sets a Boolean value indicating if the specified UIElement is the stagger element 
     //  for the navigation transition. 
     // 
     // Parameters: 
     // element: 
     //  The UIElement about which to set the stagger element indicator. 
     // 
     // value: 
     //  Set this value to true if element is the stagger element; otherwise set it to 
     //  false. 
     public static void SetIsStaggerElement(UIElement element, System.Boolean value) 
     { 

     } 
    } 
} 
+0

回答はありませんか? –

答えて

1

実はあなたはW10クリエーターアップデートでそれを達成することができます。 this blog postを見てください私はちょうどon Twitterを見つけました。

+0

ありがとうございます。私はあなたの返信を可能な他の返信に回答するつもりはありませんが、新しい回答が来ていない場合は答えとしてマークします –

+1

しかし、既に答えられた質問に対しても新しい回答を追加することは可能です。 –

+0

私はそれを知らなかった。答えは –

関連する問題