MenuFlyoutSeparator doesn't appear in Windows Phone 8.1 - xaml

a separator line doesn't appear between items, isn't it supported in windows phone version, or I'm doing something wrong?
<MenuFlyout>
<MenuFlyoutItem Text="Like"/>
<MenuFlyoutItem Text="Report"/>
<MenuFlyoutSeparator/>
<MenuFlyoutItem Text="Share"/>
</MenuFlyout>

Yes, in Windows Phone 8.1 App, MenuFlyoutSeparator can't appear.
This is MSDN Tip: In a Windows Phone Store app, MenuFlyoutSeparator is ignored if present in your XAML, and can be removed. Here is Url.

Related

How do I force the light theme for a MAUI Windows application?

I would like to force the theme for a MAUI Windows app, for example for screenshot purposes. The Shell and Application Elements don't support the RequestedTheme property that can be used with WinUI.
You can force the theme by setting the RequestedTheme property in the App.xaml in the Platforms\Windows subfolder in the project:
<maui:MauiWinUIApplication
x:Class="NetMaui.WinUI.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:maui="using:Microsoft.Maui"
RequestedTheme="Light"
xmlns:local="using:NetMaui.WinUI">
</maui:MauiWinUIApplication>

I am not able to see custom icon on windows task bar but shows default one

I created installer using wix and able to see the icon on desktop shortcut and control panel, but few of our machines its not showing icon on task bar. Taskbar its showing default windows exe ICOn.
How can I resolve it, bcz in our development machines I am able to see custome ICon on taskbar but testing machine shows default one
<Icon Id="GELogo.ico" SourceFile="$(env.installer_icons_dir)\GELogo.ico"/>
<Property Id="ARPPRODUCTICON" Value="GELogo.ico" />
Even shortcutID also I added
I ran into a similar problem where the icon was displayed on some computers but not others. The fix was to change the value of the Icon Id so that it ends with .exe instead of with .ico.
<Icon Id="GELogo.exe" SourceFile="$(env.installer_icons_dir)\GELogo.ico"/>
<Property Id="ARPPRODUCTICON" Value="GELogo.exe" />

Error: Cannot create instance of type 'Windows.UI.Xaml.Controls.Maps.MapControl' on Windows 10 Desktop

I receive this error when trying to deploy my app to my desktop, but it works fine when deploying to Windows 10 phones. Any ideas on how to fix this?
The namespace:
xmlns:Maps="using:Windows.UI.Xaml.Controls.Maps"
XAML usage:
<Grid>
<Maps:MapControl />
</Grid>
I don't have any other logic just trying to display the map for now.
EDIT:
Turns out the MapControl sample from the Windows Universal Samples Github works on desktops (and phones) other than the desktops at my work.
Thanks to Andrew Pilley for pointing me to the Github.
Still looking for a reason this would not work on some Windows 10 desktops? The desktops are running and the project is targeting build 10240.
Do you have the Bing Maps SDK ?
VS Gallery Ref : https://visualstudiogallery.msdn.microsoft.com/224eb93a-ebc4-46ba-9be7-90ee777ad9e1

Button.Flyout property not available

I'm developing a wp app, IDE: VisualStudio 2013
when I try to use flyout in button. button.flyout is not listed out in XAML page
Ref:http://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn308515.aspx
<Button Name="btnFly" Content="img">
<Button.Flyout>
</Button.Flyout>
</Button>
Button.Flyout is not listed when I put.[dot]
You have create Windows Phone 8.1 app that uses Windows Runtime not the Silverlight.

Unexpected top margin/padding/gap on WP7 app page when running on WP8 device

I'm having an issue when running an app (my first), designed for Windows Phone 7, on my Windows Phone 8 device (a HTC Windows Phone 8X, for some product placement).
When debugging in the emulator (WP7) all is fine, but once I test drive the app on my device (WP8), a mysterious gap appears at the top of each page.
An example... (I can't post images yet, apparently)
I haven't set/changed any margin/padding properties for any of the pages or controls.
<phone:PhoneApplicationPage
x:Class="MyProject.SettingsPage"
xmlns:Controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="Portrait" Orientation="Portrait"
mc:Ignorable="d"
shell:SystemTray.IsVisible="True">
<Grid x:Name="LayoutRoot">
<Controls:Pivot Title="SETTINGS">
<Controls:PivotItem Header="general">
...
</Controls:PivotItem>
</Controls:Pivot>
</Grid>
</phone:PhoneApplicationPage>
Any idea why this is happening and how it can be solved?Is this a XAML issue? Should I be targeting WP7 and WP8 separately?
This is all intended behavior, this is because Windows Phone 7 only supports the resolution 480x800. Some Windows Phone 8 phones will have the same aspect ratio as this, giving no bar at the top, but some, like the HTC 8X does not, so it will get a black bar there. This is all described in the documentation.
The solution is to convert the app to a WP8 app and that black bar at the top will be gone. But the app will no longer be compatible with WP7.