views:

252

answers:

2

Hi,

I have a child Window , and I am displaying it from the code behind as below:

ChildPhotoViewer PhotoViewer = new ChildPhotoViewer();
                PhotoViewer.DataContext = selectedPhoto;
                PhotoViewer.Title = selectedPhoto.strTitle.ToString();
                PhotoViewer.Show();

But While Displaying the child window I am getting the Close Button and a Border thickness arround the Window.

I am able to hide the Close Button but is there a way to hide the thickness(Border) across the child window.

Edit:

![alt text][1]

In the Image , there is border arround image after Collpasing the Close button and making

PhotoViewer.Title = null;
PhotoViewer.HasCloseButton = false;

I want to get rid of that Rectangular Border.

A: 
AnthonyWJones
Yes, Tried now, isn't workin tis way
Subhen
@Subhen: Are you refering to the title block above the child window?
AnthonyWJones
A: 

Depends on what you mean by the Border.

If you have a look at the Documentation you can see there is a border (with a thickness of 1) around the edge of the entire window that can be altered like Anthony mentions.

However there is also the window Chrome which in the default template has a number of borders. To change the thickness of these borders you will need to create a style without the borders being present.

Graeme Bradbury