|
How to set One Window inside the Area of another window?WPF.
i.e
The First window is containing Only the Ribbon Control and open in windows maximized state. And when we click any button or TabItem in The Ribbon Control A new Window is opend. I Need to set the newly opend window inside the MainWindow's Area excluding Ribbon.
Thanks.
----------------------------------------------------------------
MainWindow
-----------------------------------------------------------------
RibbonControl
-----------------------------------------------------------------
NewWindow
------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|----------------------------------------------------------------
|
|
|
|
|
When you talk about creating one window inside another, what you are normally talking about is creating an MDI window. Now, WPF does not provide native support for MDI because Microsoft is trying to deprecate this technique, preferring Multiple SDI applications. However, to achieve the affect you are after, I would normally create the item you call NewWindow as a UserControl - and then I would make it a child of the MainWindow, stacked below the RibbonControl.
|
|
|
|
|
Dear Pete O'Hanlon
Thank you very much for the replying to my query. Very Sure it is MDI appliaction. In Windows form application we can do this by simply making an MDI application. As i have to display The windows based on the choices made by the User.I.e Find a record,Add,Update,Delete etc. So we have to display each window for each specific task and all the windows should have ChildWindow(top,left) just at the intersection of Ribbons(bottom.left).
Can i do this manually.If Yes how?
Thanks.
|
|
|
|
|
Well, as I said - MDI is a technology that MS is trying to deprecate so WPF does not feature support for it. One common way to simulate it, though, is to use a TabControl to give an application an MDI look similar to the one you're used to in Visual Studio.
A good place to start is by reading this post[^] by Karl Shifflett. While it's written in VB.NET, it isn't hard for you to translate it into C# if that's what you want.
|
|
|
|
|
Thank you very much.I'll try it. And hope to find out a way.
|
|
|
|
|
|
Hi
I've had 'Expression Blend 2.5 June 2008 Preview' , when I wanna test my project (F5) instead of my App this [^]page show and I can't test my project anymore.
By the way I've installed 'Silverlight.2.0' .
What's wrong with it ?
|
|
|
|
|
It's looking for a version of Silverlight that isn't installed, and that you wouldn't want to install (basically it's one of the beta versions). You need to upgrade your version of Blend to use the Silverlight SP.
|
|
|
|
|
Hi.
Is it possible to create a window that everything in back of it show with Blur effect !
Something like this[^] or this[^]
Thank you
|
|
|
|
|
This effect is the Aero glass effect, and if you want it to extend you can use a technique like this[^].
|
|
|
|
|
It sounds to execute only on vista !
|
|
|
|
|
Well yes - that is true, but there are "alternative" versions - e.g. this[^] one.
|
|
|
|
|
|
My Company has purchase Visual Studio 2008. I want use Silverlight, am new to a Subject. I have a Book and Some Articles that can allow me to do a Hello World App. But now in my VS i Dont see the Option of Silverlight. The Articles i read , they give me options to download beta Silverlight tools. I want to use Silverlight in Visual Studio 208 Express.
Thank you
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
You can download the Silverlight things you need here[^].
|
|
|
|
|
does anyone came across about something about that?
I have a UserControl containing a Label and a TextBox. During Designtime I want a nice looking adorner that enables me to size them. Right now I have a adorner with a slider, that is no problem. But even only I use this right now, I dont like this solution.
thanks in advance for any further hints or information!
Cheers, Christoph
|
|
|
|
|
Do you want to extend the current Visual Studio TextBox and Label controls as you are designing them in the WPF Designer, Cider?
modified 27-Feb-21 21:01pm.
|
|
|
|
|
Hello Karl,
well I want to have a simple usercontrol with multiple controls in it, anything.
lets say a label and a textbox (both in a DockPanel)
UserControl:
---------------------
| Label | Textbox |
---------------------
When I have this control in the WPF Designer (Cider), I want to be able to drag a resize adorner
either to left or right, so the DockPanel/CtrlSize is changed.
---------------------
| Label <|> Textbox |
---------------------
I managed to have a adorner with a slider bound to a UserControl-DP. but I am struggeling to find
the right entry point/design to have a draggable Sizing adorner. I cannot see how I can get to manage
the mouse-events etc.
any help or hint is welcome
|
|
|
|
|
Let me research and get back to you Monday.
modified 27-Feb-21 21:01pm.
|
|
|
|
|
thanks Karl, hope you are succesfull!
Cheers Christoph
|
|
|
|
|
I did some trials with a gridsplitter (inside grid) as an adorner.
Somehow I did not manage to bind the GridColumnDefinition.WidthProperty succesful,
but surely this should be possible. But as soon I had it in prototype I realized
how good the slider was I already had, it supports snap to values. This suits the
needs very good, so I try now to have a custom skin/theme on the slider in order to look
a little nicer.
Thanks anyway and cheers, Christoph
|
|
|
|
|
Hi!
After searches on google and the built in help of visual studio, I tried to get an answer on this question in the MSDN forum, but nobody seems to answer there. I hope i get better results here!
Here's my (slightly edited) post i posted on the MSDN forum:
Hi,
I'd like to make a List<int> property in a custom control, and, when I add that custom control to the main window of the application, want to be able to edit, add and remove elements from that list. The problem is that I can't edit the items in the designer.
I did the following:
1. Create a WPF application
2. Add a Custom Control (WPF)
3. Changed the code in the CustomControl1 class to the following:
public class CustomControl1 : Control
{
static CustomControl1()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(CustomControl1), new FrameworkPropertyMetadata(typeof(CustomControl1)));
}
private List<int> _intlist = new List<int>();
public List<int> intlist
{
get { return _intlist; }
set { _intlist = value; }
}
}
} </int></int></int>
4. Added the namespace to the XAML file of the Window1.xaml from the main WPF application
xmlns:CustCtrl1NameSpace="clr-namespace:WpfApplication3"
5. Added the control to the Grid
<Grid>
<CustCtrl1NameSpace:CustomControl1/>
</Grid>
After i did this, i expected to be able to see and edit the List<int> intlist in the designer, but i can only see it. If i click on the button with the three dots on it on the intlist property in the designer, I get the window to edit it, but everything is grayed out!
I really tried alot of things, and i ran out of ideas now.
Hope you can help me,
Vincent
(this is a copy of my wrongly placed message in the c# forum )
|
|
|
|
|
vincentgr wrote: but everything is grayed out
Sorry I do not know the answer to this but maybe this will throw into a new direction of thought...
When the item editor window comes up and there isn't anything to add to your list, wouldn't you have to define somewhere the items that could be added to the list so the editor window would be able to display those items?
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Individuality is fine, as long as we do it together - F. Burns
|
|
|
|
|
Yes, i thought about that. But where is somewhere? I thought it would be easy to see for the designer because its a List<INT>..
Thanks!
Vincent
|
|
|
|
|
vincentgr wrote: But where is somewhere
Ah.... therein lies the Google search
vincentgr wrote: it would be easy
Lol But it never is.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Individuality is fine, as long as we do it together - F. Burns
|
|
|
|