[Q] windows phone 8 pushpin! - Design, Prototyping, UI, Graphics

HI!! I need to replace the shape of my pushpins by an image! this is my xaml code
<maps:Map x:Name="myMap" Margin="-34,0,-36,10" WatermarkMode="On" LandmarksEnabled="True" ColorMode="Dark">
<toolkit:MapExtensions.Children>
<toolkit:MapItemsControl Name="PointItems">
<toolkit:MapItemsControl.ItemTemplate>
<DataTemplate>
<toolkitushpin x:Name="mypus" GeoCoordinate="{Binding Coordinate}" Content="{Binding Info}" BorderBrush="Black" Height="119" FontWeight="Bold" Background="YellowGreen" Foreground="Transparent" Width="29" FontSize="1" Tap="mypus_Tap" BorderThickness="2" Margin="2" />
</DataTemplate>
</toolkit:MapItemsControl.ItemTemplate>
</toolkit:MapItemsControl>
</toolkit:MapExtensions.Children>
</maps:Map>
help me please!
.

Windows Phone development goes here: http://forum.xda-developers.com/forumdisplay.php?f=2200

Related

How to remove Globe and Youtube link?

Changed the Rom in my Blackstone from dutch to standard English version.
(RUU_BlackStone_HTC_WWE_1.14.405.0_Radio_52.49a.25.26_1.09.25.14b)
In de the Dutch version I edited the file \Windows\Opera9\Opera6.adr.
After that in the Internet widget the Globe and Youtube link were gone.
After flashing with the English rom I did the same.
But ... the Globe and Youtube link are still there.
I just want a page of bookmarks with no globe.
But just removing the YouTube link is OK, because I never use it.
Who can tell me how to remove the Globe and/or Youtube link?
Ton V
For no Youtube bookmark:
http://forum.xda-developers.com/showthread.php?t=459885
For no globe:
http://forum.xda-developers.com/showthread.php?t=406681
Hope that helped.
to remove the youtube link delete it from the favourites from within opera....
aabye said:
no Youtube bookmark: http://forum.xda-developers.com/showthread.php?t=459885QUOTE]
Thx there were 2 cab-files.
I will compare them to learn where the youtube.lnk is hiding.
Ton V
Click to expand...
Click to collapse
winwiz said:
to remove the youtube link delete it from the favourites from within opera....
Click to expand...
Click to collapse
That is the first thing I tried. I deleted all the bookmarks
But the youtube.link stays on the Internet tab.
Ton V
aabye said:
http://forum.xda-developers.com/showthread.php?t=459885
Click to expand...
Click to collapse
With the help of this link I learned the following about the Internet tab.
In the English version the file 27c65cbd_manila contains xml-commands for the Internet tab.
Some xml-sections were deleted.
Now the Internet tab has no Globe and no Youtube link.
There are now 8 bookmarks visible on the screen.
Ton V
<?xml version="1.0" encoding="utf-16"?>
<InternetPortal>
<IncludeUserFavorites>True</IncludeUserFavorites>
</InternetPortal>
hmmm. related to this question, is it possible to put Google Maps on the Internet Page then?
NLBeev said:
With the help of this link I learned the following about the Internet tab.
In the English version the file 27c65cbd_manila contains xml-commands for the Internet tab.
Some xml-sections were deleted.
Now the Internet tab has no Globe and no Youtube link.
There are now 8 bookmarks visible on the screen.
Ton V
<?xml version="1.0" encoding="utf-16"?>
<InternetPortal>
<IncludeUserFavorites>True</IncludeUserFavorites>
</InternetPortal>
Click to expand...
Click to collapse
Could I ask what you altered to get rid of the Youtube link? I've seen the thread you link to before but all that seems to happen whatever I try is I get a completely empty internet tab until I return to the original file in ROM.
Prof. Yaffle said:
Could I ask what you altered to get rid of the Youtube link? I've seen the thread you link to before but all that seems to happen whatever I try is I get a completely empty internet tab until I return to the original file in ROM.
Click to expand...
Click to collapse
You have tried spelling "Operator" in the 27c65zbd_manila file with two Os, like this?
<OOperatorLinks>
<Link
Text="YouTube"
Executable="\windows\youtube.exe"
ImagePath="\Windows\HTC\Assets\Images\InternetPortal\youtube.qtc" />
</OOperatorLinks>
I have never had a problem with this...but not saying it isn't a problem with your particular ROM/Manila.
You could also try deleting all of the text between "OperatorLinks", like so:
<OperatorLinks>
</OperatorLinks>
Not sure if this works on the HD, though...
I've tried both of those before but just tried both again just in case. Still the same.
Not to worry, it's not a major annoyance.
Thanks for your help anyway.
install the attached cab to remove YouTube link.
I've no idea what's different in the file in your cab (I can only see x's instead of O's) but it worked a treat! Thanks.
Prof. Yaffle said:
Could I ask what you altered to get rid of the Youtube link?
Click to expand...
Click to collapse
The characters in red were deleted from my file: \Windows\27c65zbd_manila
I found my user favorites listed in the file \Windows\Opera9\Opera6\adr contains my favorites (urls).
<?xml version="1.0" encoding="utf-16"?>
<InternetPortal>
<IncludeUserFavorites>True</IncludeUserFavorites>
<Banner DefaultImagePath="\Windows\HTC\Assets\Images\InternetPortal\banner.qtc"
SelectedImagePath="\Windows\HTC\Assets\Images\InternetPortal\banner_selected.qtc"
Width="480"
Height="215" />
<OperatorLinks>
<Link
Text="YouTube"
Executable="\windows\youtube.exe"
ImagePath="\Windows\HTC\Assets\Images\InternetPortal\youtube.qtc" />
</OperatorLinks>
</InternetPortal>
Very odd. I wanted to keep the globe but get rid of the Youtube link. No matter what combination of removing / modifying the Operatorlink section I'd tried it just came up as a blank screen with the file re-marked as a Read Only / System file. ammar's cab file worked perfectly though.
I copy the file "27c65zbd_manila" to Storage Card. Use PC to uncheck the readonly atribute and then use Notepad to add the following "x"s in the file.
<xOperatorLinks>
<Link
Text="YouTube"
Executable="\windows\youtube.exe"
ImagePath="\Windows\HTC\Assets\Images\InternetPort al\youtube.qtc" />
</xOperatorLinks>
Save it and add back the readonly attribute. Copy it back to /Windows.
It works.
cismconn said:
hmmm. related to this question, is it possible to put Google Maps on the Internet Page then?
Click to expand...
Click to collapse
Yes, I replaced the Youtube link in 27c65cbd_manila and deleted the banner (Globe)
Below you will see the changed content.
Ton V
<?xml version="1.0" encoding="utf-16"?>
<InternetPortal>
<IncludeUserFavorites>True</IncludeUserFavorites>
<OperatorLinks>
<Link
Text="Google_Maps"
Executable="\Program Files\GoogleMaps\GoogleMaps.exe"
ImagePath="\Windows\Google.JPG" />
</OperatorLinks>
</InternetPortal>
Prof. Yaffle said:
... wanted to keep the globe but get rid of the Youtube link. Operatorlink section
Click to expand...
Click to collapse
If you want the Globe than don't delete banner section!
Use Notepad to change the file on the PC
Save it and send it to the storage card of your Touch HD
Copy it with Resco Explorer to the \Windows directory.
Ton V
NLBeev said:
Yes, I replaced the Youtube link in 27c65cbd_manila and deleted the banner (Globe)
Below you will see the changed content.
Ton V
<?xml version="1.0" encoding="utf-16"?>
<InternetPortal>
<IncludeUserFavorites>True</IncludeUserFavorites>
<OperatorLinks>
<Link
Text="Google_Maps"
Executable="\Program Files\GoogleMaps\GoogleMaps.exe"
ImagePath="\Windows\Google.JPG" />
</OperatorLinks>
</InternetPortal>
Click to expand...
Click to collapse
thanks Ton.
sounds good.
will have a play with that.
Ideally I'd like google maps and the rss program on there so a "proper" internet tab.
NLBeev said:
If you want the Globe than don't delete banner section!
Use Notepad to change the file on the PC
Save it and send it to the storage card of your Touch HD
Copy it with Resco Explorer to the \Windows directory.
Ton V
Click to expand...
Click to collapse
Ammar's cab file removes the Youtube link but leaves the globe. Just how I wanted it.
I have a Singaporian ROM with a ugly operator logo instead of the globe, and that's why I want to get rid of it. So I tried to modify 27c65cbd_manila, but nothing change at all. I tried to soft-reset after modification, or also deactivate and re-activate Touch FLO in Today settings, but even though the file is modified, the internet tab doesn't change.
This is my modified file:
<?xml version="1.0" encoding="utf-16"?>
<InternetPortal>
<IncludeUserFavorites>True</IncludeUserFavorites>
<OperatorLinks>
<Link
Text="YouTube"
Executable="\windows\youtube.exe"
ImagePath="\Windows\HTC\Assets\Images\InternetPortal\youtube.qtc" />
<Link
Text="Google_Maps"
Executable="\Program Files\GoogleMaps\GoogleMaps.exe"
ImagePath="\Windows\Google.JPG" />
</OperatorLinks>
</InternetPortal>
Click to expand...
Click to collapse

Changing my internet icon into Safari Browser Banner

just played with my HTC touch HD and try to figure it out on how to change the Image Banner/Browser Icon on my Internet Tab....
check this out
http://s157.photobucket.com/albums/t57/butz007/htc%20touch%20hd/?action=view&current=safari_browser.jpg
how to do it very simple
1. Create an Icon... must be on .PNG (whatever software do you prefer will definitely do as long as the final output would be on Transparent PNG)
note: the size of the PNG icon must be on 480 by 200 pixels, 72 dpi
2. Edit the XML code, don't be afraid this won't bite you (for all the newbs and non-developers)
you could always locate the XML code on this path on your device go to Application\Manila
InternetPortal.xml and InternetPortal-en-AU.xml
copy that and edit it on your desktop computer using a Notepad
note: make sure you have a back-up copy of the original better do this than sorry
then heres the original code just look the following highlighted text this is the one you going to change
***************************
<?xml version="1.0" encoding="utf-16"?>
<InternetPortal>
<IncludeUserFavorites>True</IncludeUserFavorites>
<Banner
DefaultImagePath="\Windows\480x200.qtc"
SelectedImagePath="\Windows\480x200.qtc"
Text="Launch Gee!"
NavigateUrl="http://gee-select.starhubgee.com.sg/wap/"
Width="480"
Height="215" />
<OperatorLinks>
<Link
Text="YouTube"
Executable="\windows\youtube.exe"
ImagePath="\Windows\HTC\Assets\Images\InternetPortal\youtube.qtc" />
</OperatorLinks>
</InternetPortal>
*******************************************
the first two highlighted text where the image path and the filename of icon that you just created... OK!?
example
DefaultImagePath="\Windows\myicon.png"
SelectedImagePath="\Windows\myicon.png"
second, I'm using a Blackstone that i bought in singapore so theres starhub logo and starhub link there so I've really don't know on your devices if were both the same but i think all htc devices were all the same when it comes to firmware.. so next on my device I got a welcome text
example
Text="Launch achu chu chu etc etc...or welcome to my world!"
Third Highlighted Text is the link of your banner
Whatever Link you may think that you usually go so often using your device
NavigateUrl="http://playboy.com"
and then FINALLY
copy this the two edited xml file and overwrite it on you devices, same path ofcourse.....Application\Manila, using Total Commander
then put your created art (PNG) on the main windows folder and viola, your personalized Internet Tab.......
...............................................................................
LIKE it..LOVE it.. HATE IT.. WHATEVER!! just enjoy it! ...

[HACK] HTC Hub Theme

I just edited the images of the HTC HUB. I know this has been done before by eiting the XAP before install, but my method was after install. With this method you should be able to edit images for any installed app. The hard part is finding the app as they are not in a folder named after the app. You need a Unlocked Device & Windows Phone Device Manager. Using the file manager built into WPDM. Different apps will have they images in different folders depending on how the XAP was setup. For HTC HUB, browse to \Applications\Install\*\Install\Res\Generic\images\ and copy in the files from the zip.
* = a random Hexadecimal value (In my case, 1A0EE8C2-48B1-DF11-8A2F-00237DE2DB9E)
They will always be in the \Applications\Install\ folder.
Thank to Dinik for his Glass Icon Image
drkfngthdragnlrd said:
I just edited the images of the HTC HUB. I know this has been done before by eiting the XAP before install, but my method was after install. With this method you should be able to edit images for any installed app. The hard part is finding the app as they are not in a folder named after the app. You need a Unlocked Device & Windows Phone Device Manager. Using the file manager built into WPDM. Different apps will have they images in different folders depending on how the XAP was setup. For HTC HUB, browse to \Applications\Install\*\Install\Res\Generic\images\ and copy in the files from the zip.
* = a random Hexadecimal value (In my case, 1A0EE8C2-48B1-DF11-8A2F-00237DE2DB9E)
They will always be in the \Applications\Install\ folder.
Click to expand...
Click to collapse
you have made a touch of glass skin,nice and thanks for the info
djcedric said:
you have made a touch of glass skin,nice and thanks for the info
Click to expand...
Click to collapse
Actually, it's Dinik's glass image, not from Touch of Glass. Thanks for reminding me to make note of that in the OP.
drkfngthdragnlrd said:
Actually, it's Dinik's glass image, not from Touch of Glass. Thanks for reminding me to make note of that in the OP.
Click to expand...
Click to collapse
ok from the nice guy ,i hope you have ask it to dinik because we all know him...no problem i will made a touch of glass skin
succes.
Do you know what the boxes around each forecast are called. Id like to remove them
Edit: Its called forcast_tile if anyone is interested
drkfngthdragnlrd said:
* = a random Hexadecimal value (In my case, 1A0EE8C2-48B1-DF11-8A2F-00237DE2DB9E)
They will always be in the \Applications\Install\ folder.
Click to expand...
Click to collapse
Actualy its not a random Hexadecimal value...
Its the unique application ID that is hardcoded in the file WMAppManifest.xml in the xap of every application.
The WMAppManifest.xml for the HTC hub is this ...
Code:
<?xml version="1.0" encoding="utf-16"?>
<Deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" AppPlatformVersion="7.0" xmlns="http://schemas.microsoft.com/windowsphone/2009/deployment">
<App Author="HTC Corporation" Description="HTC Hub" Genre="apps.normal" [B][U]ProductID="{1a0ee8c2-48b1-df11-8a2f-00237de2db9e}"[/U][/B] Publisher="HTC Corporation" RuntimeType="Silverlight" Title="@AppResLib.dll,-100" Version="1.0.0.0" xmlns="">
<IconPath IsRelative="true" IsResource="false">ApplicationIcon_s.png</IconPath>
<Capabilities>
<Capability Name="ID_CAP_NETWORKING" />
<Capability Name="ID_CAP_INTEROPSERVICES" />
<Capability Name="ID_CAP_SENSORS" />
<Capability Name="ID_CAP_WEBBROWSERCOMPONENT" />
<Capability Name="ID_CAP_PUSH_NOTIFICATION" />
<Capability Name="ID_CAP_LOCATION" />
</Capabilities>
<Tasks>
<DefaultTask Name="_default" NavigationPage="MainPage.xaml" />
</Tasks>
<Tokens>
<PrimaryToken TokenID="Weather_WP7Token" TaskName="_default">
<TemplateType6>
<BackgroundImageURI IsRelative="true" IsResource="false">ApplicationIcon.png</BackgroundImageURI>
<Count>0</Count>
<Title>@AppResLib.dll,-200</Title>
</TemplateType6>
</PrimaryToken>
</Tokens>
</App>
</Deployment>
Τhe product id is in the 3rd line and is
ProductID="{1a0ee8c2-48b1-df11-8a2f-00237de2db9e}"
I know this because is use a similar method to sideload big size xaps on my phone....
colossus
colossus_r said:
Actualy its not a random Hexadecimal value...
Its the unique application ID that is hardcoded in the file WMAppManifest.xml in the xap of every application.
The WMAppManifest.xml for the HTC hub is this ...
Τhe product id is in the 3rd line and is
ProductID="{1a0ee8c2-48b1-df11-8a2f-00237de2db9e}"
I know this because is use a similar method to sideload big size xaps on my phone....
colossus
Click to expand...
Click to collapse
Thanks for the info. And how you do that ?

[Q] Adding CSC to custom ROM's

What I've Tried
Copy CSC folder to System, use this code *#272*IME* to select CSC XEU in my case, choose install and phone does a factory reset. Reset up phone and check CSC using *#1234# but CSC is still blank. How to get this to work?
+1 for this question. I hope someone help with this one.
How to change CSC
After further investigation it is the CWM recovery which stops this working you need stock recovery.
Also change SW_Configuration.xml file to reflect the csc folder
This is mine
<?xml version="1.0" encoding="UTF-8" ?>
- <SW-Configuration>
- <MobileData>
<PublicName>GT-I8150</PublicName>
<NickName />
</MobileData>
- <CustomerDataSet>
<CSCName>I8150XX</CSCName>
<CSCVersion>KL4</CSCVersion>
<NbCustomer>17</NbCustomer>
<CustomerData src="/Customer/XSK/customer.xml" />
<CustomerData src="/Customer/XEU/customer.xml" />
<CustomerData src="/Customer/XEZ/customer.xml" />
<CustomerData src="/Customer/XEO/customer.xml" />
<CustomerData src="/Customer/XEH/customer.xml" />
<CustomerData src="/Customer/XEF/customer.xml" />
<CustomerData src="/Customer/TPH/customer.xml" />
<CustomerData src="/Customer/TOP/customer.xml" />
<CustomerData src="/Customer/SMO/customer.xml" />
<CustomerData src="/Customer/SEB/customer.xml" />
<CustomerData src="/Customer/PAN/customer.xml" />
<CustomerData src="/Customer/MSR/customer.xml" />
<CustomerData src="/Customer/GBL/customer.xml" />
<CustomerData src="/Customer/CYO/customer.xml" />
<CustomerData src="/Customer/CPW/customer.xml" />
<CustomerData src="/Customer/COA/customer.xml" />
<CustomerData src="/Customer/BGL/customer.xml" />
</CustomerDataSet>
</SW-Configuration>
Hope this helps
CWM Recovery is NOT the problem!
The problem is some Custom ROM deleted the files needed to do a CSC Switch.
For instance, Cow ROM v7 (Bionic Cow 2) don't have system\CSCFiles.txt. We don't know what required files removed from other ROMs.
So this is the workaround:
Replace following files on your current Custom ROM with your STOCK ROM
system\SW_Configuration.xml
system\CSCVersion.txt
system\CSCFiles.txt
The whole system\csc folder or just the CSC you want (ie:system\csc\XSE)
(Don't forget to check and fix the files permisson)
REBOOT
Switch CSC
dial :
*#272*[your Device IMEI]#
then select the CSC you want. Your phone will reboot with the new CSC applied
WARNING!!!
Switch CSC act as Full Factory Reset, so backup you data first
Are you sure this works as I found it appeared to work but the CSC was never changed hence why I said use stock recovery.
I think he means using that list of file from your previous stock rom.
The files that are found in the /system root are copied there by the stock recovery it even prints messages to this effect on a reboot. Placing these files there because the other recovery does not do this may or may be not enough to switch CSC it rather depends what the difference in action is between the different recoveries and as I am no expert I don't know.
First of all I want to thank you for learning so much just by reading you guys.. Moving from symbian to android was hard but you made it pretty easy..
But, this issue is too much for me..
I also tried to put stock csc on cowrom v7 without any luck..
I did exactly what pmeler suggests. Copy csc folder and system\SW_Configuration.xml
system\CSCVersion.txt
system\CSCFiles.txt from stock, check all permissions (with es file manager).
Reboot , then *#272*IME# but greek language won’t appear..
My (STOCK) phone’s info:
PDA : I8150XXLA2
Phone: I8150XXKL3
CSC: I8150DBTKJ1
Android version: 2.3.6
Base band : I8150XXKL3
Kernel : 2.6.35.7-perf…
Build Num.: GINGERBREAD.XXLA2
So, with my stock rom everything working as should be (greek language/samsung keyboard,T9)…
With Cow rom V7, I finnaly manage to change csc to I8150DBTKJ1 (same as stock) but it seems that the problem is the different PDA version so no greek lang. for me yet…
Please can anybody help with this?
I mean, whats the point of having these excellent Roms like Cow rom, Kezra’s (and archo's ICS maybe tomorrow ) , if we cant use our local lang. ?
P.S. i suppose its not a problem working without SIM?
..
Did you try with stock recovery and if you use *#1234# does it show your csc has changed.
1)No, I’m using CWM. Should I return to stock recovery?
2)Yes, it shows that csc has change (same as stock: I8150DBTKJ1) but I still don’t have selection for greek after reboot…
Maybe more files needed to copy from stock rom..?

[Q] windows phone 8 pushpin

HI!! I need to replace the shape of my pushpins by an image! this is my xaml code
<maps:Map x:Name="myMap" Margin="-34,0,-36,10" WatermarkMode="On" LandmarksEnabled="True" ColorMode="Dark">
<toolkit:MapExtensions.Children>
<toolkit:MapItemsControl Name="PointItems">
<toolkit:MapItemsControl.ItemTemplate>
<DataTemplate>
<toolkitushpin x:Name="mypus" GeoCoordinate="{Binding Coordinate}" Content="{Binding Info}" BorderBrush="Black" Height="119" FontWeight="Bold" Background="YellowGreen" Foreground="Transparent" Width="29" FontSize="1" Tap="mypus_Tap" BorderThickness="2" Margin="2" />
</DataTemplate>
</toolkit:MapItemsControl.ItemTemplate>
</toolkit:MapItemsControl>
</toolkit:MapExtensions.Children>
</maps:Map>
help me please!
Adding image as pushpin
You need to define a static resource within your xaml where you'll include your image resources and all. From the, simply call it as a pushpin property.
LIke so:
<Style TargetType="myushpin" x:Key="customStyle">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="myushpin">
<Image Source="MapPin.png" />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
then in your pushpin tag, add Style = {StaticResource customStyle}

Categories

Resources