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.
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
I am having the requirement like drawing the database relationship diagram.
Please find the sample image in the below path.
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.
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.
hi guys ,
i am using ve silver map ctrl and i have some problem..
namespace SilverlightApplication1.Web<br />
publicpartialclass _Default : System.Web.UI.Page<br />
protectedvoid Page_Load(object sender, EventArgs e)<br />
// Initialize the service variable which makes the request <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 />
// Create the TokenSpecification object to pass to GetClientToken.<br />
TokenWebReference.TokenSpecification tokenSpec = new TokenWebReference.TokenSpecification();<br />
// Use the ‘Page’ object to retrieve the end-client’s IPAddress.<br />
tokenSpec.ClientIPAddress = Page.Request.UserHostAddress;<br />
// Set the expiration time of the token.<br />// The maximum allowable token duration is 480 minutes (8 hours).<br />// The minimum allowable duration is 15 minutes.<br />
tokenSpec.TokenValidityDurationMinutes = 480;<br />
// Make the GetClientToken request to retrieve a token from the Virtual Earth Token Service. <br />// Pass this token to the Silverlight application.<br />
s1.InitParams = "clientToken= " + commonService.GetClientToken(tokenSpec); <br />
Using that, you could pass parameters something like this
// Initialize the service variable which makes the request
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");
// Create the TokenSpecification object to pass to GetClientToken.
TokenWebReference.TokenSpecification tokenSpec = new TokenWebReference.TokenSpecification();
// Use the ‘Page’ object to retrieve the end-client’s IPAddress.
tokenSpec.ClientIPAddress = Page.Request.UserHostAddress;
// Set the expiration time of the token.// The maximum allowable token duration is 480 minutes (8 hours).// The minimum allowable duration is 15 minutes.
tokenSpec.TokenValidityDurationMinutes = 480;
// Make the GetClientToken request to retrieve a token from the Virtual Earth Token Service.// Pass this token to the Silverlight application.return"clientToken= " + commonService.GetClientToken(tokenSpec);
BTW (FWIW), through Silverlight version 2, there was a asp:Silverlight
ASP.NET control that you could use the way you were trying, but as of
Silverlight 3, that control is deprecated (only there for Silverlight 2