474,039 Members | 27,975 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

docking a form to a screen location

This question pertains to WPF.

In a XAML form, is there a way to cause a window object to dock itself
to a particular location on the screen?

I've been taked to create a "manager" for a larger app that would be
located on the right side of the screen, similar to something like
Yahoo's widget manager. We would also like the ability for it to "slide"
to the right into a tab or out of view wehn it loses focus.

Thanks!

*** Sent via Developersdex http://www.developersdex.com ***
Mar 14 '08 #1
0 1190

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
1902
by: Steve McLellan | last post by:
Hi, I'm trying to add panels to a parent panel programatically. I'd like them to all take up an equal amount of the parent form as it's resized etc. Using Docking::Fill obviously causes one panel to expand to fill the entire parent, and I can't get a satisfactory result using Anchor - the leftmost controls start to take more than their fair share as the parent panel grows in size.. Can anyone suggest a way of doing this? Some kind of...
3
8131
by: Colt Ramsden | last post by:
How would I go about docking my main form to the side of the left side of the screen, ala Trillian or Desktop Sidebar, where any other maximized apps will only maximize to the docked form's left border? Any help would be most appreciated. -Colt Ramsden
2
2726
by: Gary Shell | last post by:
We are playing around with using the splitter on a form and want to do the following: 1. On the left side of the form will be a tree view. 2. To the right of that tree view would be a splitter. 3. To the right of that splitter would be a second tree we call a palette. 4. To the right of the palette would be another splitter. 5. To the right of that splitter would be our "content area". We are trying to find a way to allow this...
1
1248
by: Ahmed | last post by:
Hello everyone, I am designing an application to work with two screen resolutions, 1024x 768 and 800x600. If the user is using a higher resolution the form should have the same size as 1024x768 screen I started building the application in 1024x 768 form size but everything got screwed up when I used the 800x600 screen. So, I decided to set the size of the form in the design mode to 800x600. The screen draws fine but I have a lot of...
14
3450
by: Galen Somerville | last post by:
My current screen resolution is set to 1024 x 768. My form size always comes up as 1032 x 748. I have tried the help sample ' Retrieve the working rectangle from the Screen class ' using the PrimaryScreen and the WorkingArea properties. Dim workingRectangle As System.Drawing.Rectangle = _ Screen.PrimaryScreen.WorkingArea ' Set the size of the form slightly less than size of
2
2649
by: Matt Brown - identify | last post by:
Hello, I've spent the better part of the day going over code and thinking and have come up with the following docking method that works perfectly. At this point, my brain is about to explode and I was wondering if someone can help me figure out the calculations for right and bottom docking: note: lRelOffsetLeft and lRelOffsetTop are calculated on mousedown (location of mouse in relation to top and left of picturebox)
2
1126
by: Samuel | last post by:
Hi everyone, I am looking for a method to handle the following problem: Since my controls are 'Docked' when I try to run the program with a smaller screen (less pixels) the program appears to prioritise the size of the control + the bottom of the form and ignores the location property of the control Thank you, Samuel
1
1265
by: RobAMacAF | last post by:
I have code that when you drag a child form within 5 of the parent one it docks. Then when you drag it out of the 5 it returns the size of the child form to what it started as....That works GREAT! But when you release the mouse the child form then goes back to the size it was when it was docked. You drag it again and it goes back to the creation size like I wanted until I release the mouse again! GGGAAAH! I found a way to make it resize...
10
27684
bentleyw
by: bentleyw | last post by:
In a current project I am working on, I have the need to dock forms on each other. For example, you have form1 and when you move form2 close to the borders of it, it attaches itself to form1. Then it could move with form1. I would have thought that this would be a built in feature already in .NET, but after doing some brief searches I was not able to find it. If anyone knows how to do this automatically in C# .NET, or if you have a...
0
10535
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10331
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11594
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
11135
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6646
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6815
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
5402
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4935
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3956
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.