|
Karl - how dare you get some sleep? I've been fielding questions on my own
|
|
|
|
|
Yep,
Being 5 hours behind you, helps my stress level! LOL!
modified 27-Feb-21 21:01pm.
|
|
|
|
|
Karl Shifflett wrote: Being 5 hours behind you, helps my stress level! LOL!
I'm glad I can help.
|
|
|
|
|
Pete,
Help??? You are The Man. We are all very lucky to have you provide assistance to us in this forum.
Thanks for helping all of us!
modified 27-Feb-21 21:01pm.
|
|
|
|
|
Karl Shifflett wrote: Help??? You are The Man. We are all very lucky to have you provide assistance to us in this forum.
Karl. You don't know how much that means to me coming from a WPF guru like yourself. I count myself lucky to be on a site that has people like yourself, Josh and Sacha on it. Your articles are a real inspiration.
Wow - enough self congratulations from us. Let's just admit that we're "The Men".
|
|
|
|
|
Just two regular guys keeping it real and returning back to the community that helped us get going and keep our sanity.
modified 27-Feb-21 21:01pm.
|
|
|
|
|
Karl Shifflett wrote: Just two regular guys keeping it real and returning back to the community that helped us get going and keep our sanity
I'd go with that.
|
|
|
|
|
I just went to the Microsoft "Heroes Happen Here" launch event and I'm really excited about WPF. However, all of my work is currently in C++ and at least for the next year or so will likely stay there.
I've been looking at some of the tutorials about hosting WPF content in a Win32 app, and this seems like kind of a no brainer, but the tutorials never get past the "here's how you do it procedurally".
I would very much like to be able to author forms and dialogs in Expression Blend and then load them from my C++ Win32 app.
Does anyone have any good tutorials, or have straight forward code snip-its for doing this? Is this even a reasonable thing to try to do?
Thanks in advance...
Adam
|
|
|
|
|
|
Basically your going to have to make do with intermediate C# / VB / Blend projects. The example looks like it has to be a loose XAML file as well (no class definition using an x:Class="" declaration.
In Blend you end up with a partial class code-behind which I'm almost sure would blow up in your scenario.
<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Main="clr-namespace:WPFWindows"
xmlns:d="http://schemas.microsoft.com/expression/blend/2006"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="WPFWindows.Navigator3"
Width="Auto" Height="Auto">
Jammer
Going where everyone here has gone before!
My Blog
|
|
|
|
|
Hi there!
I was wondering if there's a possibility to switch IE Editmode ON inside a WPF FRAME-control. Is it possible? And if yes, how?
I'm quite new to WPF and there are _some_ gaps to fill...
Is there any elegant way of handling HTML viewing/editing?
Best regards,
Stevie
Greetings,
Stephan Eberle
hawke@deltacity.org
|
|
|
|
|
Stevie - sorry about not getting to this question before now. I'm trawling through the unanswereds, but to answer your question - no there's no way to switch editmode on inside a frame control. You could always host an IE browser control (the winforms version) inside your app and use that.
|
|
|
|
|
I'm creating an application which allows the user to drag and drop pre-defined things around on a canvas. These things are often simple graphics primatives, rectangles, circles etc. or a combination, or slightly more fancy - wavey boxes and so forth.
A path seems to do the job here but I'd like suggestions on how to define it. I'm using VS2008, Exression Blend and I've been playing around with Expression Design as well. Where these tools overlap confuses me. What's the best tool to create such things?
Regards,
Rob Philpott.
|
|
|
|
|
Yeah I know what you mean ... I've been working with Design and Blend also. As far as I can tell the only way to look at it is Design is for asset creation and Blend is for assimilating them into a bigger picture. The cross over between the two is massive.
That said I think the pen tool in Design (Arguable THE tool for vectors) is a bit more (arbitrarily) powerful.
I think the whole 'devigners' angle that MS is pushing is also completely overrated. None of the designers I know would be happy working with either application. I've been working on a project using the Infragistics controls (very good) and sometime my scrolly finger is knackard whizzing up and down through the properties panel! Most of the concepts in there are completely alien to the average graphic designer.
Sounds to me like you could get away with just using Blend if the shapes are pretty simple. One thing that Design is good for is tracing imported images (.jpg, .bmp) and creating XAML vectors for out put to a Canvas or Resource Directory.
Oh BTW, I've been pouring over your ASIO demo ... nice work ... confuses the **** out of me as I have no C++ experience but I have to get ASIO working in an app I'm working on ... scary!
Jammer
Going where everyone here has gone before!
My Blog
|
|
|
|
|
Thanks for this Jammer,
Yeah, its seems I'm getting a bit stuck on the WPF stuff. I've read a lot about it all including the books of Nathan and Petzold, both of which are really good but when I come to sit at my computer and try to do something with it I hit a blank. I think I need to retrain my brain to stop thinking in GDI.
The thing I'm trying to do is actually on the follow up to the ASIO article, the software synthesiser which allows you to create and connect together in any way imaginable audio components, and WPF seems to lend itself to this well with its vector graphics to creating a designer. I suspect it would probably take me longer to implement this one part than all the audio stuff though so I need to have a rethink maybe.
I know what you mean about C++, it's been some years since I've done any work in it and going back confused me a great deal especially now there are managed things in the mix. There was a vast amount of trial and error to get the ASIO component working, it by no means just fell together! Drop me a line if I can assist.
Regards,
Rob Philpott.
|
|
|
|
|
Sounds to me (no pun!) that we should actually have a chat. I run a recording studio and the tool i'm building is for musicians as well ... also in WPF ...
I've also been involved in commercial hardware synthesiser design projects ... maybe we can help each other out?
Jammer
Going where everyone here has gone before!
My Blog
|
|
|
|
|
Ah, we share an interest then by the sounds of it! Wow, so do you know some good algorithms for filters and FX then? I'm snowed under with real work at the moment but when I get the chance I'll drop you a line outlining what I'm trying to do and see if our paths cross.
Regards,
Rob Philpott.
|
|
|
|
|
Sounds great chap ... look forward to hearing more.
Jammer
Going where everyone here has gone before!
My Blog
|
|
|
|
|
Also WPF and GDI are so different its amazing.
I've done VERY little in the way of GDI but what I do know WPF is the easier of the two in ordre to achieve something professional looking quickly.
The real problem I have with WPF at the moment is debugging. Its a nightmare. The interface in my app is steadily growing in complexity with several data grids, a stack of labels, combos, text boxes, buttons, shapes, tab controls etc. etc ... then bam VS informs me of that lovely error:
"Object not set to an instance of an object" in the XAML design view. At the same time Blend rendered the screen without complaint. Turned out to be a dodgy command binding in the XAML, the compiler won't help with that so I ended up systematically pulling elements out of the XAML in order to locate the object that was producing the error ... it feels a bit hairly ripping an interface file apart in order to find a problem.
XAML is very cool tho ... you NEED these tools:
Mole v4
http://karlshifflett.wordpress.com/mole-for-visual-studio/[^]
http://msdn2.microsoft.com/en-us/library/ms742398.aspx[^]
And lob this into your app.config ...
<system.diagnostics>
<sources>
<source name="System.Windows.Data"
switchName="SourceSwitch" >
<listeners>
<add name="textListener" />
</listeners>
</source>
</sources>
<switches>
<add name="SourceSwitch" value="All" />
</switches>
<sharedListeners>
<add name="textListener"
type="System.Diagnostics.TextWriterTraceListener"
initializeData="DebugTrace.txt" />
</sharedListeners>
<trace autoflush="true"
indentsize="4"></trace>
</system.diagnostics>
Jammer
Going where everyone here has gone before!
My Blog
|
|
|
|
|
|
I've been looking through animation tutorials for WPF and they all seem to use the "RoutedEvent" inside an event trigger that is hooked up to the form loading or a button being pressed....
But how would I, say, launch an animation when my SQL query has finished or when a file has finished loading, etc, etc.
Is there just some simple "Do this animation now" command I can call on a story board??
Thanks.
|
|
|
|
|
|
Hi.
I have a class library with a class that requires a dependanct property to be included. So I've referenced WindowsBase and inserted Using System.Window.
I've used the following code to set up the dependancy property:
<br />
public bool IsChecked<br />
{<br />
get { return (bool)GetValue(IsCheckedProperty); }<br />
set { SetValue(IsCheckedProperty, value); }<br />
}<br />
<br />
public static readonly DependencyProperty IsCheckedProperty =<br />
DependencyProperty.Register("IsChecked", typeof(bool), typeof(EdgeProperty), new UIPropertyMetadata(false));<br />
<br />
I can see that the DependencyProperty class is referenced and all is fine. However, the methods 'GetValue' and 'SetValue' do not exist. I know these are from the DependancyObject class, which is referenced.
Anybody know what's going on?
Cheers,
Chris
|
|
|
|
|
What does your class inherit from?
|
|
|
|
|
Chris,
Using Visual Studio, add a new project to your solution, a WPF Custom Control library.
After you create it, you can delete the Themes folder and the custom control it creates by default.
Now move your class into this project and everything will work fine.
modified 27-Feb-21 21:01pm.
|
|
|
|