Skip to main content

Microsoft Silverlight

Hiding Window's Frame Border RSS Feed

(0)

Bijoy Thangaraj
Bijoy Th...

Member

Member

29 points

29 Posts

Hiding Window's Frame Border

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.

 

Thanks and Regards,
Bijoy Thangaraj
JSplash | Google Gadgets

Play hundreds of free games at JoyRack Games

party42
party42

Participant

Participant

1102 points

338 Posts

Re: Hiding Window's Frame Border

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...

Regards,
Nathan Brouwer

http://www.nathanbrouwer.nl

Bijoy Thangaraj
Bijoy Th...

Member

Member

29 points

29 Posts

Re: Re: Hiding Window's Frame Border

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.

Thanks and Regards,
Bijoy Thangaraj
JSplash | Google Gadgets

Play hundreds of free games at JoyRack Games

party42
party42

Participant

Participant

1102 points

338 Posts

Re: Re: Hiding Window's Frame Border

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?
 

Regards,
Nathan Brouwer

http://www.nathanbrouwer.nl

y_makram
y_makram

Contributor

Contributor

6174 points

1,234 Posts

Re: Re: Hiding Window's Frame Border

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.

Thanks
Yasser Makram
http://www.silverlightrecipes.com
_____
Dont forget to click "Mark as Answer" on the post that helped you. If your question has not been answered, please post a followup question.

Bijoy Thangaraj
Bijoy Th...

Member

Member

29 points

29 Posts

Re: Re: Re: Hiding Window's Frame Border

 Thanks for that. And is there a way to disable resize capability. 

Thanks and Regards,
Bijoy Thangaraj
JSplash | Google Gadgets

Play hundreds of free games at JoyRack Games

y_makram
y_makram

Contributor

Contributor

6174 points

1,234 Posts

Re: Re: Re: Hiding Window's Frame Border

disable resizing of what? 

Thanks
Yasser Makram
http://www.silverlightrecipes.com
_____
Dont forget to click "Mark as Answer" on the post that helped you. If your question has not been answered, please post a followup question.

party42
party42

Participant

Participant

1102 points

338 Posts

Re: Re: Re: Hiding Window's Frame Border

Resizing is disabled by default. Actually enabling it expects coding...

Regards,
Nathan Brouwer

http://www.nathanbrouwer.nl
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities