|
Good People,
Quick question. I have a collection of objects which will, within each, have a series data that needs to be displayed. Say for example, I have a GasStation object which I will put in an observable collection called AllGasStations. As you can imagine, I need to track several things each day, e.g. customers, gallons used, profit, items sold - which I will put in an object called DailyActivity and then place that into an observable collection called AllDailyActivity.
I am using a XamChart (infragistics) that needs a series. So, does WPF support binding to a collection within a collection. I want to display a chart for each day, for each gas station. So, can it bind to the gas stations collection, then each chart that comes up can bind to the AllDailyActivity collection within the GasStation Collection.
Using a listbox, I am thinking that I would use the gas station object as the data context, bind the gas station name to the template's gas station name, then bind the chart to the AllDailyActivity collection within the gas station object. Any thoughts?
Thanks for any help or information you can provide.
Blitz
|
|
|
|
|
I have not worked with XamChart. As far WPF is concerned it would have no problems binding to a collection in a collection. For WPF, it would just be a property if used in the correct way. In your example, the listbox items will be the Gas Statiion objects and if you want the currently selected Gas Station's AddDailyActivity list, it should be as simple as "{Binding ElementName=yourListBox, Path=SelectedItem.AllDialyActivity}".
|
|
|
|
|
Does anyone have an opinion on WFP versus Pentaho in terms of cabability to present data?
I understand very little about Pentaho, but I am aware (from their website) that they allow ad-hoc reporting along with a large architecture of other goodies.
So far, I have read the first few chapters of the Pro WPF for C# book. Also, dev'd a few small Silverlight apps for fun.
I would like to get some feedback concerning any NOTABLE benefits in performance, flexibility, and bells and whistles that WPF might provide over Pentaho.
Or, would WPF make a nice COMPLEMENT to Pentaho?
Thanks.
|
|
|
|
|
Pentaho specialise in reporting applications whereas WPF is the next generation of building Windows applications. You might as well ask how apples compare to chairs. If you want to do dedicated reporting, use a dedicated reporting application. If you want to build software, use something that was designed for building applications.
"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
|
|
|
|
|
Then let's say we are adding decor to a room....and the apple is among fruits in a basket.
I'm looking for a statement similar to "WPF's close ties to Direct3D/DirectX provides more advanced rendering capabilities, useful in presenting animated graph plots."
Another example, on codeproject or somewhere else, I came across some app done in WPF that provides the drill-down capability on maps similar to maps.google.com.
|
|
|
|
|
Hi im just beggining to learn wpf and C#, my problem is probably the simplest thing in the world except for me... I add an image to my project and then i try to use it as a background..
[Grid>
Grid.Background>
<imagebrush imagesource="background.jpg" tilemode="FlipXY" stretch="None" viewbox="0,0,1,1" viewport="0,0,0.3,0.3">
Grid.Background/>
grid.>
i keep getting an error that says that my image is not part of the project..
i've added it as a resource and made sure that it's build action is set to resource and it still doesnt work,, can anyone please help me (teach me) how to make an image part of my project..
any help will be much appreciated.. thanks
|
|
|
|
|
I guess you need to set it to content.See if this[^] helps.
|
|
|
|
|
hi,
how can i set different font(language) in my website.
do i need to install font in server..??
how.. plz explaine in detail..
site like: www.deepika.com This is a malayalam language site..
Plz ... help
|
|
|
|
|
hi,
Is there any way to set session in Wpf. I am having a Login page and if valid user logged in , i want to get his id to shoe his details in next page. Any idea!
Gomathi R
|
|
|
|
|
|
I had created an exe file using set up project for my WPF application. I had published it on the server.
My question how can make it auto update when ever client run it on his local box. i did not use click once deployment because of some issues.
Please help
|
|
|
|
|
See here[^], might help.
psdeepu wrote: because of some issues
ClickOnce is your best bet. Can you share what kind of issues ?
|
|
|
|
|
i need all the installation screens like license agreement etc. change some registry entries. etc.
|
|
|
|
|
Can Search engines index silverlight content?
What SEO tecnics can be used to help indexing?
Miguel Barros - Developer
t3k.pt
|
|
|
|
|
Search engines cannot parse text that is within the silverlight app (.xap). There are a couple ideas floating out there to help with seo and silverlight however, I don't know how effective they are. One ideas is to dynamically generate text into the <object> tags that render the silverlight. The idea behind this is that if "something" in this case a search engine cannot render silverlight, it will go after what ever is in the object tags. Just to be more clear, this is not a search engine thing, it's a silverlight thing. If a browser that did not have silverlight installed, it also would see what you had between the object tags.
|
|
|
|
|
Well... first answer Silverlight SEO... NO, something like flash.
Second response... there are some ways (not as good as the old HTML text based stuff ).
http://www.nikhilk.net/AjaxSEO.aspx[^]
/// -------------------------
Braulio Díez
DBSchemaEditor.com
Free Silverlight Based DB Schema Modeling tool
/// -------------------------
|
|
|
|
|
Hi,
I'm new to WPF, so please bear with me.
I have a tree of objects. For every item on the tree, I'd like to have a delete button that is right-aligned.
Here's my best text-based representation:
[----------------------------]
scene
entity 1 x
entity 2 x
child entity 1 x
child entity 2 x
entity 3 x
[----------------------------]
The 'x' represents a delete button, or a small x icon.
What's the best way to do this?
Thanks!
|
|
|
|
|
You can override the TreeViewItem template ?
<Style TargetType="TreeViewItem">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="TreeViewItem">
<StackPanel Orientation="Horizontal">
<TextBox></Button>
<Button>X</Button>
</StackPanel>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
|
|
|
|
|
Hi there,
I'm new to WPF, so bear with me.
I'm trying to make something like a class browser. I have a tree of objects, but each child in the tree is based on whether the object has variables of a certain type.
For example, say I have an Entity class for my game engine. I can have any number of variables in the class, or any derived classes, but I'm only interested in all the variables of type Vector. So for a hypothetical scene, I'd like to show a tree like:
scene
entity 1
vector worldposition
entity 2
vector worldposition
vector lookat
vector orientation
(I hope that was clear enough)
[Edit]
An additional challenge is if an entity has a variable of type Entity. So another hypothetical scene might look like:
entity 1
vector worldposition
entity 2
vector worldposition
vector lookat
vector orientation
entity 3
vector worldposition
entity child
vector worldposition
vector lookat
The scene could theoretically keep going like this, covering every child entity.
What's the best way to display this in a TreeView?
Thanks!
|
|
|
|
|
If you provide a DataTemplate for each of the types, it should pick it up automatically. Check this post[^] from Mark. It should give you an idea.
|
|
|
|
|
I am interested in writing a few Silverlight components to put on an aspx page, using them kind of like web parts. They would need to be able to fire events and take properties though.
Has anyone else out there done this?
|
|
|
|
|
|
Thanks. I will check it out.
|
|
|
|
|
Hello,
I am trying to bind a variable in the code behind to the visibility property of an element. Here is what I have:
xaml:
<groupbox visibility="{Binding CarrierPreviewVisibility}" grid.row="1" header="Carriers">
code behind:
//Property
private System.Windows.UIElement carrierPreviewVisibility;
public System.Windows.UIElement CarrierPreviewVisibility
{
get
{
return carrierPreviewVisibility;
}
set
{
carrierPreviewVisibility = value;
NotifyPropertyChanged("CarrierPreviewVisibility");
}
}
/* code in constructor. THE BELOW CODE IS WRONG. The error is "Cannot implicity convert string to System.Windows.UIElement. */
this.CarrierPreviewVisibility = "Hidden"
Am I totally off base here? Does anyone know how to do this?
Any ideas
|
|
|
|
|
nikotromus11 wrote: "Cannot implicity convert string to System.Windows.UIElement. *
You cannot assign a type string to an object of type UIElement. What are you trying to do ?
I would suggest you change your property to have a type System.Windows.Visibility[^]. If you are confused in the way we set visibility in XAML, like in XAML we specify a string then, I would point out that XAML automatically does a conversion of the string value to the specified type. But, if you do it in code, you would require to handle it on your own.
|
|
|
|