|
hi
i am making a windows phone app which reads the text from the content file in project.How can we read the text of the content file into a text box .
Is there any way to bind the file with button and then read the file on click event?
Plz help
Thanks in advance
|
|
|
|
|
I need to implement payment process in silver light using ssl.
Anyone have idea on it?
|
|
|
|
|
saroja241 wrote: I need to implement payment process in silver light using ssl.
I believe, it's possible, however no one want to develop payment gateway in silverlight, since it's front end and reside on client computer. if you mean to say you want to get all information regarding client details and credit card through silvelight front-end, then that possible, you can call webservice to communicate to server about this information and based on what is returned, code your logic
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
The program runs perfectly on my machine but when I try to execute it on an other machine, it crashes after the splash screen. I have checked the event viewer and I have copied the following stack report. I am sure that if can access the details of the inner exception to see what causes the crash I am also sure that I would be able to solve my problem. I have already lost 1 week because of this issue. Please give me an idea for solution and sorry for my poor English.
Uygulama: Safir.exe
Framework Sürümü: v4.0.30319
Açıklama: İşlenmeyen bir özel durum nedeniyle işlem sonlandırıldı.
Özel Durum Bilgisi: System.Windows.Markup.XamlParseException
Yığın:
konum: System.Windows.Markup.XamlReader.RewrapException(System.Exception, System.Xaml.IXamlLineInfo, System.Uri)
konum: System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader, System.Xaml.IXamlObjectWriterFactory, Boolean, System.Object, System.Xaml.XamlObjectWriterSettings, System.Uri)
konum: System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader, Boolean, System.Object, System.Xaml.Permissions.XamlAccessLevel, System.Uri)
konum: System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream, System.Windows.Markup.ParserContext, System.Object, Boolean)
konum: System.Windows.Application.LoadBamlStreamWithSyncInfo(System.IO.Stream, System.Windows.Markup.ParserContext)
konum: System.Windows.Application.LoadComponent(System.Uri, Boolean)
konum: System.Windows.Application.DoStartup()
konum: System.Windows.Application.<.ctor>b__1(System.Object)
konum: System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
konum: MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
konum: System.Windows.Threading.DispatcherOperation.InvokeImpl()
konum: System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
konum: System.Threading.ExecutionContext.runTryCode(System.Object)
konum: System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode, CleanupCode, System.Object)
konum: System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
konum: System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
konum: System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
konum: System.Windows.Threading.DispatcherOperation.Invoke()
konum: System.Windows.Threading.Dispatcher.ProcessQueue()
konum: System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
konum: MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
konum: MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
konum: System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
konum: MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
konum: System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
konum: MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
konum: MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
konum: System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
konum: System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
konum: System.Windows.Threading.Dispatcher.Run()
konum: System.Windows.Application.RunDispatcher(System.Object)
konum: System.Windows.Application.RunInternal(System.Windows.Window)
konum: System.Windows.Application.Run(System.Windows.Window)
konum: System.Windows.Application.Run()
konum: Safir.App.Main()
|
|
|
|
|
I'd guess a control or library is missing on that machine or you are trying to access some resource that is missing.
|
|
|
|
|
Thanks for reply. I thought that but the problem is how I can know which library is missing.
|
|
|
|
|
Try copying all the binaries + matching .pdbs over to the other machine. You can install WinDbg which is a very small debugger from Microsoft (just a few MBs) vs. Visual Studio and debug through there.
|
|
|
|
|
Thank you WinDbg has helped me to figure out what is missing.
|
|
|
|
|
I need a binding in SolidColorBrush color value inside my theme. So basically, instead of
<SolidColorBrush x:Key="TextBrush" Color=" #FF000000" />
I want something like -
<SolidColorBrush x:Key="TextBrush" Color="{Binding ColorVal}" />
Property could be defined something like this:
namespace ns
{
public class BindingClass
{
public Color ColorVal
{
get
{
return Color.FromRgb(255, 0, 0);
}
}
}
}
Hopefully it's possible. What should I write instead of 'Binding expression' in XAML theme?
Update:
I've got one solution-
On top,
xmlns:local="clr-namespace:ns"
Then a Resource key,
<local:BindingClass x:Key="BindingClassKey"/>
Finally binding,
<SolidColorBrush x:Key="TextBrush" Color="{Binding Source={StaticResource BindingClassKey}, Path=ColorVal}" />
Any better solution?
modified 23-Dec-11 6:19am.
|
|
|
|
|
Hi,
At present I am using an xml file to retrieve data for menu (Navigation of pages).
The xml looks like the following.
Question:
How can I make the menu to show sub menus i.e. menu within a menu?
Thanks
="1.0"="utf-8"
<Navigations>
...
<Navigation>
<item>Converter</item>
<tag>/UserControls/Converter.xaml</tag>
</Navigation>
<Navigation>
<item>Page1 view</item>
<tag>/Views/Page1.xaml</tag>
</Navigation>
<Navigation>
<item>Test Page</item>
<tag>/Views/Test.xaml</tag>
</Navigation>
...
</Navigations>
|
|
|
|
|
Just have menu levels in your xml file.
<Navigation>
<item>Converter</item>
<tag>/UserControls/Converter.xaml</tag>
<FirstLevel>
<item> sub level</item>
<tag>sub level</tag>
</FirstLevel>
</Navigation>
<Navigation>
<item>Page1 view</item>
<tag>/Views/Page1.xaml</tag>
</Navigation>
<Navigation>
<item>Test Page</item>
<tag>/Views/Test.xaml</tag>
</Navigation>
Too much of heaven can bring you underground
Heaven can always turn around
Too much of heaven, our life is all hell bound
Heaven, the kill that makes no sound
|
|
|
|
|
Yes, but how do I make it appear on the UI?
At present, I just read the item and tag of the xml file.
Does this mean that if I also read the FirstLevel element, then it will automatically show up in the UI and a sub level menu?
Thanks
|
|
|
|
|
It will not automatically show up.
Silverlight Menu[^] might give you an idea on what you would need to do to show a submenu.
|
|
|
|
|
I have a entitycollection and assigned a readonly property for each property of the entity. So that I can define whether they can be modified in Datagrid.
For example,for the same property NAME, it is allowed be be edited for some entities but others not.
But seems there is not a DataGridCell.IsReadOnly in silverlight as in WPF.
Anyone of you have met similar case ? or know that the silverlight 5 will get this supported?
|
|
|
|
|
Hi,
I am using a silverlight application which intern uses a wcf service which uses the controllers. We are following MVVM and Prism pattern.
While updating or retrieving the data, I am getting the following error. I have switched my VM machine from one domain to another domain and user name.
"The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'"
Can anybody know why I get this error and how I can resolve it. Any kind of help or link or suggestion would help me greatly.
Thanks,
Abdul
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
|
Hi Raj,
I got it solved, thanks for the help. I needed to make some settings in the IIS. It was due to user authentication issues.
Thanks,
Abdul
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
Hello all, is there anyway that i can make a session on silverlight that in case the client did refresh no need then to loggin again.
Thank You
Nassim Beiruty
|
|
|
|
|
Hello all,
i have a question about SL Child Window ,
we have child window and have a notification boarder that appear for 5 seconds in the bottom right corner of the screen , this border appear to notify the user with the result,
finally if the child window is opened, the confirmation boarder appear under this child window, and this as the issue
i tried to increase the Zindex of the boarder but nothing
any help
|
|
|
|
|
Hello!
This is my first software project using Adobe Illustrator files as interface elements. I use Microsoft Blend 4 to import those files and build my interface. The problem is simple, when I import (File -> Import Adobe Illustrator file...) and take a look at my elements, they are slightly different from the original. Mostly the colors and gradients. Can someone help me please?
|
|
|
|
|
Hi All,
I have a silver light application where I am trying to access a csv file by using the following way
List<string> listoflines = (List<string>)File.ReadLines(@"C:\Users\amohammad\Desktop\Bugs\30958\tasksandtaskstatuses2.csv");
But its giving my Access Denied message. Is there any way to read a file in silverlight. But I dont want to use the use FileStream or StreamReader. Because I want to read all the lines at a time and assign in the above way.
Is there any way to access the read the files in silverlight irrespective of its access rights. Because here we are just reading the file. I know that if we keep it in my documents then I can read the files. But Can I read the files irrespective of its location and access rights.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
If you think about what you are asking for a minute, you can see that the ability to read any file at any location using a method like this, regardless of access rights, would represent a huge security vulnerability.
|
|
|
|
|
Hi,
I know it but when I trying to access a csv file I am getting that error, is there any way to access file from a silverlight application and read all the lines at once and process that data any example or link would help me greatly.
Thanks,
Abdul
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
As Pete was not very clearly hinting, you aren't allowed to access the local file system in silverlight because thats a security breach. Imagine if any web site could install a silverlight app on your machine and access your c:\documents\bank records.doc and make a copy. Not good!
If you are using SL4, there is a work-around as you can access the local file systems *IF* your app is running with elevated permissions and is trusted. Even then, you only have access to a few folders. Again, a security consideration.
In SL3 and below, you can not access the local file system at all.
|
|
|
|
|
Hi,
How to enable out of browser, elevated trust for the application and make it is trusted.
I dont know how to do it?
Thanks,
Abdul.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|