Hello guys
I'm testing a WPF progress bar and trying to reset it to its initial state, but it doesn't work.
Duration duration = new Duration(TimeSpan.FromSeconds(1));
DoubleAnimation doubleanimation = new DoubleAnimation(200.0, duration);
myProgress.IsIndeterminate = true;
myProgress.BeginAnimation(ProgressBar.ValueProperty, doubleanim...
Given a populated ListView how do I iterate through each bound 'template' and pluck out the contained ComboBox (or any other control contained in 'DataTemplate')?
<ListView x:Name="lstCommands">
<ListView.ItemTemplate>
<DataTemplate>
<Grid x:Name="gridInputs">
<Grid.ColumnDefinitions>
<ColumnDefin...
I'm pretty new to WPF and even newer to animations in WPF. I know there are storyboards, etc. But I'm looking for a specific effect so I can work from there and tinker with it.
Can anyone just give me a simple example about on Image control MouseDown (because there is no Click event in this control in WPF) makes the image bigger throug...
ObservableCollection implements both INotifyCollectionChanged and INotifyPropertyChanged.
I understand that additions,
deletions (+ clear), and replacement
of items are notifiable to consumers
through the collection's event
CollectionChanged, and that updates
in the existing items can be
monitored using the items' event
PropertyChanged...
Using WPF Datagrid from WPF Toolkit.
I added a templated column to my datagrid which has a checkbox in each cell. Now how do I access the value's within these cells?
My other columns in the datagrid come from a dataset, I can access these, but I cannot get to the values of the DataGridTemplateColumn I added to the Datagrid
Anyone has...
I'd like to "throw away" the current version of a WPF application and move version 2 to a stable MVVM framework. The main concern I'm having is that I don't see much talk about MVVM frameworks and navigation (i.e., NavigationWindows and Frames).
My current app relies heavily on Pages to present views to the user. I would prefer to kee...
I am using Expresion Blend 3 and created a new user control in my project. I want a storyboard to run if a custom property of that user control is triggered like with the ones shown here in the list..
I learnt you need a dependency property, but my understanding there is limited. Here's the basic code I set up with property "IsAwesome...
I have the following storyboard:
<Window.Resources>
<Storyboard x:Key="ButtonsAnim">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="topRightButton" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
<SplineDoubleKeyFrame KeyTime="00:00:00" Value=...
Hey guys, I have a situation where a MediaElement may loose visibility, which cause the video to stop, I want to override this behavior and let it continue in the background. Thoughts?
...
I've seen a number of pixel-shader effect examples, stuff like swirl on an image. But I'm wondering if anyone knows of any examples or tutorials for more practical uses of shader effects?
I'm not saying that a swirl effect doesn't have it's uses, it's just that many of the examples I've found have the basic effect explained and don't g...
I'm trying to build an extensible program where users, among other things, can build their own shader effects.
Google searching got me this far;
class Test(ShaderEffect):
inputProperty = ShaderEffect.RegisterPixelShaderSamplerProperty("Input", type(Test()), 0)
But I still get the error;
TypeError: cannot access protected
me...
Hi all!
I am implementig a simple interpreter and I am looking for a control to represent my variables in a watch list, just like in Visual Studio (tree structure + table):
Do you know any controls for this purpose? If no, give some ideas how it can be implemented.
Regards,
Lerax
...
How to make the selection changed if the popup control droplist is open but no focus on it.Just like IE adress textbox and droplist. Could you give me some sample codes about this.
...
In the subject really, I want to know people's experience of trying to keep all WPF concerns out of ViewModels in WPF.
Cheers
AWC
...
Hi,
I've got two comboboxes. The items of the first one i'm filling in Xaml with:
<ComboBox Name="ddl_pageType" Width="200" BorderThickness="5">
<ComboBoxItem Name="Website" Content="Webseite"/>
<ComboBoxItem Name="CNIProg" Content="Seite"/>
</ComboBox>
and the function ddl_pageType.FindName("Website")...
I have a window made up of several user controls and was wondering should each user control have it's own ViewModel or should the window as a whole have only one ViewModel?
Cheers
AWC
...
I'm about to use a user control developed by a different team (in the same company) and for the app we're developing we're attempting to describe all the data binding in XAML.
Now if I use a third party user control should I expect them to supply a basic ViewModel with hooks for my code or should I expect to write code to bind the user ...
The XAML below is basically trying to make a list of Buttons (rendered from the 'Name' property of objects in the "Views" collection in the current data context.
When I click on a button the CurrentItem property of CollectionView source should change and the associated View should be displayed in a content presenter.
OK. If I click in...
Hello, I have idea to implement my wpf windows like TabPages in tab control. It is possible to do that dinamically in c# code. In Example i have Menu in main window. Some Menu items calls search type windows. Is it possible to do such a thing in C# code (SomeMenuItem_Click): this code adds new tab in tabControl of main window. If there a...
Greetings,
Currently I am in process of developing an application for booking (etc. rooms). The most painful thing in front of me: "The booking chart". It should looks similarly to the following thing:
http://img195.imageshack.us/img195/4807/99573694.gif
Any suggestion how can I build the "skeleton" of the booking chart? should i use g...