|
You would normally do this using a data trigger[^].
"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
|
|
|
|
|
Hi All,
I get that Silverlight has security on reading directories, and that is fully understandable. What I need to do is read the directories on the web site that the silverlight control is hosted in. This will be hosted on my server, so there is no real risk that I will write code that is going to damage my server. I am still new to Silverlight, but not new at all to coding.
I am starting to think that it is impossible to do directly in silverlight. I was thinking that I could write a service that returns the info needed, but that is overkill for what I am doing, and can become a security risk itself.
Please let me know IF I can do it, and how.
Thanks in advance.
Thanks,
Brad
|
|
|
|
|
Member 1269473 wrote: I was thinking that I could write a service that returns the info needed, but that is overkill for what I am doing
Silverlight apps run on the client so there's no way
they can read anything on the server without making a request
to the server.
A web server like IIS can provide directory browsing, but do you really
want to turn that on? Same implications as implementing your own directory
service...
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
No, I definitely don't want to do that.
Looks like I will have to create a WCF Service or something so that I can get the info I want.
It just seems like a PITA to go through to get what I want.
Thanks.
Thanks,
Brad
|
|
|
|
|
Member 1269473 wrote: It just seems like a PITA to go through to get what I want.
Maybe, but that isn't a Silverlight issue - that's web servers.
If everyone wanted their web directories to be browsable then that
feature would be on by default
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi
I am new wpf and 3D. I want to know how to draw cross section line while mouse enter like (Auto cad) in WPF
Regards
Gopal
|
|
|
|
|
I want to set Rowspan for DataGrid's row using code-behind.
Can anyone please tell me how is it possible?
Thanks,
Dipak
|
|
|
|
|
AFAIK, DataGrid does not have a rowspan property.
A Grid has a row span and can be set in codebehind as follows
Grid.SetRowSpan();
There are only 10 types of people in this world — those who understand binary, and those who don't. |
|
|
|
|
|
Hi
I have problem for displaying jagged line(not smooth vertex) in 3d cube in wpf.
Please let me know how to solve it
|
|
|
|
|
|
Hi
I didn't have this path in my registry
(Avalon.Graphics\MaxMultisampleType)
Only having HKEY_CURRENT_USER\SOFTWARE\Microsoft this path
|
|
|
|
|
|
Hi
Thanks for your solution
|
|
|
|
|
Hi
I have download above registered key
http://blogs.msdn.com/karstenj/archive/2005/09/28/475040.aspx
and installed my system. but still i am getting jagged line. is it my video card not supported? if so what type of card will get supported
Regards
Gopal
|
|
|
|
|
I had to play with video card setup to get it turned on ... even after adding the registry key ...
|
|
|
|
|
I am writing a WPF app that loops thru a series of windows. The first time thru, I need to create the next window, but on subsequent times, I want it to re-display the previously created window. I believe the function TryFindResource() should help me do this, but it's not working. See code below.
Private Sub btnGo_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs)
Dim nextWindow As Window = CType(TryFindResource("Window3"), Window)
If (nextWindow Is Nothing) Then
nextWindow = New Window3
nextWindow.Show()
Else
nextWindow.Show()
End If
End Sub
Appreciate any help with this. Yes, this is my first WPF app.
|
|
|
|
|
I changed the line with TryFindResource() to:
Dim nextWindow As Window = CType(Application.Current.TryFindResource("Window3"), Window)
The change made no difference. It still doesn't find the existing instance of Window3.
|
|
|
|
|
Try a static/shared field - These are related to the class itself, not to the instance of the class:
In the Window3 code:
Private Shared _currentInstance as Window3
Public Shared Function GetInstance() As Window3
If _currentInstance Is Nothing Then
_currentInstance = New Window3
End If
GetInstance = _currentInstance
End Function
Also, be sure to add code to the OnClosing, or some similar location, to set _currentInstance back to Nothing if you close Window3.
And in your btnGo code:
Window3.GetInstance().Show()
Oh, and might want to consider giving Window3 a more meaningful name.
|
|
|
|
|
Thanks! That works, except it does shift focus to the "called window". If you can help me out here too, I would appreciate it. WPF makes me feel pretty helpless. I didn't realize it was so different from WinForms.
|
|
|
|
|
Actually I think I got. It's probably not the best way, but I can do what I need by playing with the "topmost" property.
Thanks.
|
|
|
|
|
I need a program in PHP which can extract the hidden biders from ebay.I will have to insert the item number and the program must show me all bidders of the auction and their emails.
Also the same program must extract the registered contact information for any specified bidder specially the email address
I will pay for this
If someone can help please contact me at totos_back@yahoo.com
Thanks
|
|
|
|
|
totolcm wrote: I need a program in PHP
The only thing you got right is that WPF and PHP both contain the letter P.
totolcm wrote: I will have to insert the item number and the program must show me all bidders of the auction and their emails.
Also the same program must extract the registered contact information for any specified bidder specially the email address
There's a reason that this info is hidden by a user, and they aren't going to want it made visible by somebody else. I doubt that this functionality is possible without hacking.
"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
|
|
|
|
|
Hi all,
I am getting the following error in Silverlight when i integrated silverlight with my previus application this error i am not getting on every system ..
Unhandled Error in Silverlight Application An exception occurred during the operation, making the result invalid. Check InnerException for exception details
how to fix this issue.
thanks,
Amit Patel
|
|
|
|
|
You will need to proved some code (or more information - silverlight verion etc) before anyone here can help you.
There are only 10 types of people in this world — those who understand binary, and those who don't. |
|
|
|
|
|
Did you check the InnerException for details?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|