Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xaml Windows 8.1上以按钮作为标题的集线器控件语义缩放_Xaml_C# 4.0_Winrt Xaml_Windows 8.1 - Fatal编程技术网

Xaml Windows 8.1上以按钮作为标题的集线器控件语义缩放

Xaml Windows 8.1上以按钮作为标题的集线器控件语义缩放,xaml,c#-4.0,winrt-xaml,windows-8.1,Xaml,C# 4.0,Winrt Xaml,Windows 8.1,我有一个按钮,其内容作为中心控件中中心部分的标题。现在我想为这个控件启用语义缩放。所以我已经从下载了样本。但是因为我使用了一个按钮作为标题,所以无法应用示例中的代码 那么,如何使用按钮作为标题并使用语义缩放呢?不,当然可以 <SemanticZoom> <SemanticZoom.ZoomedInView> <Hub> <Hub.Header> <Button&g

我有一个按钮,其内容作为中心控件中中心部分的标题。现在我想为这个控件启用语义缩放。所以我已经从下载了样本。但是因为我使用了一个按钮作为标题,所以无法应用示例中的代码

那么,如何使用按钮作为标题并使用语义缩放呢?

不,当然可以

<SemanticZoom>
    <SemanticZoom.ZoomedInView>
        <Hub>
            <Hub.Header>
                <Button>
                    Hello World
                </Button>
            </Hub.Header>
        </Hub>
    </SemanticZoom.ZoomedInView>
    <SemanticZoom.ZoomedOutView>
        <GridView />
    </SemanticZoom.ZoomedOutView>
</SemanticZoom>

你好,世界
标题模板没有任何区别


祝你好运

对。它正在工作。但如果我在zoomoutview中单击某个项目,则中心部分不会指向所选项目。那么我该怎么做呢?如果(e.IsSourceZoomedInView==false){e.DestinationItem=e.SourceItem.Item;}