I just wanted to know that is there any control like treeview in WinRT XAML Toolkit for WindowsPhone 8.0
The TreeView doesn't conform to the design UI pattern used by the phone. You should rethink the UI so it won't require a treeview. (e.g. have a look at LongListSelector).
(... if you really must though there are some implementations like this one)
Related
This is a bit of a continuation to How could one to merge resource dictionaries either dynamically or in compile time? (or to .NET MAUI: can we also have platform-specific XAML?).
I was reading https://learn.microsoft.com/en-us/windows/apps/design/style/xaml-theme-resources#the-xaml-type-ramp to see about Fluent design guidelines. Then I thought about applying them to Maui. Using "the technique of merge dictionaries" I thought that maybe it's possible to take Windows native XAML from https://github.com/microsoft/microsoft-ui-xaml/blob/cb181acede22577c59c5dc250361d3340252f4e9/dev/CommonStyles/TextBlock_themeresources.xaml#L21 and put that to Windows only XAML.
But of course that does not work like that, since eventually the Maui XAML compiler and Maui application load the XAML and they do not recognize that. Even if it would involve only Windows platform.
But I wonder if someone knows to tell if it is possible (or not) use Windows native XAML like that?
I suspect the answer is similar to Can I use existing WinUI3 controls in MAUI project?, but I'll ask explicitly in any case.
No; that wouldn't make sense:
WIndows XAML represents WinUI 3 controls (part of Windows App SDK), and their properties. Many properties are specific to Windows.
Maui XAML has its own cross-platform controls. These are designed to be easily mapped to native controls on different platforms.
This is sort-of-like asking if iOS APIs can be used on Android. Not compatible.
Though the differences are not as extreme as between iOS and Android; see next section.
OTOH, there are strong similarities in some features between all XAMLs (WPF, Xamarin.Forms/Maui, Windows): XAML Standard; XAML dialect alignment.
That doc explains the situation; Microsoft did not succeed in making a "common subset" that all XAMLs would support.
But they did identify differences, and have made a few additions here and there to increase similarity.
I´m wondering if there´s a way to implement the Panorama Control from Windows phone 8 into Microsofts new universal Windows platform. The look and feel of the Panorama Control is great and I really can´t figure out why Microsoft didn´t implement this Control into UWP.
Actually I´m new to UWP (Coded WinForms Projects, only) and I´m looking for some layouting Standards which can help me to create applications for multiple devices.
In UWP you can use Hub or Pivot controls
Take a look at Navigation design basics for UWP apps
I want to design my xaml user control in metro style and want to use controls like tiles etc which are missing from usual XAML toolbox. How do I use these controls ? Are there any packages or library which allows us with modern UI metro controls to be directly used with XAML ?
you cannot use native WinRT visual components in a WPF project. You will have to rely on custom controls/styles. You can do it by yourself or you can use some third party librairies like Open Source Modern UI for WPF or Materiel Design in XML or use commercial components set like DevExpress
I was wondering how Mono draws its controls ? I'm thinking of using it for a cross platform program but I can't find any comparisons of what it looks like on each platform (the lack of media on their official website is also concerning). I may also want to create my own controls with my own drawing functions so I was wondering if it does something like Qt in that it handles all it's own drawing so it looks the same across platforms.
All Mono Winforms control drawing is done by Mono in C# using System.Drawing. Controls look like Win32 classic on all platforms.
Some screenshots are available on the screenshots page:
http://mono-project.com/Screenshots
Note you'll want to scroll down for Winforms.
Im authoring some Windows 8 Metro template (custom) controls and there doesnt seem to me any LayoutTransform properties on anything.
this is a real pain, as I want to rotate some text 90 desgrees, but the grid is sizing to the size of the text before the rotation.
Does anyone have an idea on how to fix this without writing lots of hacks ?
Dean
I modified the Silverlight toolkit version and published it here
Layout transform in Windows 8 XAML
LayoutTransform was gone in Silverlight too. (IMHO) I guess maybe it was usually overused or abused in WPF causing performance issues, so for better perception of the framework - it was never added to Silverlight and by extension - to WinRT.
There seems to be a workaround for that in the Silverlight Toolkit that should be easy to port - check the LayoutTransformer control. I have never used it, but it sounds like what you need.
*Edit 2017-04-24
There's a LayoutTransformControl in WinRT XAML Toolkit you could use.