如何进行侧栏转换? [英] How to make the sidebar transition?

查看:64
本文介绍了如何进行侧栏转换?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的splitview,其宽度为4px,表示spiltview中的所选项目。



  &NBSP; < Rectangle Horizo​​ntalAlignment =" Left" VerticalAlignment =" Top" 

  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP;宽度=" 4英寸高度= QUOT; 48英寸;保证金=< 1,0"

  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP;   Fill =" {ThemeResource SystemAccentColor}" Grid.Row =" 2"

  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP;   Visibility =" {x:Bind btnHome.IsChecked,Mode = OneWay}" />

zh
现在我打开/关闭了多个矩形取决于是否选中了复选框!但相反,我希望我的代码中有一个矩形,它应该从之前的位置过渡到用户点击的位置。

I have a simple splitview that has a rectangle of width 4px that indicates the selected item in the spiltview.

    <Rectangle HorizontalAlignment="Left" VerticalAlignment="Top" 
                               Width="4" Height="48" Margin="1,0"
                               Fill="{ThemeResource SystemAccentColor}" Grid.Row="2"
                               Visibility="{x:Bind btnHome.IsChecked, Mode=OneWay}"/>

Right now I've multiple rectangles turned on/off depending whether the checkbox is selected or not! But instead, I want a single rectangle in my code that should transition from the place where it previously was to place where the user has clicked.

推荐答案

你好D12UWP,

Hi D12UWP,

根据你的问题与UWP有关,我会把线程移到  开发通用Windows应用论坛以获得合适的支持。

According to your question is more related to UWP, I will move the thread to Developing Universal Windows apps forum for suitable support.

Visual C#讨论并询问C#编程语言,IDE,库,示例和工具。如果您有一些语法或代码错误,请随时与我们联系。我们会尽力为您提供解决方案。

The Visual C# discuss and ask the C# programming language, IDE, libraries, samples and tools . If you have some grammar or code errors, please feel free to contact us. We will try our best to give you a solution .

最好的问候,

feih-7

这篇关于如何进行侧栏转换?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆