Where is the GridSplitter in WinRT?

I am working on an application to try to deal with Windows 8. I want to add a GridSplitter to the XAML form, but the control does not seem to be available.

XAML I have

 <Page x:Class="TweetiCon.BlankPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:TweetiCon"> <Grid Background="{StaticResource ApplicationPageBackgroundBrush}"> <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition Width="auto"/> <ColumnDefinition/> </Grid.ColumnDefinitions> <GridSplitter Grid.Column="1" Orientation="Vertical"/> </Grid> </Page> 

but the GridSpliter element causes the application to not get complicated because

The name GridSplitter does not exist in the namespace http://schemas.microsoft.com/winfx/2006/xaml/presentation

but I'm sure it is. That it is in regular WPF applications.

What am I doing wrong?

+4
source share
2 answers

From this blog post

Windows Phone or WinRT does not have GridSplitter. I checked what MinWidth / MaxWidth (on Windows Phone and WinRT) does in the column with width = "Auto" with variable-sized content, and it seemed that MinWidth really worked to keep the column of the given size - the column was stretched by MaxWidth, although the documentation says: "The MinWidth value takes precedence over the MaxWidth value, which in turn takes precedence over the Width value."

The "documentation" in question refers to this MSDN page.

+1
source

RE: Missing GridSplitter on Windows Phone or in WinRT

In fact, but not so far ...
If you are looking for GridSplitter, you can look at WinRT.Xaml.Toolkit on CodePlex.

http://winrtxamltoolkit.codeplex.com/

and find the CustomGridSplitter control.

I tested the code in WinRT [in RP and RTM] versions, and it did the job.
You may try:)

+3
source

Source: https://habr.com/ru/post/1410993/


All Articles