Pack Urls and Unit Testing. Problem with my environment?
...
I have the following ListBox: <ScrollViewer> <!--Spec Definitions--> <ListBox DataContext="{Binding SpecPackageSpecGroupListViewModel}" VirtualizingStackPanel.IsVirtualizing="True" VirtualizingStackPanel.VirtualizationMode="Recycling" ScrollViewer.IsDeferredScrollingEnabled="True" ...
Hi, I have a custom Panel for laying out text. There is a DependancyProperty called "Text" and when that value changes, this piece of code runs: if( !string.IsNullOrEmpty(Text)) { Children.Clear(); foreach (char ch in Text) { TextBlock textBlock = new TextBlock(); textBlock.Text = ch.ToString(); text...
By default, UniformGrid displays it's children as follows: 1 2 3 4 5 6 7 8 9 I want to be as follows: 1 4 7 2 5 8 3 6 9 Any ideas? ...
I'm trying to set keyboard focus to a TextBox within a StackPanel (which is initially rendered as Visibility.Collapsed). When a button is clicked, I change the visual state to "ClientLookup" and the following StoryBoard is invoked which makes the panel visible <StackPanel x:Name="LayoutRoot" DataContext="{Binding Source={StaticReso...
Hi, I am new to WPF.I am creating a animation for sample online test result.Where i like to show No of attended question,No of correct answer as animation.I need to create small delay between AttendedQuestionEffect() and RightAnswerEffect(); CodeBehind code here public int TotalNoQuestion { get; set; } public int NoOf...
Hi, I have gone through the example of the Tab Control to hold multiple views. But my requirement is bit different. The content control should be the only region to show the views and it must change according to the Commands for example: Add New, View All, Search, etc.. Thanks in advance. ...
I am writing a framework for a rewrite of an existing application. We have a data model of around 900 tables with 11000 fields in total and databases approaching 120 GB in the field. The basic elements of my new implementation are WPF, NHibernate 3, C#, .NET 4.0, NHibernate.Validator and Spring. The application itself is very data/transa...
WPF VS 2010 C# Have a window where the beginning of the code behind is to collect data for a view that take 45 secs or more...how would you do a please wait message that last until the view is collected. also, is there any way to have a wait cursor ? ...
I was just curious if this is a good or bad practice or what the most preferred way of doing this is. The practice I am referring to is that as I am a newb to WPF as I'm going along I have found it handy and useful to put strings, xdocuments, and domain objects into the Application.Resources in the app.xaml when their data is to be need...
I have a 2208 x 3000 TransformedBitmap object with format {Indexed8} that I'm do .CopyPixels() on. I'm using (int)((formattedBitmap.PixelWidth * formattedBitmap.Format.BitsPerPixel + 7) / 8) (assuming 'formattedBitmap' is the name of the image from which I'm trying to copy the pixels) for the 'stride' value in my method call and an ...
Hello; today I examinted WAP from codeplex a bit and saw this: BookListView.xaml: <ListView ItemsSource="{Binding Books}" SelectedItem="{Binding SelectedBook}" SelectionChanged="ListViewSelectionChanged"> <ListView.View> <GridView> <GridViewColumn DisplayMemberBinding=...
When I use databinding in WPF, my target controls are listening for events on the binding source. For example, I may have a ListView listening for CollectionChanged events on a ObservableCollection. If the lifetime of an event source is expected to exceed the lifetime of an event listener, there is a potential memory leak, and the weak ...
I have a compbobox with the following information <ComboBox Margin="10,10,0,13" Name="ComboBox1" HorizontalAlignment="Left" VerticalAlignment="Top" Width="128" Height="21"> <ComboBoxItem Content="All " ></ComboBoxItem> <ComboBoxItem Content="Printed"></ComboBoxItem> <ComboBoxItem Content="Unprinted"></ComboBoxItem> ...
When one presses a letter (or a sequence of letters) in a windows combobox or in a list, automatically the first item that starts with the given letter, is selected. Is there a declarative way to do the same thing for a WPF ListBox that has it's items bound by the ItemsSource-property and the ItemsTemplate set to a DataTemplate. ...
I'm currently working on a problem with a custom UserControl, I want to expose certain properties of child controls as properties on the parent, I also want data binding to be possible. To make all this happen, I created Attached DependencyProperties on the parent: //TimeframeSelector.xaml.cs public static readonly DependencyPro...
So the situation is this: I have a collection of collections! I have 2 list boxes! ListBox A contains my collection of collections as it's itemsource and supports multiple selection (SelectionMode = Extended) ListBox B needs to get it's itemsource from a composite of all collections selected in ListBox A. Is there a good way to do t...
Hello people, I'm about to create WPF application. So far at uni the only way we have ever done GUIs is to have one main window with one code-behind file for handling its button clicks etc.. My issue is that as the application grows, the GUI grows, and the size of the code behind file can get really out of hand! I have identified abo...
I have a WPF 4 application running on XP. When I run snoop it picks up the application, however when I click on "snoop this application" nothing happens. Also when I click on the magnify glass nothing happens. Any ideas? ...
Hello, I have a custom class that inherits 'DataGridBoundColumn' that generates a custom control for me inside my gridview. Now I know I can assign static properties just fine, but my problem is when I try to assign binded properties. Below is an example of my background: This works: public property Background as Brush <Controls...