|
Hi,
In my silverlight application I've many pages(1,2,3...), after logged in i'm showing default page. After that if i click on any page default loading (silverlight progress like rotating a default logo with continual increment of time) is going on.
Next if i click on the any other page of same page that silverlight progress is not showing. My silverlight pages have huge data, so for loading the data it takes time to show any page without showing any progress.
I need to show any progress bar on loading the data.... is it possible to show the progress bar in all pages while loading?
Regards,
Ravi Vellanki.
|
|
|
|
|
ravi.vellanky wrote: is it possible to show the progress bar in all pages while loading?
Yes.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Can you tell me how can i achieve this?
|
|
|
|
|
What part are you having trouble with?
Data loading is asynchronous in Silverlight so you can
display a progress control at the start of the download
and remove the progress control when the download completes.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Can you give me any sample application link on this progress bar?
|
|
|
|
|
Have you looked at the documentation?
ProgressBar Class[^]
1) Before you request data, show a ProgressBar.
2) If you're using a data retrieval method that reports download status, update the ProgressBar.
If no download status is available, you could set the ProgressBar's IsIndeterminate property to True.
3) When the data is received, hide and/or remove the ProgressBar.
Again - what part are you having trouble with?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hey all
I added silverlight to an existing asp.net project and used asp:Silverlight control to embed the silverlight, everything works fine.
I set color of my website body to LightGray but the silverlight control background is still showing white, I tried setting the control backcolor to Transparent but still no luck.
Any help will be appresaited.
Thanks.
|
|
|
|
|
The background of the plugin object (what you see before
any XAML is loaded) is set on the plugin object as described
here: Background (Silverlight Plug-in Object)[^]
Note the default is "white", and if you use transparent, I'm pretty sure
you'll see black.
Once there's Silverlight elements up, those elements will determine
the background.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks for your reply, it helped me alote
Mark Salsbery wrote: Note the default is "white", and if you use transparent, I'm pretty sure
you'll see black.
It did show a black background, i just set the windowless property to true, now it shows perfect.
Thanks again.
|
|
|
|
|
Morning folks,
I need to generate a grid programatically an image per cell in a grid-like fashion that could be 100 x 100 or more, so I need a high performance control that will be able to handle interacting with the grid once its loaded. I've tried a stack panel method which did work quite well but there seemed to be a bit of a performance lag on it. I'm a bit new to WPF so if you have any suggestions as to what would be best to use that's be fab
Thanks very much,
Becky
|
|
|
|
|
Hi
I am having the requirement like drawing the database relationship diagram.
Please find the sample image in the below path.
http://siebelunleashed.com/wp-content/uploads/2008/06/informaticasourcequalifierscreenshot.png
1. By default, each table icon is in the minimized state & is displayed as a clickable button.
2. If the user click on it, it will be maximized & all the columns displayed (with scroll, if number of columns exceeds its maximum limit)
3. The user can move the icons anywhere around the UI boundaries.
4. The user can minimize it back to an icon by clicking on the minimize botton.
5. There is a connector between related tables (primary/ foreign key relationship) Column wise connector is not required in my case. Only one connector between the related tables is required.
6. If the user clicks on the connector, the relationship details will be displayed in a popup window.
How can we implement the same in Web UI using Silverlight?
Till now, I have tried with WCF for the database connectivity & drawn few movable images (Image control with mouse event handlers) and connectors (line control) between them by created all the controls dynamically from code behind file (xaml.vb)
Kindly help us with your valuable suggestions on this.
Thanks
Jeyakumar
Jey
|
|
|
|
|
You should be able to do it similar to the way you'd
do it in WPF, except you won't have direct access to a
database from a browser so you'll need that info from a
server.
The Silverlight SDK[^] has lots of info on using
Silverlight controls and graphics.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
You don't need a DP here. This[^] article gives you some useful insights into using a BackgroundWorker with WPF, and can be easily adapted into MVVM.
"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
|
|
|
|
|
|
You're welcome.
"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
|
|
|
|
|
The DrawingGroup and GeometryDrawing classes are available in system.windows.media but it is not availble for me in silverlight3.0. What should I do ?
|
|
|
|
|
|
Hi,
I've a datagrid contains a list of items (Check boxes, link buttons and normal text) and a delete button above the datagrid.
After check the check boxes (one or more), i have to delete those rows from the datagrid by clicking the delete button which is placed above the datagrid..
How to achieve this .......... Pls help me out.......
Regards,
Ravi Vellanki
|
|
|
|
|
Use Foreach Loop And Make a string which have all id of that rows.
after that send this string in a stored procedure which use delete DML with IN clause.
i think your problem is solved...
|
|
|
|
|
I'm trying to use Log4net to log messages within my application. I'm adding a WPF window and want to stream the messages to the window. Log4net provides a TextWriterAppender that takes a StringWriter and writes logged events to the StringWriter, flushing it after each event.
I want to simply connect the output of the StringWriter as the Text property on a TextBox. When I started this, it seemed simple and obvious - now I'm less sure. Ideally, I would simply like to bind the StringWriter to the TextBox, but haven't found the incantation.
The basic problem is that the StringWriter doesn't provide something like the INotifyPropertyChanged event to trigger code output a new log message (unless there is something behind the scenes I haven't found).
I've see many examples of binding, all of which seem to presume that I have control over the writer itself. Am I missing something simple (I hope), or is this really not that straightforward.
Any thoughts/help appreciated.
Thanks,
--Don
|
|
|
|
|
Don - based on your post here, I knocked a sample application up using a custom appender. You can find it here[^].
"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 guys ,
i am using ve silver map ctrl and i have some problem..
default.aspx.cs
<br />
namespace SilverlightApplication1.Web<br />
{<br />
public partial class _Default : System.Web.UI.Page<br />
{<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
TokenWebReference.CommonService commonService = new TokenWebReference.CommonService();<br />
commonService.Url = "https://staging.common.virtualearth.net/find-30/common.asmx";<br />
commonService.Credentials = new System.Net.NetworkCredential("VE Account ID", "VE Account Password");<br />
<br />
TokenWebReference.TokenSpecification tokenSpec = new TokenWebReference.TokenSpecification();<br />
<br />
tokenSpec.ClientIPAddress = Page.Request.UserHostAddress;<br />
<br />
tokenSpec.TokenValidityDurationMinutes = 480;<br />
<br />
s1.InitParams = "clientToken= " + commonService.GetClientToken(tokenSpec); <br />
<br />
}<br />
<br />
}<br />
}<br />
and my default.aspx
<%@ Page Language="C#" AutoEventWireup="true" %><br />
<br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<html xmlns="http://www.w3.org/1999/xhtml" ><br />
<head id="Head1" runat="server"><br />
<title>SilverlightApplication1</title><br />
<style type="text/css"><br />
html, body {<br />
height: 100%;<br />
overflow: auto;<br />
}<br />
body {<br />
padding: 0;<br />
margin: 0;<br />
}<br />
#silverlightControlHost {<br />
height: 100%;<br />
text-align:center;<br />
}<br />
</style><br />
<script type="text/javascript" src="Silverlight.js"></script><br />
<script type="text/javascript"><br />
function onSilverlightError(sender, args) {<br />
var appSource = "";<br />
if (sender != null && sender != 0) {<br />
appSource = sender.getHost().Source;<br />
}<br />
<br />
var errorType = args.ErrorType;<br />
var iErrorCode = args.ErrorCode;<br />
<br />
if (errorType == "ImageError" || errorType == "MediaError") {<br />
return;<br />
}<br />
<br />
var errMsg = "Unhandled Error in Silverlight Application " + appSource + "\n";<br />
<br />
errMsg += "Code: " + iErrorCode + " \n";<br />
errMsg += "Category: " + errorType + " \n";<br />
errMsg += "Message: " + args.ErrorMessage + " \n";<br />
<br />
if (errorType == "ParserError") {<br />
errMsg += "File: " + args.xamlFile + " \n";<br />
errMsg += "Line: " + args.lineNumber + " \n";<br />
errMsg += "Position: " + args.charPosition + " \n";<br />
}<br />
else if (errorType == "RuntimeError") {<br />
if (args.lineNumber != 0) {<br />
errMsg += "Line: " + args.lineNumber + " \n";<br />
errMsg += "Position: " + args.charPosition + " \n";<br />
}<br />
errMsg += "MethodName: " + args.methodName + " \n";<br />
}<br />
<br />
throw new Error(errMsg);<br />
}<br />
</script><br />
</head><br />
<body><br />
<form id="form1" runat="server" style="height:100%"><br />
<div id="silverlightControlHost"><br />
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%"><br />
<param name="source" id="s1" value="ClientBin/SilverlightApplication1.xap" /><br />
<param name="onError" value="onSilverlightError" /><br />
<param name="background" value="white" /><br />
<br />
<param name="minRuntimeVersion" value="3.0.40624.0" /><br />
<param name="autoUpgrade" value="true" /><br />
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration:none"><br />
<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/><br />
</a><br />
</object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div><br />
</form><br />
</body><br />
</html><br />
<br />
my problem is that despite the fact i have set id="s1"
when compiled gave me an error which says that s1 doesn't exist in the context...
i would appreciate if you could help me..
|
|
|
|
|
The Silverlight plugin is on the client so accessing it
from ASP.NET code on the server isn't going to work
(even if you did put the "id="s1"" in the right place).
You can, however, pass initial parameters to the Silvelight plugin:
How to: Specify and Retrieve Custom Initialization Parameters[^]
Using that, you could pass parameters something like this
protected string GetSilverlightInitParams()
{
TokenWebReference.CommonService commonService = new TokenWebReference.CommonService();
commonService.Url = "https://staging.common.virtualearth.net/find-30/common.asmx";
commonService.Credentials = new System.Net.NetworkCredential("VE Account ID", "VE Account Password");
TokenWebReference.TokenSpecification tokenSpec = new TokenWebReference.TokenSpecification();
tokenSpec.ClientIPAddress = Page.Request.UserHostAddress;
tokenSpec.TokenValidityDurationMinutes = 480;
return "clientToken= " + commonService.GetClientToken(tokenSpec);
}
<form id="form1" runat="server" style="height:100%">
<div id="silverlightControlHost">
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
<param name="source" id="s1" value="ClientBin/SilverlightApplication1.xap" />
<big><param name="initParams" value="<%= GetSilverlightInitParams() %>" /></big>
<param name="onError" value="onSilverlightError" />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="3.0.40624.0" />
<param name="autoUpgrade" value="true" />
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration:none">
<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/>
</a>
</object>
<iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe>
</div>
</form>
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|