Hi,
I know, this is simple but I wasted a bunch of my valuable time in finding a solution while developing my first application in WPF. Include the following line in your < listview> block to get rid of headers in your gridview column.
< ListView.Resources>
< Style x:Key="CustomHeaderStyle" TargetType="{x:Type GridViewColumnHeader}">
< Setter Property="Visibility" Value="Collapsed" />
< /Style>
< /ListView.Resources>
Thanks,
Vikas
Tuesday, June 30, 2009
Friday, June 26, 2009
Reading Image Metadata Tags with Dot Net
Hi All,
I had to find a way to tag images and then use the tagged images to be searched with the help of tagged keywords. Example, if some images are tagged with the keywords "xxx", then searching for xxx should produce the image with xxx tag in the search results.
I tried with various document management software and all of these are actually very handy tools but they don't add metadata tags to images. Since we are spread all over the word, I thought it will be very often that the images will flow from one corner to other and the tags should flow along with the images. So the document management software approach ended with no benefit. Then I thought to develop a sample on my own.
There was one more reason for developing it. I wanted to search the images and provide a custom task ( eg, Inserting the image in powerpoint) which no software gives.
I download a free tagging software called ITag (Click here for Download). And tag all of images with various keywords using this software. It is really a good tool to add metadata tags.
Now when I added the tags, the following xml was added in the image (you can easily read the tags by editing the image files.)
Now the above XML suggests that the image is tagged with 4 tags (Wake up,Blinx,Banking,Burton).
After tagging, I run an indexing code and create a list of files with the tags. The produced output was like following :
Now whenever user will enter a keyword in my search panel, I will just load the items from XML in the Panel and will display the images in a different thread.
HTH,
Vikas Bhandari
I had to find a way to tag images and then use the tagged images to be searched with the help of tagged keywords. Example, if some images are tagged with the keywords "xxx", then searching for xxx should produce the image with xxx tag in the search results.
I tried with various document management software and all of these are actually very handy tools but they don't add metadata tags to images. Since we are spread all over the word, I thought it will be very often that the images will flow from one corner to other and the tags should flow along with the images. So the document management software approach ended with no benefit. Then I thought to develop a sample on my own.
There was one more reason for developing it. I wanted to search the images and provide a custom task ( eg, Inserting the image in powerpoint) which no software gives.
I download a free tagging software called ITag (Click here for Download). And tag all of images with various keywords using this software. It is really a good tool to add metadata tags.
Now when I added the tags, the following xml was added in the image (you can easily read the tags by editing the image files.)
< rdf:Description rdf:about="" xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:xmp="http://ns.adobe.com/xap/1.0/" xmlns:exif="http://ns.adobe.com/exif/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmpMM:InstanceID="uuid:02ab02d9-02d1-11da-9510-ec7226ba1889" xmpMM:DocumentID="adobe:docid:photoshop:02ab02d2-02d1-11da-9510-ec7226ba1889" tiff:ResolutionUnit="2" tiff:YResolution="72/1" tiff:XResolution="72/1" tiff:Orientation="1" tiff:NativeDigest="256,257,258,259,262,274,277,284,530,531,282,283,296,301,318,319,529,532,306,270,271,272,305,315,33432;F68680A2E9A53199A34ACB3FE0102FCA" xmp:ModifyDate="2005-08-01T17:16:48+05:30" xmp:CreatorTool="Adobe Photoshop 7.0" exif:PixelYDimension="227" exif:PixelXDimension="892" exif:ColorSpace="65535" exif:NativeDigest="36864,40960,40961,37121,37122,40962,40963,37510,40964,36867,36868,33434,33437,34850,34852,34855,34856,37377,37378,37379,37380,37381,37382,37383,37384,37385,37386,37396,41483,41484,41486,41487,41488,41492,41493,41495,41728,41729,41730,41985,41986,41987,41988,41989,41990,41991,41992,41993,41994,41995,41996,42016,0,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,22,23,24,25,26,27,28,30;1064FAD10D9AAF6E380C481B30061C1D">
< dc:subject>< rdf:Bag xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">< rdf:li>Banking< /rdf:li>< rdf:li>Blinx< /rdf:li>< rdf:li>Burton< /rdf:li>< rdf:li>Wake up< /rdf:li>< /rdf:Bag>
< /dc:subject>< /rdf:Description>
Now the above XML suggests that the image is tagged with 4 tags (Wake up,Blinx,Banking,Burton).
After tagging, I run an indexing code and create a list of files with the tags. The produced output was like following :
< ?xml version="1.0" encoding="UTF-8"?>
< Files>
< File Name="imageName3.png">
< Keyword>Banking< /Keyword>
< Keyword>Sports< /Keyword>
< /File>
< File Name="imageName2.png">
< Keyword>Banking< /Keyword>
< Keyword>AssetManagement< /Keyword>
< Keyword>Sports< /Keyword>
< /File>
< File Name="imageName1.png">
< Keyword>Banking< /Keyword>
< Keyword>AssetManagement< /Keyword>
< Keyword>Sports< /Keyword>
< /File>
< /Files>
Now whenever user will enter a keyword in my search panel, I will just load the items from XML in the Panel and will display the images in a different thread.
HTH,
Vikas Bhandari
Wednesday, June 24, 2009
Use WPF User control to display in a Task Pane
Hi,
Use the following code in your Ribbon OnAction method to display a WPF User control in an office task pane:
Use the following code in your Ribbon OnAction method to display a WPF User control in an office task pane:
Dim pane As WPFUserControlName= Nothing
If pane Is Nothing Then
Dim uControl As New UserControl()
Dim host As ElementHost = New ElementHost()
pane = New WPFUserControlName()
host.Child = pane
host.Dock = DockStyle.Left
host.Width = 200
uControl.Controls.Add(host)
taskPane = Globals.ThisAddIn.CustomTaskPanes.Add(uControl, "Biographies")
taskPane.Visible = True
Else
taskPane.Visible = True
End If
Tuesday, June 23, 2009
Dot Net Color Codes
Hi All,
Please findbelow the dot net color codes. Source :Click here to go to Source Site
Thanks,
Vikas Bhandari
Please findbelow the dot net color codes. Source :Click here to go to Source Site
AliceBlue | Hex Code:#F0F8FF |
AntiqueWhite | Hex Code:#FAEBD7 |
Aqua | Hex Code: #00FFFF |
Aquamarine | Hex Code: #7FFFD4 |
Azure | Hex Code: #F0FFFF |
Beige | Hex Code: #F5F5DC |
Bisque | Hex Code: #FFE4C4 |
Black | Hex Code: #000000 |
BlanchedAlmond | Hex Code: #FFEBCD |
Blue | Hex Code: #0000FF |
BlueViolet | Hex Code: #8A2BE2 |
Brown | Hex Code: #A52A2A |
BurlyWood | Hex Code: #DEB887 |
CadetBlue | Hex Code: #5F9EA0 |
Chartreuse | Hex Code: #7FFF00 |
Chocolate | Hex Code: #D2691E |
Coral | Hex Code: #FF7F50 |
CornflowerBlue | Hex Code: #6495ED |
Cornsilk | Hex Code: #FFF8DC |
Crimson | Hex Code: #DC143C |
Cyan | Hex Code: #00FFFF |
DarkBlue | Hex Code:#00008B |
DarkCyan | Hex Code: #008B8B |
DarkGoldenrod | Hex Code: #B8860B |
DarkGray | Hex Code: #A9A9A9 |
DarkGreen | Hex Code: #006400 |
DarkKhaki | Hex Code: #BDB76B |
DarkMagenta | Hex Code: #8B008B |
DarkOliveGreen | Hex Code: #556B2F |
DarkOrange | Hex Code: #FF8C00 |
DarkOrchid | Hex Code: #9932CC |
DarkRed | Hex Code: #8B0000 |
DarkSalmon | Hex Code: #E9967A |
DarkSeaGreen | Hex Code: #8FBC8B |
DarkSlateBlue | Hex Code: #483D8B |
DarkSlateGray | Hex Code: #2F4F4F |
DarkTurquoise | Hex Code: #00CED1 |
DarkViolet | Hex Code: #9400D3 |
DeepPink | Hex Code: #FF1493 |
DeepSkyBlue | Hex Code: #00BFFF |
DimGray | Hex Code: #696969 |
DodgerBlue | Hex Code: #1E90FF |
Firebrick | Hex Code: #B22222 |
FloralWhite | Hex Code: #FFFAF0 |
ForestGreen | Hex Code: #228B22 |
Fuchsia | Hex Code: #FF00FF |
Gainsboro | Hex Code: #DCDCDC |
GhostWhite | Hex Code: #F8F8FF |
Gold | Hex Code: #FFD700 |
Goldenrod | Hex Code: #DAA520 |
Gray | Hex Code: #808080 |
Green | Hex Code: #008000 |
GreenYellow | Hex Code: #ADFF2F |
Honeydew | Hex Code: #F0FFF0 |
HotPink | Hex Code: #FF69B4 |
IndianRed | Hex Code: #CD5C5C |
Indigo | Hex Code: #4B0082 |
Ivory | Hex Code: #FFFFF0 |
Khaki | Hex Code: #F0E68C |
Lavender | Hex Code: #E6E6FA |
LavenderBlush | Hex Code: #FFF0F5 |
LawnGreen | Hex Code: #7CFC00 |
LemonChiffon | Hex Code: #FFFACD |
LightBlue | Hex Code: #ADD8E6 |
LightCoral | Hex Code: #F08080 |
LightCyan | Hex Code: #E0FFFF |
LightGoldenrodYellow | Hex Code: #FAFAD2 |
LightGray | Hex Code: #D3D3D3 |
LightGreen | Hex Code: #90EE90 |
LightPink | Hex Code: #FFB6C1 |
LightSalmon | Hex Code: #FFA07A |
LightSeaGreen | Hex Code: #20B2AA |
LightSkyBlue | Hex Code: #87CEFA |
LightSlateGray | Hex Code: #778899 |
LightSteelBlue | Hex Code: #B0C4DE |
LightYellow | Hex Code: #FFFFE0 |
Lime | Hex Code: #00FF00 |
LimeGreen | Hex Code: #32CD32 |
Linen | Hex Code:#FAF0E6 |
Magenta | Hex Code: #FF00FF |
Maroon | Hex Code: #800000 |
MediumAquamarine | Hex Code: #66CDAA |
MediumBlue | Hex Code: #0000CD |
MediumOrchid | Hex Code: #BA55D3 |
MediumPurple | Hex Code: #9370DB |
MediumSeaGreen | Hex Code: #3CB371 |
MediumSlateBlue | Hex Code: #7B68EE |
MediumSpringGreen | Hex Code: #00FA9A |
MediumTurquoise | Hex Code: #48D1CC |
MediumVioletRed | Hex Code: #C71585 |
MidnightBlue | Hex Code: #191970 |
MintCream | Hex Code: #F5FFFA |
MistyRose | Hex Code: #FFE4E1 |
Moccasin | Hex Code: #FFE4B5 |
NavajoWhite | Hex Code: #FFDEAD |
Navy | Hex Code: #000080 |
OldLace | Hex Code: #FDF5E6 |
Olive | Hex Code: #808000 |
OliveDrab | Hex Code: #6B8E23 |
Orange | Hex Code:#FFA500 |
OrangeRed | Hex Code: #FF4500 |
Orchid | Hex Code: #DA70D6 |
PaleGoldenrod | Hex Code: #EEE8AA |
PaleGreen | Hex Code: #98FB98 |
PaleTurquoise | Hex Code: #AFEEEE |
PaleVioletRed | Hex Code: #DB7093 |
PapayaWhip | Hex Code: #FFEFD5 |
PeachPuff | Hex Code: #FFDAB9 |
Peru | Hex Code: #CD853F |
Pink | Hex Code: #FFC0CB |
Plum | Hex Code: #DDA0DD |
PowderBlue | Hex Code: #B0E0E6 |
Purple | Hex Code: #800080 |
Red | Hex Code: #FF0000 |
RosyBrown | Hex Code: #BC8F8F |
RoyalBlue | Hex Code: #4169E1 |
SaddleBrown | Hex Code: #8B4513 |
Salmon | Hex Code:#FA8072 |
SandyBrown | Hex Code: #F4A460 |
SeaGreen | Hex Code: #2E8B57 |
SeaShell | Hex Code: #FFF5EE |
Sienna | Hex Code: #A0522D |
Silver | Hex Code: #C0C0C0 |
SkyBlue | Hex Code: #87CEEB |
SlateBlue | Hex Code: #6A5ACD |
SlateGray | Hex Code: #708090 |
Snow | Hex Code:#FFFAFA |
SpringGreen | Hex Code: #00FF7F |
SteelBlue | Hex Code: #4682B4 |
Tan | Hex Code: #D2B48C |
Teal | Hex Code: #008080 |
Thistle | Hex Code: #D8BFD8 |
Tomato | Hex Code: #FF6347 |
Transparent | Hex Code:#FFFFFF |
Turquoise | Hex Code: #40E0D0 |
Violet | Hex Code: #EE82EE |
Wheat | Hex Code: #F5DEB3 |
White | Hex Code: #FFFFFF |
WhiteSmoke | Hex Code:#F5F5F5 |
Yellow | Hex Code: #FFFF00 |
YellowGreen | Hex Code: #9ACD32 |
Thanks,
Vikas Bhandari
Labels:
Color Codes,
Color List,
Colors,
Dot Net,
Hex Codes,
Visual Studio Color List
Subscribe to:
Posts (Atom)