|
hi friend i am newbie in WPF i want to use expander control so that i have two toogle button in expander control if First one click then it should expand Down and if the second one click then it should expand right side.
WANTED wasim khan(Killed 50 Innocent Buggs, Distroyed 200 Exception, make 5 Project Hostage) any Compnay Hire him will pay 30,000. Best place where u can get him is Sorcim Technologies Murre Road RWP
|
|
|
|
|
You'll need to retemplate the Expander control, add a second expander button to execute the required code.
Retemplating is not hard once you understand WPF. There are plenty of examples here on Code Project for retemplating controls.
modified 27-Feb-21 21:01pm.
|
|
|
|
|
Hi all,
I want to create twolist box ,one in left side and other in right side in runtime.I wrote one code but i cant set the correct margin
can any one help me.. here is my source code..
in xaml code:
<StackPanel x:Name="stkPnlCaption"
Orientation="Vertical" Height="500" Width="800">
</StackPanel>
in xaml.cs::
ListBox list = new ListBox();
list.Width = 200;
list.Height = 200;
list.Margin = new Thickness(148, 131, 0, 131);
list.HorizontalAlignment = HorizontalAlignment.Left ;
list.VerticalAlignment = VerticalAlignment .Top ;
stkPnlCaption.Children.Add(list);
CheckBox checkBox = new CheckBox();
checkBox.Content = "Yes" ;
list.Items.Add(checkBox);
ListBox list1 = new ListBox();
list1.Width = 200;
list1.Height = 200;
list1.Margin = new Thickness(298, 131, 280, 131);
list1.HorizontalAlignment = HorizontalAlignment.Right;
list1.VerticalAlignment = VerticalAlignment.Top;
stkPnlCaption.Children.Add(list1);
CheckBox checkBox1 = new CheckBox();
checkBox1.Content = "Yes" ;
list1.Items.Add(checkBox1);
i want the both the list box in same height and width ..one in left side and other in right side(paralley).
|
|
|
|
|
An easier way to do this is to use a Grid with two columns, both of which are the same size. Don't set any size info in your listboxes, just assign them to the appropriate grid column and let the grid take care of laying your items out.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
|
|
Hi to all,
i have a small problem.
I have a stackpanel and in this stackpanel i have added some usercontrol. I have implemented a scroll funcionality for this stackPanel childrens. how can I check if a UserControl is visible at that time or is it hidden?
TY
|
|
|
|
|
in xaml coding.. i need to give the content of the label as < .
but if i do that it is taking as the tag starter..
how to use that < in the xaml coding . please help
|
|
|
|
|
Use HTML encoding, e.g. <
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
hello,
I have put System.windows.controls Combobox in silverlight usercontrol.
which i have hosted in default.aspx.
Now i want to call javascript on button click -- to change selected index of combobox .....
I am using .net 3.5 sp1 with vs 2008
so how to change selected index of combobox from javascript code..
Please help asap.
|
|
|
|
|
Member 3981366 wrote: Now i want to call javascript on button click
Where did you place that button? Is it in Silverlight User Control or ASP.NET?
Please check this HTML Bridge[^] if you like to interact between Managed Code of Silverlight and Javascript.
Hope it helps.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
Microsoft MVP (Silverlight), WPF/Silverlight Insiders
|
|
|
|
|
Hello all,
How i change the color of the Titlebar in the wpf Window form.
If anybody knows the solution plz help me.
Thanks in advance.
|
|
|
|
|
You shouldn't mess with that as it's set to what the operating system says it should be. That being said...
The only thing I know to suggest is to get expression blend and scrape the window class template from it, and work from that. You'll probably have to write a class that inherits Window, and add an attached property.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Sorry about that reply to the wrong message!
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Like John stated - the OS handles that.
If you rip the Window template using blend, you still won't be able to change the
title bar.
If you must provide a custom title bar, you can use a Window without a title bar
and provide your own. For example, see Nish's article:
WPF tip : Using a custom title bar[^]
Note you won't get any of the visual cues provided by the OS
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Does anybody have any insight on audio streaming through a tv tuner in a vb app? I'm using a directshow2005.dll. I have the video end of it working fine, but the audio does not work. Is there a way to check the graphBuilder or the assigned pins? Or does anybody have any better suggestions? Maybe an updated dll or or completely different one? I was reading some other forums and this seems to truly be a tough topic in everything before 3.5 .net framework.
|
|
|
|
|
Please don't cross post ? Are you using WPF ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Yes, hence why I posted it in the wpf forums
|
|
|
|
|
Jeremiah Morril is the man for all your DirectShow rendering needs in WPF. I think his MediaKit does exactly what you want right out of the box.
|
|
|
|
|
that looks good, thank you!
|
|
|
|
|
Hi,
I am working on an application in which we have to retrieve the attachment files from given Gmail Id using Pop3 and save them in a folder. I worked this with yahoo mail, but now I have to do this with Gmail too. As Gmail have some security I am notable to directly connect to it directly. I came to know that using SSlconnection we can connect to Gmail. But I don't know how to do this.
If any one have any idea to solve this please reply me.
Thanks in Advance.
|
|
|
|
|
Well, in WPF I'd do this by... no wait, your question has nothing whatsoever to do with WPF. OK, change of tack, in WCF I'd do this by... no wait, it's not WCF either. Silly me, it must be WF - well, I'd start by... no wait not WF either. You haven't, um, got the wrong forum by any chance?
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
I'm using data binding to populate the rows of a ListView. Then an event takes place where I have to change a value in a particular column in the row and I'm successfully doing that. But now to grab the user's attention I want to change the color of the text in the row. But all I have is a reference to the data object whose public properties I use to populate the row. But how do I get a reference to the UI object that presents this data visually in a row within the ListView so I can change the style of that row?
As you can see, I'm still puzzling over how to get back and forth between the data and the UI presenting it visually. I know there's a difference. I just don't know how to get back and forth. This sounds like a fundamental WPF question and is another example of fundamental knowledge that I have not yet mastered, but once I get this one answered, a lot of pieces of the puzzle are going to fall into place.
|
|
|
|
|
Never mind. I figured it out. I needed a Style Data Trigger.
|
|
|
|
|
Hi,
I have a grid container with controls in its cells. I need to move the controls from one cell to another in the grid or across grids by dragging and dropping.
Is there any sample for it. Can anyone tell how to achieve it in wpf.
Thanks
|
|
|
|