|
Interesting, I don't recall having this happen when I've used the <pre> tags in the past. My apologies, I have obviously missed an experience, or maybe my brain hasn't kicked in properly this morning.
|
|
|
|
|
|
If this is an article then please submit it according to the correct guidelines.
|
|
|
|
|
Yes, I am aware of article submission features. Thank you.
|
|
|
|
|
Jammer wrote: Yes, I am aware of article submission features. Thank you.
Then please use them. The forums are for asking technical questions, not for advertising your products.
|
|
|
|
|
Hi,
I want to create auto suggest textbox in my WPF application. In this textbox I want to display the existing user names which matches with the user entered data.
If anyone have idea to solve this, please reply me.
Thanks in advance,
N.Divya
|
|
|
|
|
Perhaps you could create a stack panel that contains a textbox and a popup? And that popup might contain a listview that displays users. You can populate that listview whenever the text in the textbox changes. Although I bet something like that already exists on CP... if not, then you could probably find something by googling a little.
Visual Studio is an excellent GUIIDE.
|
|
|
|
|
I have a folder structure like this....
Project
FolderA
SubFolderAA
Themes
Generic.xaml
ControlAA1.cs
ControlAA2.cs
SubFolderAB
Themes
Generic.xaml
ControlAB1.cs
FolderB
FolderC
I have recently added the folder SubFolderAB and control ControlAB1.cs with a Themes/Generic.xaml file. My control in ControlAB1.cs cannot locate the theme in the new Generic.xaml unless I move the Themes/Generic.xaml to the Project root folder (Project/Themes/Generic.xaml). The controls and styles in SubFolderAA are unaffected by any of this. What could be causing this behaviour?
modified on Sunday, November 22, 2009 4:48 AM
|
|
|
|
|
|
Great link, Thank you 
|
|
|
|
|
I am using the WPF combo box in my application. In the combo box, the user can browse through the available items before selecting an item. When user goes through each of these items I want to display a tooltip in a seperate label next to combo box.
So I want to catch that event. Is there such event that fires, when user goes through the items in Combo box before selecting one???
Thanks
|
|
|
|
|
write code on mouse over for each comboboxitem such as
<comboboxitem mousemove="cbi1_MouseMove" name="cbi1">Item1
and code as
private void cbi1_MouseMove(object sender, MouseEventArgs e)
{
string val = cbi1.Content.ToString();
TTLabel.Content = val;
}
when u write code block for each comboboxitem, u get the value which u want to print in separate label
|
|
|
|
|
Thanks Sager.
I got your idea and implemented it successfully.
Thanks again
|
|
|
|
|
Is it possible to bind different enums to one DataGridComboBoxColumn?
I need to display a couple of physical properties like temperatur, pressure, weight in a datagird. All these physical properties have a name, a physical unit and a value.
<br />
Public Class physicalProperty<br />
<br />
Public Property name() As [Enum]<br />
Get<br />
....<br />
End Get<br />
Set(ByVal value As [Enum])<br />
...<br />
End Property<br />
<br />
<br />
Public Property unit() As [Enum]<br />
Get<br />
....<br />
End Get<br />
Set(ByVal value As [Enum])<br />
...<br />
End Property<br />
<br />
<br />
Public Property value() As double<br />
Get<br />
....<br />
End Get<br />
Set(ByVal value As double)<br />
...<br />
End Property<br />
<br />
End Class<br />
Each row of my datagird should show one physical property. The first column displays the name, the second the unit and
the third the value of the phy. property.
I would like to be able to change the unit in the datagrid with the help of a combobox.
All solutions I found for binding a enum to a datagridComboboxColumn used a ObjectDataProvider to set the itemssource for the datagridCombobox:
<br />
<ObjectDataProvider MethodName="GetValues"<br />
ObjectType="{x:Type sys:Enum}"<br />
x:Key="AlignmentValues"><br />
<ObjectDataProvider.MethodParameters><br />
<x:Type TypeName="namespace:myEnum" /><br />
</ObjectDataProvider.MethodParameters><br />
</ObjectDataProvider><br />
<br />
But I don't have one enum. I have for each physical property one enum ( temperature (K, C, F), pressure (bar, Pa), weight (kg, g)).
Maybee I can use one enum for all physical units and dispaly only the valid ones by filtering?
Is there a way to meet my requirements?
reibor
|
|
|
|
|
Well, you're not using the MVVM pattern. You should implement the MVVM pattern when you're using WPF (although you sometimes can take shortcuts and not implement the necessary parts to get the job done).
You can learn about MVVM from the links I posted here[^].
So I suggest you create a class PhysicalPropertyViewModel that has the following main properties
- a property AvailableUnits that returns the available enum values for the property (to feed the combobox)
- and a property SelectedUnit that is bound to the SelectedItem of the combobox
when is set, it changes the DisplayValue property value accordingly
- a property DisplayValue which is the value to display according to the selected measurement unit
The TreeView article is how I initially understood most of the MVVM concept. Go read it and then read the MSDN Magazine article. Then read this reply again. After this, if you don't understand what I mean, tell me and I'll try to be more clear. Have a nice day.
Eslam Afifi
|
|
|
|
|
Thanks Eslam Afifi, your suggestion to create a property AvailableUnits was the food for thought I needed. It works perfectly.
I am not quite sure if I actually use something like a MVVM pattern. I have a wrapper class for the binding to the GUI. Extended by the AvailableUnits property it works.
Thanks for your help.
reibor
|
|
|
|
|
Glad to help. What you're doing is similar to (if not actually is) the MVVM pattern. MVVM is short for Model-View-ViewModel. A ViewModel is basically a wrapper around a Model for a View to expose the model's properties to the view and to pass commands from the view to the model.
Eslam Afifi
modified on Sunday, November 22, 2009 4:45 PM
|
|
|
|
|
Hi,
I wish to know how can one traverse through items inside a Listbox in WPF. Basically I wants to access the checkbox inside the template.
WPF Code:
|
|
|
|
|
Using the MVVM pattern can help in virtually all cases avoid stuff like that. Please see this post[^].
But if you really need to get it done the way to described, the ListBox has a property called Items. Then for each item, you can access it's visual tree and search for the element you want by its name using the FindName method (I'm not fully sure about that since I did this kind of stuff only once when I first started learning WPF).
P.S. stepping into the debugger and seeing the items' structures using the Immediate Window or a debugger visualizer like Mole[^] can help you get this done quickly.
Eslam Afifi
|
|
|
|
|
hi to all,
i done ssrs report(RDL) using asp.net.Now i need to this implement with silverlight.Is it possible or not.If possible how can i implement give me solution.
Thanks,
sundar
|
|
|
|
|
|
Hello, i am looking for the best wpf chart software / tool for wpf.
It doesnt matter if it costs or not (or how much). The most important thing is, to customize the
charts as much as possible.
|
|
|
|
|
If you need the charts to do dynamic update then check out the D3 project on codeplex: http://dynamicdatadisplay.codeplex.com/Thread/List.aspx
|
|
|
|
|
Hi,
i have text box to enter the name, add button,listbox will display the added records,button to save the record.
when i entered the name and clicked add button, it will add the data to database and text box will be cleared.
like that i adding some records and those records will be binded to listbox and it will display the records in the list box.
now i am trying to edit the record so i just selecting the record in listbox. by doing that i will get the corresponding data in the same text box(Which i used to enter the data).i binded the listbox selected item
to the text box.
then i edited text box and i clicked save button, its saved.
while i saving it i am clearing the text box but due to clearing the text box in save button is clearing the data which is binded in the list box , so the listbox displays the empty data for that record.
Thank's,

|
|
|
|
|
Hi
Some one please explain me outofBrowser concept. I need some clarification below
1.if i installed the application from web to local. which location path out appliation get installed.
2.if i used WCF service in web. how it will work in my local system.(assume i removed internet connection after i installed)
3. Is it possible to access data from a database on the internet when the application is running out of browser and there is no internet access?
4 What all are the security issues posed on the application when running it out of browser.
Regards
Gopal
|
|
|
|