|
buy a quad-core and see it consumes only 25% now.
or insert a Thread.Sleep(500) in the for loop
or use a timer instead of a thread
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
I am finding a solution in wpf which is similar to “treelistview” (http://www.codeproject.com/KB/list/treelistview.aspx)
I have an xml, which has lots of outer an inner node with same number and type of attribute.
According to hierarchy it should create tree and according to attributes it should create columns and display data contains in it.
Thanks
hiren shah
hirenkshah@gmail.com
Thanks
hiren shah
|
|
|
|
|
|
sir,
Thanks sir, it will help me lot but I wanted to put editable controls like textbox, checkbox etc in single column, According to Node type (Parent or child). With key navigation like F2 selected Row and 2nd columns editable control is appear.
Can you please help me regards to this problem.
Thanks.
Thanks
hiren shah
|
|
|
|
|
Have you even tried to play around with the controls I shared for you? What did you try which did not work ?
|
|
|
|
|
Hello everybody.
Can we get user session ID with SilverLight 2 ?
Is it possible at all ?
Thank you.
|
|
|
|
|
I don't know what "user session ID" you're referring to,
but I'll answer yes and yes.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: I don't know what "user session ID" you're referring to,
Well, I know a session ID from PHP that we could get it with session_id() function.
How many session ids do we have in SL2 ?
|
|
|
|
|
Mohammad Dayyan wrote: How many session ids do we have in SL2 ?
None.
Session IDs are a server side thing - Silverlight is a client technology.
You can use ASP.NET sessions through ASP.NET/WCF services...
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks Mark .
Mark Salsbery wrote: You can use ASP.NET sessions through ASP.NET/WCF services...
I'm working just with SL2 (client side) and I wanna get an unique thing for every visitor.
Can we get a something in SL2?
Is there an unique thing in Client side that I could get it with SL2 ?
Would appreciate for helping.
|
|
|
|
|
Mohammad Dayyan wrote: I'm working just with SL2 (client side) and I wanna get an unique thing for every visitor.
Silverlight runs on the client so it's already "unique".
There's no concept of "visitor" on the client side.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
You can inherit the session context in your WCF Services.
Just use:
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class MyService
But remember you will be responsible as well to keep alive that session (maybe service ping every X minutes).
HTH
Braulio
/// -------------------------
Braulio Díez
DBSchemaEditor.com
Free Silverlight based DB Schema Modeling Tool
/// -------------------------
|
|
|
|
|
I have CSV numeric data in a text file, The first row is the column names, the rest is the data.
x,y,z
1.1, 2.1, 0.3
3.2, 4.1, 0.5
0.3, 4.2, 1.1
I want to read this into my application and display it in a list view. I presume I could use C# to open the file and read/parse each line, then add a row to the list view, but I'm wondering if their are WPF (or .Net) tools that can make this job easier.
I'm creating the text file by hand, so if a better format makes it easier, I'm open to ideas there too.
Thanks,
Mitch
|
|
|
|
|
This is probably overkill for simple CSV, but I found the following project by Matt Perdeck helpful:
LINQ to CSV library[^]
Even if you don't want to use the LINQ parts of the code you can get some tips for CSV parsing from it.
|
|
|
|
|
Hi - can someone help me with this seemingly easy problem? I'm missing something... I'm trying to reference an array from a user control-code behind. The array is defined in main codebehind Page.cs & populated in Page.cs constructor.
Any tips appreciated -- thank you
public partial class Page : UserControl // Page.cs with a string array called dcNames[]
{ public string[] dcNames;
...........
// Page.xaml includes a reference to the user control named: GlobalInfoGridControl.xaml
// User control GlobalInfoGridControl.xaml.cs
public partial class GlobalInfoGridControl : UserControl
{
.......
private void OnSliderValueChanged(object sender, RoutedEventArgs e)
{
Page p = this.Parent as Page;
foreach (string DC in p.dcNames) // method needs to read dcNames[] from Page.cs
modified on Friday, April 3, 2009 5:38 PM
|
|
|
|
|
I'm looking for a way to programmatically clear all text boxes and combo boxes on my WPF window at the same time. Is there a method for handling this?
|
|
|
|
|
I don't know of anything inherent. How about looping for all controls and if it is a textbox\combobox then reset its value? (might have to do it recursively if the controls are contained within an hierarchy.
modified on Saturday, April 4, 2009 7:00 AM
|
|
|
|
|
So far, I've been able to find a workaround for any missing functionality in Silverlight, until now. Anyone have any idea how I can get all of the values of an enumeration? And please don't suggest that I iterate from 0 to X and use the IsDefined method - that's simply not a practical solution.
Thanks in advance!
Terry
|
|
|
|
|
|
Ah, of course. Thank you so much.
|
|
|
|
|
Hi friends
I am extreme bigner of silverlight so,
plz help me how run silverlight program
and what i need to install software
Thanks and Regards
Azad Yadav
|
|
|
|
|
You will need .NET Framework (2.0 and on) to install MEB.
|
|
|
|
|
Are you talking develop or run? If it's develop (and assuming Silverlight 2), you'll need Visual Studio 2008, .NET 3.5 and the Silverlight SDK. If it's run, you just need to install the Silverlight control in your browser.
"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
|
|
|
|
|
|
Hehe, Silverlight is a buzzword... first you have to understand what is Silverlight, a quick and dirty definitions (please Ms guys don't read this)... it's like flash but with .net, that is a plugin for IE / FireFox...
You can download Silverlight plugin from the silverlight official site.
To Develop, you will need Visual Studio 2008 + .net fx 3.5 SP1 + SL tools for VS 2008 (you can just go to the silverlight.net getStarted option).
/// -------------------------
Braulio Díez
DBSchemaEditor.com
Free Silverlight based DB Schema Modeling Tool
/// -------------------------
|
|
|
|