|
If you're using Deep Zoom, only the parts of the image
being viewed get downloaded (in tiles), so no matter
how large the image is it should download in a reasonable
amount of time.
I regularly work with 1GB+ images.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi All,
'IEditableCollectionView' is A good concept to deals with data adding and removing new items, as well as editing items in a transactional way to bind WPF Data Grid.
Can you help me..How to implement it for WPF Data Grid ?
My Requirement : I have multiple WPF Data Grid's with single data source ( DataSet Or DataTable). I want add new empty row to all datagrid's at single click (i did it partially).
** All Datagrid columns are single click editable -- done.
But whenever user click on 'add' button an empty row is added to all three grid's (above said). i want to update data on button save click event.
My problem is.... i am unable to get User entered data from CollectionView...
if any body have good knowledge on 'IEditableCollectionView' concept...please explain me How to edit/Update and Delete rows from collection view...
if you provide samples or Url's really gr8 helpful me..
Thanks in advance.
Eswara G
|
|
|
|
|
|
noufal2009 wrote: When I am trying to retrieve only first column value of excel sheet using the below code,I am getting garbage values.
You cannot read an Excel file with StreamReader()[^].
|
|
|
|
|
Hi,
My project contains a class, Symbol, which derives from UserControl and adds some custom dps etc... In code, Symbol also implements a Popup containing a TabControl along with the relevant click handlers to make this popup appear. Any objects which derive from Symbol have this popup which works fine.
I now need to be able to add new custom TabItems to the TabControl in the derived classes. I can do this in my code behind file but was wondering what the correct syntax is in WPF to add a TabItem to a parent's TabControl.
Can anyone help?
Cheers
Rich
|
|
|
|
|
Maybe
myTabControl.Items.Add(newTabItem);
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Ah sorry, thanks for your response, but I wasn't clear in my OP.
I actually meant what would be the syntax for doing this in XAML? My XAML class derives from a class with the TabControl defined, how can I access it to add a new TabItem within my derived XAML or is this not possible?
TIA
Rich
|
|
|
|
|
Maybe the ContentPropertyAttribute[^] is what you need.
There's an example using a List property here[^].
I think you could define a collection dependency property (or property
that implements change notifications) and use that as your control's
[ContentProperty]. That will allow you to specify multiple items in XAML.
Bind the ItemsSource of the embedded TabControl to that property.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi all,
When I was working on WCF(3.5) i got a doubt. Here it is
WCF introduced in frame work 3.0 version. At the time of release there is no Visual studi 2008. Then hw WCF application developed,i.e, to develop wcf application with 3.0 frame work what is the tool.
PLease correct me if the question it self is wrong.
Thanks,
Srinivas Mateti
|
|
|
|
|
sris 426 wrote: At the time of release there is no Visual studi 2008. Then hw WCF application developed,i.e, to develop wcf application with 3.0 frame work what is the tool.
There were some add-ins for WCF, WF and WPF development (I don't think they're accessible anymore). For WCF, you didn't really need to use the add-in though. Just having .NET 3.0 installed was enough.
Kevin
|
|
|
|
|
Hi,
I'm in the process of refactoring some code I've inherited and as a part of this I need to re-create a binding which was previously in my WPF in code. The WPF snippet is:
<pre><TabItem Header="Notes">
<my:HelpEditor PlantId="{Binding Path=Id, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type my:Symbol}}}">
</TabItem></pre>
But I am now producing these TabItems in code so need to reproduce this binding in my code-behind file. In this case HelpEditor is a custom UserControl with a PlantId dependency property and Symbol is a custom object with a Id dependency property. HelpEditor needs to be bound to the Id in Symbol and so this WPF binding code works fine.
Here is the code I am trying to use in my code-behind file:
<pre>TabItem ti = new TabItem();
ti.Header = "Notes";
helpEditor = new ScadaAlarmViewer.HelpEditor();
Binding idBinding = new Binding("Id");
idBinding.RelativeSource = new RelativeSource(RelativeSourceMode.FindAncestor, typeof(MyStuff.Symbol), 1);
helpEditor.SetBinding(MyStuff.HelpEditor.PlantIdProperty, idBinding);
ti.Content = helpEditor;</pre>
But this doesn't work, I get:
<pre>System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='MyStuff.Symbol', AncestorLevel='1''. BindingExpression:Path=Id; DataItem=null; target element is 'HelpEditor' (Name=''); target property is 'PlantId' (type 'String')</pre>
In the output window. If it's relevant, these TabItems are contained withint a Popup.
Can anyone help?
Rich
|
|
|
|
|
I think the problem comes from the fact that you are setting the binding before you have put the helpEditor into the visual tree. I think you will need to rearrange into something like:
TabControl tc = ;
TabItem ti = new TabItem();
ti.Header = "Notes";
helpEditor = new ScadaAlarmViewer.HelpEditor();
Binding idBinding = new Binding("Id");
idBinding.RelativeSource = new RelativeSource(RelativeSourceMode.FindAncestor, typeof(MyStuff.Symbol), 1);
ti.Content = helpEditor;
tc.Items.Add(ti);
helpEditor.SetBinding(MyStuff.HelpEditor.PlantIdProperty, idBinding);
|
|
|
|
|
Hi,
This is from Chandrakanth.
Actullay my problem is I Want to downlaod the file from
Application Directory.
In my Application i have one folder called "EXCELFILE" In that folder i have once excel file called "USERCONTACTS.xls".
I have one Hyperlink Button called "DOWNLOAD EXCEL FILE"
When i click on Hyperlink button i have to down load the file from application directory.
how can i go for that . Can any one tell me how to do that..
Thanks and Regards
Chandrakanth.Gaddam
|
|
|
|
|
I think you're really confused. If your application contains the xls, how is it something that needs downloading ? It's already on the user machine. What do you mean exactly ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi,
Once again from Chandrakanth. Actually my requimet is...
When i run the application
i am providing some link to downlaod the excel file format by
clicking the Hyperlink. After down loading the file user can
enter some information and he can upload the file again
That excel file format is default format.
if any suggestions please reply back for this.
Thanks and Regards
Chandrakanth
|
|
|
|
|
Hi.
Can we run SL Applications on Linux Servers ?
Thanks
|
|
|
|
|
Silverlight applications run on the client so it doesn't matter
what server you use, as long as the server can serve up .XAP files
and any other resources the Silverlight app may need.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi.
I'm gonna create a Menu like Firefox's Bookmark Organize(http://www.picfront.org/d/UaCb9DQCE/Untitled-2.png[^]) in WPF?
Actually I wanna know how I can create a Style or Template for a Menu in WPF like it .
Could you please guide me , how can I do it ?
Thanks.
|
|
|
|
|
Mohammad Dayyan wrote: Could you please guide me , how can I do it ?
How about like this[^]?
|
|
|
|
|
Actually I wanna know how I can create a Style or Template for a Menu in WPF like it that I linked.
|
|
|
|
|
Mohammad Dayyan wrote: Actually I wanna know how I can create a Style or Template for a Menu in WPF like it that I linked.
There are many articles here on CodeProject that explain how to use all the features of WPF, from basic to advanced.
|
|
|
|
|
Why would you 1 vote someone for stating the obvious ? It's not his fault that you're stupid.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I didn't vote it 1, you can open your eyes and see my vote right now.
I think you are more stupid than me , because you judge about something that you don't know anything about it.
|
|
|
|
|
Also, to get you started, there is sample templates
for Menu and MenuItem in the documentation:
ControlTemplate Examples[^]
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hey guys,
I'm developing a kind of website content management system. Users can drop 'blocks' of content on a page and some blocks are silverlight applications (for example picturebooks). I want users to be able to 'skin' the silverlight application like a css stylesheet would do that for a webpage. I was thinking of defining properties for objects used in the silverlight application (for example a button and an image) and let the user decide the values of the properties.
Is there a built in feature in Silverlight which allows me to create such functionality or do I have to write code for each and every property in silverlight which means a lot (A LOT) of coding...
Thanks!
|
|
|
|