|
Yoyosch wrote: So XNA is some kind of a wrapper to DirectX, just as WPF is, correct?
Superficially yes. It's designed to make creating XBOX and Windows games easier than doing it in raw DirectX.
|
|
|
|
|
Thanks, that`s all what i wanted to know.
|
|
|
|
|
After a bit of head scratching, I finally discovered how to marshal calls to the UI thread using the dispatcher object - and it turns out the whole process will be familiar to anyone who has done the same with Winforms:
private delegate void dUpdate();
private void update()
{
if (this.Dispatcher.CheckAccess())
{
}
else
{
this.Dispatcher.BeginInvoke(new dUpdate(this.update), new object[] {});
}
}
Now the reason this involved some head scratching is that the CheckAccess property of the dispatcher doesn't actually appear in intellisense. Would that reason be because this is still a beta and the bugs are still being ironed out, or is it likely that MS will remove it from Silverlight at some point (I note, however, that the dispatcher and this method is very important to fully-blown WPF)?
|
|
|
|
|
martin_hughes wrote: I finally discovered how to marshal calls to the UI thread using the dispatcher object - and it turns out the whole process will be familiar to anyone who has done the same with Winforms:
Great! thanks for sharing..
Some from SL forum shares the following code too. Ref http://silverlight.net/forums/p/665/1129.aspx[^]
new Thread(()=> {
mySilverlightTextBlock.Dispatcher.BeginInvoke(()=> mySilverlightTextBlock.Text = "Updated from a non-UI thread.");
}).Start();
|
|
|
|
|
Bugs in the beta. As this is the usual method in WPF, I don't see them dropping it so I suspect that the Silverlight designer is at fault.
|
|
|
|
|
|
pratap21b4u wrote: sfsdfsfsdf
The medication kicking in for you is it?
|
|
|
|
|
|
Hi All,
I am working with WPF application but i am new with that so i have to add bitmap on button at bottum.
can anybody give some idea how can i add images on button and text at top of the button in WPF Application?
Thanks
Bankey
|
|
|
|
|
Well, from memory you could always assign one like this
:<Button Width="75" Height="40">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<TextBlock Grid.Row="0">
<AccessText>_Hello</AccessText>
</TextBlock>
<Image Grid.Row="1" x:Name="vista_png" Source="vista.png"/>
</Grid>
</Button>
|
|
|
|
|
|
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
|
|
|
|