I have binded an object to a WPF control. How can I toggle the object property "IsEditMode" on click of the edit button using only xaml and no code behind? Here is sample code of xaml -
<Label Style="{StaticResource TitleLabel}"
Content="{Binding Path=GroupTitle}"
Visibility="{Binding Path=IsEditMode, Converter={StaticRe...
i am moving from AS3 and Java to Expression Blend/WPF, but cant seem to figure out how to replicate EnterFrame event in C#, is there a update() or frameUpdate() function.
...
Hi.
I want to have a simple 3 column grid with resizeable columns and a MinWidth of 80.
The code looks like this:
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="120" MinWidth="80"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*" MinWidth="80"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefini...
Hi,
I want to create an ellipse who move unpredictable wherever in the window and know in the same time his postion. Like a ball who are going everywhere in the surface and if his meet a corner he changes his direction.
Thanks for your help.
Sorry if my explication is not specific
...
I have found this link about similar problem, except mine has the added twist of the textbox needing to have a formatted value after focus is lost.
<TextBox Text="{Binding Value}" MaxLength="{Binding MaskLength}"/>
<Button Command="{Binding ExecuteCommand}" IsDefault="True"/>
After the user enters text into the textbox I would like to...
I want procedurally rotate an image in WPF. I've seen how to bind a rotation to a control. But, I want to bind the rotation to an object's angle. How do I do that?
...
In silverlight, if a TextBox AcceptsReturn, all newlines are \r, even though Environment.Newline is \r\n. Why is this? (WPF has \r\n as newline for textbox)
...
I'm using a DataGrid bound to a CollectionViewSource (players), itself bound to the currently selected item of a ListBox (levels), each item containing a collection to be sorted/displayed in the DataGrid:
<ListBox Name="lstLevel"
DisplayMemberPath="Name"
IsSynchronizedWithCurrentItem="True" />
...
<!-- DataGrid sou...
How can I ignore Alt+F4 in WPF Application?
...
Hey all,
Is there a way I can bind the DisplayMemberPath of combobox to a function? The object with which I am currently working has three properties I wish to use for presentation; FirstName, LastName, and MiddleName.
I wrote a static method in a Formatting class to handle it. This method is called FullName and accepts three string ...
Hi,
I have table with below fields,
table Shows,
Id Name Time
1 A 7/28/2010 11:15:00 AM
2 B 7/29/2010 8:50:00 AM
3 C 7/29/2010 8:55:00 AM
I have an object Show that has data from all the fields. Now I want to have a UI,
that displays count of shows on an hourly basis for all days..
Date 7/28/20...
Since there is no way to paste values into a DataGridTemplateColumn. I found some suggestions for creating my own column class derived from DataGridBoundColumn. The sample below adds a DatePicker to the column without using a template.
However this sample does not allow me to manually set a value using the DatePicker and I'm not sure wh...
I'm using wpf drag and drop databinding to datasets. I generate a new datatable row using the AddNew method of the BindingListCollectionView. I set values on the new row and call CommitNew on the BindingListCollectionView. I expect to see my assigned values in the bound controls but they are all blank. If I save the changes to the databa...
Is there any way to catch the Up/Down arrow keys in a WPF TextBox (System.Windows.Controls.Textbox) and allow them to alter the text? I've read about overiding the ProcessCmdKey method for a Windows Forms TextBox (System.Windows.Forms.TextBox), and it worked fine, but that TextBox is not nearly as flexible as the WPF one. Is there a simi...
hello,
i am writing a financial WPF desktop application and i am looking for a component that would allow me to display (and print) OHLC, candlestick, and possibly other types of financial charts. I need to be able to embed custom graphics into the chart, i mean graphics such as extra lines, additional charts, etc. the component needs t...
I'm currently trying to create a small application using the MVVM pattern. However I don't really know how to correctly wrap up aggregated Model classes in my ViewModel. From what little I know about MVVM, you're not supposed to expose Models in your ViewModel as properties or else you could directly bind to the Model from your View. So ...
Hello,
I'm currently trying to write an application with a progress indicator in C# using WPF:
http://img839.imageshack.us/my.php?image=20100831180406.png
So far the indicator is finished. However I don't have any possibility to lower the length of the indicator yet. I could redraw the indicator using other coordinates but that would...
I'm developing a system using WPF 4. I pretend to use MVC in development.
I never used MVC before, so I'm a little confused about concepts. Some time (ages) ago I develop some Delphi software more or less with that scheme:
a thin client application to be installed in several machines that talk with the...
...server application that ta...
I set up ItemSource for the ListBox with converter:
<ListBox Name="FunctionsListBox"
ItemsSource="{Binding Path=Functions,
Converter={x:Static app:CreatorWindow.FunctionConverter}}"/>
However this looks for me ugly, because converter converts entire collection -- I would prefer more versatile converte...
In a WPF application, I am attempting to display the elements from an ObservableCollection in a side-by-side fashion. For example, if the collection was of letters, the basic format would be:
Letters
A D G J
B E H K
C F I L etc..
I am considering making each a separate ListView and then breaking each ViewMo...