Xamarin FontImageSource Glyph not showing up - xamarin

I am trying to add a font icon using the following code:
<Image>
<Image.Source>
<FontImageSource
FontFamily="{OnPlatform iOS=Ionicons,
Android=ionicons.ttf#}"
Glyph=""
Size="44"
Color="Red" />
</Image.Source>
</Image>
which I found on the official Microsoft Docs. However, the icon doesn't show up on my Android phone, instead I get this (symbol not found placeholder):

You miss a "#" after Android=ionicons.ttf :
<Image>
<Image.Source>
<FontImageSource
FontFamily="{OnPlatform iOS=Ionicons,Android=ionicons.ttf#}"
Glyph=""
Size="44"
Color="Red" />
</Image.Source>
</Image>
I don't think there is a icon font named f37f in the ionicons

Related

How to show a thridprty software installation needed as a info while doing installation

I created an msi using wix installer but for this software to work we need to install another software. SO I want user to show a message as a dialog so that they will be aware of dependency package installation.
Once user click ok in this dialog background installation should progress
For this I created a custom dialog and called form my Produt.wxs, but it is not acting as information radiator but takes control of installation.
How can I spawn a information radiator after showing the welcome screen so once user click ok the dialog should go and next page of licence agreement should show.
Product.wxs
<Product Id="*" Name="Mentor PC" Language="1033" Version="1.0.0.0" Manufacturer="Waygate Technologies" UpgradeCode="303D1BF2-E4C1-44A3-9BBC-85D61CE0F7B7">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Manufacturer="Waygate Technologies" Description="Version 1.0" Comments="(C) 2020 Technologies" Platform="x64"/>
<MajorUpgrade AllowDowngrades="yes" Schedule="afterInstallValidate" />
<MediaTemplate EmbedCab="yes" />
<UIRef Id="SetupDialogUI" />
<Binary Id="bgPic" SourceFile="$(env.installer_icons_dir)/Technologies-dialog.png"/>
SetupDialog.wxs
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<UI Id="SetupDialogUI">
<Property Id="Ok">OKbtn</Property>
<Binary Id="OKbtn" SourceFile="$(env.installer_icons_dir)/OKbtn.bmp"/>
<Dialog Id="SetupDialog" Width="400" Height="300" Title="Waygate Technologies">
<Control Id="background" Type="Bitmap" Text="bgPic" Height="300" Width="400" X="0" Y="0" TabSkip="no" />
<Control Id="introText" Type="Text" X="130" Y="50" Width="350" Height="22" Transparent="yes" Text="{\TahomaHeader}Welcome to Metro App setup." />
<Control Id="explanationText" X="130" Y="100" NoWrap="no" RightAligned="no" Transparent="yes" Type="Text" Width="250" Height="100" Text="{\TahomaNormal}To continue with the setup click on the Install button. If you choose not to install this application, click on the Cancel button to exit." />
<Control Id="installButton" Type="PushButton" Text="[Ok]" Height="40" Width="100" X="170" Y="250" Bitmap="yes">
<Publish Event="EndDialog" Value="Return">1</Publish>
</Control>
</Dialog>
</UI>
<InstallUISequence>
<Show Dialog="SetupDialog" Before="ExecuteAction" />
</InstallUISequence>
Otherthan than "SetupDialog.wxs" I donty have any dialog files, its use default WIX provided
If you have a dependent install requirement then you'll need to chain your installs instead of embedding them. One of the limits of Windows installer is that only one install can be running at any given time in the ExecuteSequence. Also, have you considered your end user running your install silently? How would that be handled with dialogs?
To chain your installs you'll need to build a bootstrapper (setup.exe). Take a look at WiX Burn. Focus on the Chaining part.

Packaged & Installed UWP App Not In Start Menu

I generated the app package for my UWP project via sideload and installed it with the Powershell script that was made. Although the app installed and a folder was made in WindowsApps I cannot launch the app because it is not in the Start Menu. Any ideas on how to fix this?
Edit:
Applications tag in WAP Package Manifest:
<Applications>
<Application Id="App"
Executable="$targetnametoken$.exe"
EntryPoint="$targetentrypoint$">
<uap:VisualElements
DisplayName="WorksPackage2"
Description="Package"
BackgroundColor="transparent"
Square150x150Logo="Images\Square150x150Logo.png"
Square44x44Logo="Images\Square44x44Logo.png"
AppListEntry="none">
<uap:DefaultTile Wide310x150Logo="Images\Wide310x150Logo.png" />
<uap:SplashScreen Image="Images\SplashScreen.png" />
</uap:VisualElements>
<Extensions>
<uap:Extension Category="windows.appService">
<uap:AppService Name="iTunesConnection" />
</uap:Extension>
<desktop:Extension
xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10"
Category="windows.fullTrustProcess"
Executable="iTunesConsole\iTunesConsole.exe">
</desktop:Extension>
</Extensions>
</Application>
Applications tag in UWP Manifest:
<Applications>
<Application Id="App"
Executable="$targetnametoken$.exe"
EntryPoint="Works.App">
<uap:VisualElements
DisplayName="Works"
Square150x150Logo="Assets\Square150x150Logo.png"
Square44x44Logo="Assets\Square44x44Logo.png"
Description="Works"
BackgroundColor="transparent">
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"/>
<uap:SplashScreen Image="Assets\SplashScreen.png" />
</uap:VisualElements>
<Extensions>
<uap3:Extension Category="windows.appExtension">
<uap3:AppExtension Name="microsoft.gameBarUIExtension"
Id="YourUniqueIdHere"
DisplayName="iTunes Controller"
Description="desc"
PublicFolder="GameBar">
<uap3:Properties>
<GameBarWidget Type="Standard">
<HomeMenuVisible>true</HomeMenuVisible>
<PinningSupported>true</PinningSupported>
<Window>
<Size>
<Height>300</Height>
<Width>400</Width>
<MinHeight>150</MinHeight>
<MinWidth>200</MinWidth>
<MaxHeight>1000</MaxHeight>
<MaxWidth>1000</MaxWidth>
</Size>
<ResizeSupported>
<Horizontal>true</Horizontal>
<Vertical>true</Vertical>
</ResizeSupported>
</Window>
</GameBarWidget>
</uap3:Properties>
</uap3:AppExtension>
</uap3:Extension>
</Extensions>
</Application>
The problem is that you have:
AppListEntry="none"
which says "please don't add an entry to the Start menu."

sccm windows 10 task bar customisation issues

I am having issues configuring the windows 10 task bar during the osd stage in sccm. I want to remove whats there and add chrome and file explorer.
I have also got a custom start menu config. The start menu config works, its applied during the task sequence. using this command:
powershell.exe Import-StartLayout -LayoutPath .\StartMenu.xml -MountPath C:\
According to the MS docs you can add the taskbar config to the same file, when I do this is get an error sating its not a valid layout file.
Here is the file:
<?xml version="1.0" encoding="utf-8"?>
<LayoutModificationTemplate
xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification"
xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout"
xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout"
xmlns:taskbar="http://schemas.microsoft.com/Start/2014/TaskbarLayout"
Version="1">
<LayoutOptions StartTileGroupCellWidth="6" />
<DefaultLayoutOverride>
<StartLayoutCollection>
<defaultlayout:StartLayout GroupCellWidth="6">
<start:Group Name="Apps">
<start:DesktopApplicationTile Size="2x2" Column="0" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Google Chrome.lnk" />
<start:DesktopApplicationTile Size="2x2" Column="2" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\VIP Access.lnk" />
<start:DesktopApplicationTile Size="2x2" Column="4" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Citrix Receiver.lnk" />
</start:Group>
<start:Group Name="Office">
<start:DesktopApplicationTile Size="2x2" Column="4" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\PowerPoint 2016.lnk" />
<start:DesktopApplicationTile Size="2x2" Column="2" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Excel 2016.lnk" />
<start:DesktopApplicationTile Size="2x2" Column="0" Row="0" DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Word 2016.lnk" />
</start:Group>
</defaultlayout:StartLayout>
</StartLayoutCollection>
</DefaultLayoutOverride>
<CustomTaskbarLayoutCollection>
<defaultlayout:TaskbarLayout>
<taskbar:TaskbarPinList PinListPlacement="Replace">
<taskbar:DesktopApp DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Google Chrome.lnk" />
</taskbar:TaskbarPinList>
</defaultlayout:TaskbarLayout>
</CustomTaskbarLayoutCollection>
</LayoutModificationTemplate>
I just cant see whats wrong with it, does anyone see anything?
Quick comparison with our LayoutModification.xml shows that we have it like this
<CustomTaskbarLayoutCollection PinListPlacement="Replace">
<defaultlayout:TaskbarLayout>
<taskbar:TaskbarPinList>
<taskbar:DesktopApp DesktopApplicationLinkPath="%APPDATA%\Microsoft\Windows\Start Menu\Programs\System Tools\File Explorer.lnk" />
</taskbar:TaskbarPinList>
</defaultlayout:TaskbarLayout>
</CustomTaskbarLayoutCollection>
So we got the PinListPlacement in a different place. Maybe that is what puts the cmdlet off.
However I also noticed that we do not use the Import-StartLayout but copy the xml directly to "C:\Users\Default\AppData\Local\Microsoft\Windows\Shell\LayoutModification.xml". Unfortunately I do not recall why we decided for this method. Seeing as Microsoft constantly changed stuff about those xmls, made it possible that exported menus do not work when imported again unchanged and introduced new features with every new release it could be that we just did it because the cmdlets do not work as intended, so maybe try that as well if the change does not work out.

Cordova config.xml getting override

I set up a basic Cordova project, and whenever I run cordova build, the config.xml file in Windows gets re-written to defaults, I added the following lines to change the icon of my project. When I run the project I can see that my icon have been changed but when I go to the bld/Debug/platforms/windows/config.xml it is in the default format and I cannot see the lines that I have added. So i get the default cordova icon instead. So I cannot deploy the app to the windows store. Very strange. Is anyone got any idea about this.
<platform name="windows">
<icon src="res/icons/windows/logo.png" width="150" height="150" />
<icon src="res/icons/windows/smalllogo.png" width="30" height="30" />
<icon src="res/icons/windows/storelogo.png" width="50" height="50" />
</platform>
Thank you
Do not surround it with platform and try it like this. It should work.
<icon src="res/icons/windows/logo.png" platform="windows8" width="150" height="150" />
<icon src="res/icons/windows/smalllogo.png" platform="windows8" width="30" height="30" />
<icon src="res/icons/windows/storelogo.png" platform="windows8" width="50" height="50" />

Display image using ireport and oracle xe and apex

I am using ireport 5.1 to build my report, now I am trying to display an image in my pdf report, but it is not showing up.
I copied the jpg file to the jasper directory where I have my ireport compiled file ( jrxml ),
I am referencing the jpg file in my report as :
XML CODE :
<image>
<reportElement uuid="generated_uuid" x="2" y="4" width="119" height="50"/>
<imageExpression><![CDATA["logovinhedo.jpg"]]></imageExpression>
</image>
but it doesn't work
Please try the below code snippet:
Store the full image path in a parameter IMAGE_PATH
Apply the parameter instead of image file name.
<image>
<reportElement x="2" y="4" width="119" height="50" />
<imageExpression class="java.lang.String">!CDATA[$P{IMAGE_PATH}]]> </imageExpression>
</image>

Resources