|
XNA is a gaming framework built on top of DirectX. It's like asking how does a button relate to GDI+.
|
|
|
|
|
Doesn't it also depend on what part your using?
I've been looking into audio support for my app recently and it seems that XAudio2 is going to be a complete wholesale replacement of DirectSound. XAudio2 being cross platform between XBox and PC.
Hmm ... I'm really not making any progress on my audio implementation either
Jammer
Going where everyone here has gone before!
My Blog
|
|
|
|
|
Jammer wrote: Doesn't it also depend on what part your using?
I've been looking into audio support for my app recently and it seems that XAudio2 is going to be a complete wholesale replacement of DirectSound. XAudio2 being cross platform between XBox and PC.
Hmm ... I'm really not making any progress on my audio implementation either
Interesting - I've not looked into DirectSound recently (beyond having done some stuff with DirectX filters for Sonar).
|
|
|
|
|
Really? I use SONAR as my main tool of choice for my recording studio
www.product23.co.uk
Jammer
Going where everyone here has gone before!
My Blog
|
|
|
|
|
Jammer wrote: I use SONAR as my main tool of choice for my recording studio
Cool. I love Sonar (it just fits easier with my being a guitarist), and I compose on Sibelius.
|
|
|
|
|
So XNA is some kind of a wrapper to DirectX, just as WPF is, correct?
|
|
|
|
|
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
|
|
|
|