|
I have an example about wpf but it has an error. But I can not post or attache my example for everybody can help me. Please help me. Thank you very much.
|
|
|
|
|
You could always upload it to a service such as Windows Live, or Dropbox and then provide a link here.
|
|
|
|
|
Is it just a code snippet? If so, you can just paste it here with Encode "<" (and other HTML) characters when pasting checked. Then you can surround it in a PRE block and specify the lang attribute. With WPF XAML, you'd specify the lang as "XML". For example, typing this:
<pre lang="xml"><Window x:Class="MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<TextBlock>Hello World</TextBlock>
</Grid>
</Window></pre>
Will produce this:
<Window x:Class="MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<TextBlock>Hello World</TextBlock>
</Grid>
</Window>
And if you had some VB.Net, you'd specify the lang as "VB", like so:
<pre lang="vb">Class MainWindow
Public Sub DoStuff()
Dim x As Integer = 5
End Sub
End Class</pre>
Which would look like:
Class MainWindow
Public Sub DoStuff()
Dim x As Integer = 5
End Sub
End Class
If you click the "Preview" button before you post, you can make sure the code looks as you intended.
|
|
|
|
|
I am displaying date in my .XAML page
In .XAML.VB
e.g
variablename = date.now()
But it is returning my client date. i want to display server date.
One person's data is another person's program.
--J.Walia
|
|
|
|
|
You'd have to call a method on the server side through a WCF call. Be aware, though, that because of latency issues, the value that you receive would be the time that the server received and processed the request, and then by the time the message was transmitted back there would be extra latency involved.
|
|
|
|
|
how i can handle this??
One person's data is another person's program.
--J.Walia
|
|
|
|
|
I already told you. Use WCF.
|
|
|
|
|
For many applications they in fact use the database datetime for being consistent. in Oracle this could be Select getdate() from dual; I believe.
V.
|
|
|
|
|
V. wrote: in Oracle this could be Select getdate() from dual
No it isn't - Oracle uses select sysdate from dual. Why would you consider doing this though? If you have a web server, then the application has access to the server time anyway, why on earth would you expect it to make an unnecessary call to a database. Bear in mind that the db connection might need to be created which is an expensive operation and database connections should not be squandered on trivial tasks like this; it it's a high traffic site then this is an unnecessary waste of resources.
Supplying the date in this format should only be used when attempting to perform an operation on the database, e.g. an insert or update.
|
|
|
|
|
I wasn't 100% sure about the select statement, it might very well have been select sysdate from dual;
You can argue about the design, but the concept of taking the database datetime does exist. I never said I was pro or con. If you use more then 1 webserver you also need additional setting up for making sure the time is equal (granted this can be done via time synchro eg).
V.
|
|
|
|
|
Is there a way to change the cursor for every control at once? Or do I have to visit every single control and flip each one individually. I have a stackpanel, but changing the cursor on the stackpanel doesn't affect any of the controls in the stackpanel. The treeview in the stack panel has numerous checkboxes, images and other things. It seems impractical that I have to set the cursor on each control.
Thanks
Brent
|
|
|
|
|
Try using Mouse.OverrideCursor .
|
|
|
|
|
I'm sorry I forgot to mention I'm in Silverlight which apparently doesn't have Mouse.OverrideCursor, unless I'm missing a reference.
Brent
|
|
|
|
|
|
Thanks to your prior post, I had just Googled into that same page when I got your response.
Thanks
Brent
|
|
|
|
|
|
Hi, I am looking for a framework that runs for .NET 3.5 or better for 4.0 that support pluggable gadget system for windows user interface development. I want to develop a main container window application that can load gadgets that I or my team develop. User could manage gadget like google home page..add gadget and set layout. Also there must be interface to talk each gaget with the container static components or other gadgets. Is there a framework that is written open source or paid api?
karanba
|
|
|
|
|
You could always look at using Prism[^] for this.
|
|
|
|
|
You should look into MEF/MAF. Choosing among MAF or MEF is left with you.
http://mef.codeplex.com/
HTH
|
|
|
|
|
Hi ,
We created Prism WPF application.we have to pass some parameters(some information) to modules(they are instantiated by Bootstrapper) from Main method of App.xaml
Thanks in Advance.
Mukesh
|
|
|
|
|
Are you using the Unity container?
You could add your parameter to it.
Another way, though not the best (not recommended but a workaround really), could be to add your parameter to the app.xaml's resources.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
Simplest method is to add them to InitParams, then parse out into Application resources in app.xaml
C# has already designed away most of the tedium of C++.
|
|
|
|
|
unable to start debugging. The Silverlight managed debugging package isn't installed
|
|
|
|
|
This is part of the question below. You should continue on that thread, rather than starting a new one off - that is bad practice on the forums.
|
|
|
|
|
i want answer not your suggestion.if you have no answer then don't be a over smart
|
|
|
|