|
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
|
|
|
|
|
How can I open a file search dialog in WPF with XAML?
Thanks,
David
|
|
|
|
|
Why do you need to use XAML ? I don't see how you can, I mean, how would you work with the resultant file if not in code behind ?
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
|
|
|
|
|
|
The same way you would with winforms. I'd imagine some XAML to hook up an event for when you want the dialog to appear, but then you just create it and show it.
OpenFileDialog dlg = new OpenFileDialog(); // etc
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
|
|
|
|
|
|
You don't want the xaml to do the work. Hook up a button and write the code in the event. Here's a sample that I wrote that will open the file dialog box with a .zip filter. This code is for 3.5 sp1, it is slightly different in earlier versions.
Dim myDialog As New Microsoft.Win32.OpenFileDialog
Dim sourceFilePath As String = ""
myDialog.Filter = "Zipped Files(*.zip)|*.zip"
myDialog.CheckFileExists = True
myDialog.Multiselect = False
If myDialog.ShowDialog = True Then
sourceFilePath = myDialog.FileName
Else
|
|
|
|
|
Thanks, I will try it,
David
|
|
|
|
|
Hi!
I hope someone can help me with this:
I have an enum as itemssource for combobox and I want to bind selected item in this combobox with property of some object. How do I do that?
For instance, let's say this is enum:
public enum AlarmTypes
{
LOW,
HIGH
}
and there is class Alarm which has AlarmType property:
public class Alarm
{
...
private string alarmType;
public string AlarmType
{
get { return this.alarmType; }
set { this.alarmType = value; }
}
....
}
and of course ComboBox is defined in XAML:
<objectdataprovider
x:key="AlarmTypes"
="" methodname="GetValues" objecttype="{x:Type System:Enum}">
<objectdataprovider.methodparameters>
<x:type typename="enumns:AlarmTypes">
...
<combobox name="alarmTypeComboBox" itemssource="{Binding Source={StaticResource AlarmTypes}}">
I tried to solve this in many ways but none of them was completely successful. Thanks in advance!
|
|
|
|
|
|
Hi All,
I am working on Silverlight 2.0.
I have a grid (which is actually a menu) in my silverlight page. I want this grid to have a floating capability, that is, as and when the user scrolls, it should always stick to the bottom of the page or at the centre of the page page. Even when the page is minimized/maximized, this grid should be placed to the bottom of the page.
Is there an option in silverlight to dock a control to the any particular portion of the page ?
Is coding necessary to create such an effect?
Any pointers to online samples or code snippets will be really helpful.
Thanks in advance.
Sunil
|
|
|
|
|
The layout of the Silverlight control plugin on a page is
an HTML issue and outside the scope of this message board.
For layout within your Silverlight app, you need to use the
elements that give you the functionality you need.
A couple possible solutions:
The Silverlight Toolkit[^] has a DockPanel element you could use
to fix the grid at the bottom.
You could also use an outer grid with two rows - the first row
star-sized, and the second row fixed/auto sized. Put the grid you
want fixed to the bottom in the second row of the outer grid.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark,
I suppose there is a disconnect in the issue that i am facing and the your understanding of my issue.
I do know that silverlight is a plugin. What I wanted to achieve is like this:
1. A complete silverlight web page.
2. A menu (silverlight control) that floats top of this silverlight page. When the user scrolls the silverlight page, the menu should still be as docked botttom to the page.
I hope i am clear. Please let me know if I should elaborate the problem.
Thanks.
Sunil
|
|
|
|