Hey I am creating bottom app bar and adding 3, app bar button to it like shown below. One use inbuilt icon and the other two uses Bitmap icons
<AppBarButton>
<AppBarButton.Icon>
<BitmapIcon UriSource="ms-appx:///Assets/Like.png" Height="20" Width="20"/>
</AppBarButton.Icon>
AppBarButton with bitmap icons display correctly in the design view, that is enclosed within the eclipse of appbar button. But when I deploy it on my phone the app bar button looks like below (two on the right)
https://s24.postimg.org/q3yg74gx1/wp_ss_20150309_0002.jpg
What is wron with it
I think you may have forgotten about appropriate padding - more information at MSDN:
I recommend you to find default Windows Phone icons in Microsoft SDKs folder on your PC. In my case it's C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.1\Icons\Light. There you can check how to correctly prepare icons for your application bar.
They must be 76 x 76 PNG images (including padding) with alpha channel.
Related
Hello I am developing a smart device application with .net framework 3.5 to windows ce mobile.
I added icon to my project from Properties > Application > icon and manifest.
My icon is a triangle shape and it needs to has transparent background. I added my icon from properties with transparent background so in mobile device application will have a triangle icon for shortcut.
when I create a cab file for my smart device, it takes icon where I defined from Properties > Application > icon and manifest. But my problem is after installing the application by cab file, it creates square shortcut without transparent background (a triangle and white places).
I need my application shotrcut icon to be seen without white places on smart device.
So I think maybe there is a way to set icon while creating cab file so that it does not take the exe's icon and changes it to a squared icon with white places.
Is there any way to solve my problem?
my icon with transparent bg
the icon which cab file produces
I assuming you are talking about a Windows CE (5/6) or Windows Mobile (5/6) project. So we are talking about "Compact Framework 3.5".
AFAIK only ico files are supported for application icons. That is clear from the file open dialog for Properties > Application > icon and manifest:
Your png files are not supported as application icon with transparent background.
If the icon is edited as resource inside VS2008, there is a special 'transparent' color:
This works fine for the Windows Mobile Start menu:
The icon shown for a cab file is defined by the registry and the same for ALL cab files:
What icon sizes should I use for the app bar/command bar?
I couldn't find something in Guidelines for tile and icon assets or in UWP App Visual Assets.
Other names: navigation bar (iOS), app bar/action bar (Android), toolbar (Xamarin.Forms)
Image size
The default icon size should be 20 pixels for app bar image at 100% scaling, but you should also provide additional image assets to ensure it looks great on all screens:
appbaricon.scale-100.png - 20 px
appbaricon.scale-125.png - 25 px
appbaricon.scale-150.png - 30 px
appbaricon.scale-200.png - 40 px
appbaricon.scale-400.png - 80 px
Source
I have created a simple XAML page with the CommandBar control and an AppBarButton with a sample image:
<CommandBar>
<AppBarButton>
<AppBarButton.Icon>
<BitmapIcon UriSource="/Assets/Sample.png" />
</AppBarButton.Icon>
</AppBarButton>
</CommandBar>
I have run the app with debugger attached, found the BitmapIcon in the Live Visual Tree in Visual Studio and opened its Live Property Explorer:
As you can see, the height and width of the image is set to 20 device independent pixels. For different display scaling it is the same, but rendered with the appropriate multiple on the screen.
I have also confirmed that this size exactly matches the Segoe UI Symbol font-based icons that are built-in into the AppBarButton control.
I recommend making the icon image without any margin so that its size matches the default image as well as possible
Note: This question is only about AppBarButton icons.
In writing a UWP app that runs on all form factors, I'd like to include all necessary variations of AppBarButton icons.
From what I've read so far, it seems that I need 24x24 icons in each of the five scale factors, 100%, 125%, 150%, 200%, and 400%. In other words, 24x24, 30x30, 36x36, 48x48, 96x96.
Is this correct?
Also, how should these be named so that the system correctly picks the right variant given the base name?
Edit: I've read elsewhere that only one size is needed, and that Windows UWP renders the icon in device-independent units (i.e. scales it appropriately.)
By comparison, iOS allows multiple images to be included with the #2x and #3x suffixes, and Android allows images to be placed in special subdirectories, e.g dir-hdpi, dir-mdpi, where dir is the base directory name. So it seems that UWP does not have such a system, and only a single icon is necessary. Is this revised understanding correct?
You are right: UWP apps render the size of the icon depending on the device. But you can use the icons using Segoe MDL2 in your appbar buttons. There are many icons prepared to be scaled automatically. I use this technique in all my UWP apps without problems.
https://msdn.microsoft.com/en-us/library/windows/apps/jj841126.aspx
If you are using a png image for your icon, I recommend you to set the size of this image to 48x48 pixels, which is the default size for appbar image icons. The UWP system will then automatically scale your icons without rendering problems.
We use Icon Overlays to show a state to the users. All but one of our icons are shown sharp.
This unsharpness only happens when we set the explorer to the large icon view.
We can't figure out why this happens.
We tried different tools to create th icon file.
This is the result :
And we started from this image:
You can find the source files (png's) and the ico file here
Does anyone knows how to fix this or what is causing this?
It looks like a specific of Windows resize engine.
In large icons mode shell uses 48x48x32 icon. I created icon with grid:
And shell draws this icon without any interpolation:
And it looks like there is no solution of your problem.
I cannot figure out how to change the title bar icon (the icon in the furthest top left corner of the application) in Adobe AIR. It is currently displaying the default 'Adobe AIR' red icon.
I have been able to change it in the system tray, however.
Does the following help?
http://groups.google.com/group/chennai-flex-user-group/browse_thread/thread/cffb9ab56450c28e
The first link shows how to change the Taskbar Icon, the second shows the application icon I believe used on the desktop. I am going to recompile and install the application and see if it works.
Edit: Yea, the one that changes the Desktop Icon also changes the Title Bar icon. It's in the app.xml file.