Skip to main content
Home Forums Silverlight Design Designing with Silverlight Hiding Window's Frame Border
7 replies. Latest Post by party42 on September 25, 2007.
(0)
Bijoy Th...
Member
29 points
29 Posts
09-25-2007 6:35 AM |
How do I hide the Window's Frame Border in a silverlight application?
Also, how do I make an application draggable? I mean, whenever, I move my cursor over the application, I want to see the move cursor using which I can drag the application.
Play hundreds of free games at JoyRack Games
party42
Participant
1102 points
338 Posts
09-25-2007 7:29 AM |
Bijoy Thangaraj:How do I hide the Window's Frame Border in a silverlight application?
Come again? What do you mean?
Bijoy Thangaraj:Also, how do I make an application draggable? I mean, whenever, I move my cursor over the application, I want to see the move cursor using which I can drag the application.
Well, you could change the cursor in that xaml to be ehm... the movable cursor (not sure what the enum value is for that...). Obviously, you'd still have to implement the "move" pattern...
09-25-2007 7:59 AM |
I meant, suppose I have an image inside the canvas, I just want the image to be displayed. I don't want any window to be displayed.
09-25-2007 9:31 AM |
try this:
<Canvas xmlns="http://schemas.microsoft.com/client/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Name="_root" Background="Transparent" > <Image x:Name="image" ImageSource="yourimage.png" /></Canvas>
should work?
y_makram
Contributor
6174 points
1,234 Posts
09-25-2007 10:15 AM |
Also you need to set isWindowless to true and the background to #00FFFFFF in the createObjectEx function. This will make the silverlight control transparent (the 00 value in the backgrounf color is the alpha transparency, setting it to 0 would make the control transparent, but this works only in windowless mode). But please not this has a performance penalty and can cause some tearing if extensive animation is used.
09-25-2007 10:20 AM |
Thanks for that. And is there a way to disable resize capability.
09-25-2007 10:26 AM |
disable resizing of what?
09-25-2007 12:38 PM |
Resizing is disabled by default. Actually enabling it expects coding...