how can I get the selected text on the SelectionChanged event of the comboBox
here is my code
<ComboBox x:Name="cboRecordType" Margin="2,0" Height="23" Grid.Column="1" VerticalAlignment="Center" SelectionChanged="ComboBox_SelectionChanged">
<ComboBoxItem Content="Weight"/>
<ComboBoxItem Content="Height"/>
...
Hi
Let me explain about my problem:
I have a wpf form with few controls. some of these control over-writing template. for example a textblock with an effect will be trigger on Mouse-Enter event and change color of foreground to something else.
But after running program when mouse enter on textBloc, it takes a few Milli-seconds until ...
Hello Good people!
I'm building an WPF application that connect to web services for its operations.Things that i needed to be working are so far fine.Now i'll like to improve use experience by adding features like username editable combobox, sign me in when skype start and start when computer start.
I have a fair idea about each feat...
Hello:
The inclusion of DataGrid and DatePicker controls was announced for WPF in Framework 4, but when I access to VS2010 and I create a WPF proyect, I can not get these controls. What did I miss?
Thanks.
...
Hello Good People!!
I bound a datatable to a combobox and defined a dataTemplate in the itemTemplate.i can see desired values in the combobox dropdown list,what i see in the selectedItem is System.Data.DataRowView here are my codes:
<ComboBox Margin="128,139,123,0" Name="cmbEmail" Height="23" VerticalAlignment="Top" TabIndex="1" ToolTi...
Hi
I am new to wpf and am having a problem which may or may not be trivial. I have defined a custom control as follows in the resource dictionary:
<ResourceDictionary
x:Class="SyringeSlider.Themes.Generic"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml...
I was working with a WPF application and I decided that the controls and graphics I wanted to display on the grid might look better if it was a silverlight component.
I thought this way because of all the cool silverlight controls that look very flash-like.
But now that I have gottem my Visual Studio 2010 set up with SIlverlight, it ...
I have Button control and I have to set the IsEanbled property based on the bool variable.
bool IsBoolVariable
I want if IsBoolVariable property is true then I want to set the IsEnabled property to false AND when IsBoolVariable property is false then I want to set the IsEnabled property to true.
Is it possible to apply not(!) operato...
Sorry for a potentially dumb question, I am still new at this. I really appreciate your help.
Referring to http://stackoverflow.com/questions/1536739/c-get-control-by-name/1536756#1536756
But I don't have a "this.Controls" available. Is there something I am missing here?
In other words, when I type "this." and visual studio populates ...
Hi all. I'm trying to get the green box that appears on the second click of a tri-state checkbox to be red, and also to fill up the box.
I found an article here that demonstrates a little bit about using templates to do this:
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/98cf8a65-f4ca-4ff5-9851-c2989b91a013
However, I can't...
I have a MemoryStream of 10K which was created from a bitmap of 2MB and compressed using JPEG. Since MemoryStream can’t directly be placed in System.Windows.Controls.Image for the GUI, I am using the following intermediate code to convert this back to BitmapImage and eventually System.Windows.Controls.Image.
System.Windows...
Her's what I want: A listbox whose items consist of a stackpanel with two textblocks. The textblocks need to support wrapping, the listbox should not expand, and there should be no horizontal scrollbar. Here's the code I have so far. Copy and paste it into XamlPad and you'll see what I'm talking about.
<ListBox Height="300" Width="30...
I've just started to learn WPF this week so please accept my apologies if I am being stupid or missing fundamental points!
Iam trying to build a very simple Contact browser. I have a Collection of Contact objects that displayed in a ListBox control which shows the FullName of the Contact and to the right I have a customControl called...
In my WPF control, I have below code. If I don't have a trigger with false, I can see the my storyboard, but if I have both ture and false triggers, I don't see any thing.
How to fix this? Appreciate your help!
<Trigger Property="Control.IsMouseOver" Value="True">
<StoryBoard>
Image with Opacity 1
</StoryBoard>
</Tri...
Hi I have created a grid view inside listview without anycolumns specified.. when i bind a collection of object to it.. the gridview column should be generated.. how to do this do i need to convert that collection to anytype.. please confirm..thank you
...
I'm having trouble applying a template to my checkboxes. I have the following template:
<ControlTemplate x:Key="TriStateRed" TargetType="{x:Type CheckBox}">
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="{x:Null}" >
<Setter TargetName="path" Property="Data" Value="M 0 2.5 A 5 2.5 0 1 1 5 5 L 5 8...
Hi all, I'm trying to write a class that I can use to interact with a group of similar controls in my wpf application. I have hit a few roadblocks and now I am wondering if this is a poor approach to begin with.
I want to do this primarily to make my code more manageable - I have to interact with around 200 - 300 controls with my code,...
I have searched around and I can't seem to find where to download the latest RibbonControlsLibrary.DLL. Can someone please point me in the right direction?
...
Hi all. I am writing a function to recurse my XAML and add all the controls to a hashtable, with their names being the keys. Unfortunately it seems like I have to go through and list every possible type:
void Recurse_Controls(object start)
{
string start_type = start.GetType().ToString();
if (start_type == "StackPanel")
{...
I'm trying to make just a few minor tweaks to the default template of a checkbox. Now I understand how to make a new template from scratch, but this I do not know. I did manage to (I think?) extract the default template via the method here.
And it spat out:
<ControlTemplate TargetType="CheckBox"
xmlns="http:...