|
You may want to look into using Converters. Do a msdn search on IValueConvert and you should find examples.
|
|
|
|
|
can we use silverlight in visual studio 2005?
Ramkumar(senior pgmr)
modified on Monday, March 9, 2009 6:22 AM
|
|
|
|
|
getramonweb wrote: can we use silverlight in visual studio 2005?
Probably, but you'll have to do everything manually - there won't be any
app/library templates or intellisense.
If you Google "silverlight 2 visual studio 2005" there's some possibilities -
some are old and I don't know if any work for Silverlight 2 RTM.
Why not get a free edition of VS 2008: Microsoft Visual Web Developer 2008 Express with SP1[^]
Then you can use all the latest stuff for Silverlight 2 as listed here:
Get Started Building Silverlight 2 Applications[^]
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
We have used C1DateEdit control(Component One third party control) in WPF application and it has some issue with it.
Please find below the scenario and the issue.
Scenario 1:
Step 1 : Create a WPF-Windows application and add Window1.xaml .
Step 2 : Add C1DateEdit control in WindowsFormsHost element.
Step 3 : Execute the application.
Step 4 : Click on the dropdown of the DateEditControl. It throws the below exception.
Scenario2:
Step 1 : Create a WPF-Windows application and add Window1.xaml .
Step2: Create a usercontrol(ucDateTimePicker.cs) by adding C1DateEdit control.
Step3: Add the user control in WindowsFormsHost element of Window1.xaml.
Step 4 : Execute the application.
Step 5 : Click on the dropdown of the DateEditControl. It throws the below exception.
Expected Result:
When click on the dropdown of the DateEditControl, it should drop the calendar.
Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at C1.Win.C1Input.C1DropDownControl.OpenDropDown()
at C1.Win.C1Input.C1DropDownControl.a()
at C1.Win.C1Input.C1DropDownControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Note: The same scenario works well with Windows application of visual studio 2005.
Kindly provide the idea/solution for this issue as early as possible.
|
|
|
|
|
Have you had a thought that this could be an overlay issue ? When your Calendar control is trying to open it is entering the WPF space and hence must be dying out.
Did you ask this in the Component1 forum ?
|
|
|
|
|
jaylinuxguru wrote: Kindly provide the idea/solution for this issue as early as possible.
That's simple. Raise this with the company that supplied the product. They are the ones who ultimately get paid to fix bugs. Posting this on a random site does nothing to help improve the quality of the control - Component1 support staff aren't monitoring CP hoping to see support calls coming in here.
"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
|
|
|
|
|
Hi,
I have a contextmenu defined and binded the IsEnabled property for some items. This is (part of) the code:
<Window x:Class="PAP.PhotoAnnotation"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:PAP.Controls"
WindowState="Maximized"
Title="{Binding Path=Title, ElementName=canvasContainer, Mode=OneWay}">
<Window.Resources>
<!-- Converts tooltype to bool for checking controls -->
<controls:ConverterActiveElement x:Key="convActiveElement"/>
</Window.Resources>
<Grid>
<DockPanel>
<ScrollViewer Name="container" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
<controls:CanvasContainer x:Name="canvasContainer" Background="LightGray">
<controls:CanvasContainer.ContextMenu>
<ContextMenu x:Name="contexMenu">
<MenuItem Header="Undo"/>
<MenuItem Header="Redo"/>
<Separator/>
<MenuItem Header="Cut"/>
<MenuItem Header="Copy"/>
<MenuItem Header="Paste"/>
<MenuItem Header="Delete"/>
<Separator/>
<MenuItem Header="Select All"/>
<Separator/>
<MenuItem Header="Bring Forward"
Click="BringForward_Click"
IsEnabled="{Binding Path=ActiveElement, ElementName=canvasContainer,
Mode=OneWay, Converter={StaticResource convActiveElement}}"/>
<MenuItem Header="Send Backward"
Click="SendBackward_Click"
IsEnabled="{Binding Path=ActiveElement, ElementName=canvasContainer,
Mode=OneWay, Converter={StaticResource convActiveElement}}"/>
<Separator/>
<MenuItem Header="Properties"/>
</ContextMenu>
</controls:CanvasContainer.ContextMenu>
<!-- Add children in code to populate canvas -->
</controls:CanvasContainer>
</ScrollViewer>
</DockPanel>
</Grid>
</Window>
The problem is that this does not work. It just allways stays enabled. I also binded some buttons in a toolbar and menu-items in a normal menu EXACTLY the same and that works perfect !
Anyone an idea of what is wrong?
Thx!
|
|
|
|
|
ContextMenu is not part of Visual and Logical tree. You will need to do something like this[^] ?
|
|
|
|
|
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!
|
|
|
|