|
i have thousands of data to be bound in the combobox. it takes minutes to display the popup while clicking the combo. i have heared about the virtualisation. but how it could be applied to the ComboBox.
|
|
|
|
|
I would say that thousands of data should not be binded to the combobox. It will make the combobox very ugly and very slow to load. You should probably use another control (e.g. datagrid or listbox with paging.)
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
Microsoft MVP (Silverlight), WPF/Silverlight Insiders
|
|
|
|
|
I'd have to agree there. It's one thing to get them in the drop down, but then the user will have to select them. This sounds more like a pattern for doing a look ahead box or something similar (a text box that as you type, begins to build a partial drop down based on the text you've already entered).
If you had to do it for some reason, the key would be:
1. Use an ObservableCollection<t> when you bind to the list. This will make the control aware when the list changes.
2. Append to the list over time
That's more tricky - the async calls of course fire when done so you have the entire list and you'd still be waiting. Better would be to find a way to chunk up your calls, i.e. perhaps call alphabetically and bring back everything beginning with A, then B, etc. Then append to the list. This will make the drop down appear sooner and it will grow dynamically, but the question then becomes - is this even useful, if the user still has to wait a minute for a full drop down?
|
|
|
|
|
Hi,
I am working on RSS feeds using silver light. In this I need to access each item(feed) from the RSS feeds link and display it in my silver light application. I implemented a code for this but by this I am able to access only some RSS feeds only. It is not working for all the RSS links. I am getting error while accessing the feed items from RSS feeds.
Please reply me if anyone have any idea how I can make it work for all the RSS links and solve this error while accessing.
The code I have used is from:
http://www.dotnetcurry.com/ShowArticle.aspx?ID=252
Thanks in advance.
|
|
|
|
|
|
|
Basically, this binds the data context of the ItemsSource to the data context of the ItemsControl (which works it's way up the visual tree until it finds a data context). This means that the datacontext you are looking for is assigned here:
c.DataContext = (null == c.DataContext) ? _letterDatas : null;
"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,
In the general xaml code, i have written as follows,
<pre>Page x:Class="UI_eHTMP.Window1" Title="eHTMP Application"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Height="800" Width="1400" Loaded="Window_Loaded" Title="applc1" Background="OldLace"></page></pre>
when I run the appliction and try to restore and Maximize the windows page, i dont see the task bar and vertical and horizantal scroll bars to scroll,
what to be included in the xaml code? Even the title is also not displayed when i have mentioned in the xaml title.
Please help me in resolvign this.
Thank you,
Ramm
|
|
|
|
|
0) I don't see in the XAML you posted where you're telling the window to scroll.
1) Scrollbars are typically set to "Auto" so they only appear when scrolling is needed.
2) Learn how to post code here. It's ALMOST IMPOSSIBLE to read code when it's posted with a proportional font.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi John,
In the 3rd line of my post, i have entered the xaml code.. just the first few lines..
Thank You,
Ramm
|
|
|
|
|
Guys,
I am able to scroll it now using <ScrollViewer></ScrollViewer>..
I removed the Height="800" Width="1400" from the xaml code.. its fine now.
Thank you,
Ramm
|
|
|
|
|
Hi,
I have a silverlight application with a login page. I want to check login members against Active Directory members and then redirect them to respective pages. I have done Active directory validation in dot net.But in Silverlight, I am unable to find "System.DirectoryServices" dll. Any help regarding this will be very useful.Thanks in advance .
Gomathi R
|
|
|
|
|
You're not going to be able to use Active Directory in a Silverlight app.
You'll need a Windows-specific solution since Active Directory is Windows specific and
Silverlight is not.
You could possibly use Active Directory on a server, maybe through a WCF or other web
service.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
We had the same challenge. The key is to stand it up behind a secured WCF service. The WCF service can make the call to check active directory and then return the status to the Silverlight client. You'll also want to look into generating a token or some unique way to "tag" the session as authenticated on Silverlight so that subsequent calls don't have to re-authenticate every time.
|
|
|
|
|
hi,
Keep in mind, All the protocolls must be implemented to be accessible from the Silverlight sandbox. As no socket support is available right now, its not possible for 3rd party devs to do that now...
You only could write a webservice proxy and access that proxy from the app. Probably the most easy and approachable way to do it right now.
|
|
|
|
|
what you need to do is to implement a web service that queries the AD and use this web service as a proxy to retrieve AD information
|
|
|
|
|
Hi,
I have two problems which iam listing below:
1.
I need to measure the exact cold start up time for WPF application.
I tried measuring the startup time manually, but its showing very inconsistent value. Sometime its showing 11 sec but sometime 3 secs.
Can anyone please tell me the exact reason for this inconsistency and any way i can measure the exact start up time for the WPF application .
2.Is it possible to measure the startup time module wise, like (Presentation framework loading time, PresentationCore loading time, Windows Base loading time, FontService startuptime an finally application startup time).
Thanks
|
|
|
|
|
If you're concerned about cold start time, this[^] should be your bible.
"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
|
|
|
|
|
Thanks for the reply ,Actually this article talks about only the improvement points for performance. I need to know how exactly to measure the startup time as it shows different value for different trials.
Thanks
|
|
|
|
|
The big problem you've got is that the "best" way to see the times is to instrument the code that you want profiling, and this has an effect on the startup time as well (which can also lead to skewed results if you don't happen to profile the item that is really affecting the startup time).
At the bottom of the blog there's a list of related entries that may well be of some interest to you in helping further your investigation.
"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
|
|
|
|
|
As it boots up, start counting out loud...
One thousand one, one thousand two, one thousand three...
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I'm just playing around with silverlight, trying to get the hang of it... My question is:
What I would like to do is take:
<param name="initParams" value="text1=TEST,text2=TEST2" />
And add them to a menu item in the xaml such as:
<MenuItem Text="TEST"/>
<MenuItem TEST2="TEST2"/>
I'm trying to achieve a simular effect to:
<?php $result = mysql_query("Mysql query here");
while($data = mysql_fetch_array($result)){
$text = $data["text"];
echo "<MenuItem TEST2=\"$text\"/>";} ?>
Only for one - Silverlight is client side, and two -I don't really know how one would generate the xap file using php...If someone could point me to some references or offer some help I would greatly appreciate it..
Thanks,
Joe
|
|
|
|
|
Hello,
>>echo "<MenuItem TEST2=\"$text\"/>";} ?
You can't write XAML tags like that from PHP. You need to install Silverlight SDK (it's better if you have Visual Studio 2008) in order to compile xap file.
Please read some of the article from this link Silverlight PHP[^]
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
Microsoft MVP (Silverlight), WPF/Silverlight Insiders
|
|
|
|
|
I want to clarify the future of silverlight.
anyone can give comments the difference between HTML5(6...) and Silverlight?
HTML5 should be easy to learn but silverlight may be more powerful?
am I right?
thanks.
|
|
|
|