Can I host the Visual Studio 2010 editor in my application?
I am wondering whether it's feasible to host the Visual Studio 2010 editor in my WPF application - I understand the new editor is written in WPF. If so, what control should I use? ...
I am wondering whether it's feasible to host the Visual Studio 2010 editor in my WPF application - I understand the new editor is written in WPF. If so, what control should I use? ...
I have a TabControl where the content of each TabItem is a master-details view. For the master, I'm using a listbox whose ItemsSource is bound to a collection in my ViewModel. Selecting an item from the list displays that particular item's details in a grid off to the side. When I switch to another tab and then back to the original t...
We are writing a WPF application using Entity framework (Silverlight with RIA services to be precise). We're using a shared ObjectContext through the application so that we can benefit from sharing data across the modules. The problem is - if user during his work opens let's say historical sales, it gets loaded to the ObjectContext and ...
Anyone know a good way to create this object from Xaml? It also has to work at .5 Opacity when layered on top of other controls. It also has to be resizable via Horizontal or Vertical Alignment. I'm having some difficulty. The closest I get is with 2 borders, one having a negative margin--but it doesn't work when Opacity is applied...
I have a button that I want to bind the scaleX and scaleY to the scaleX and scaleY of another element, how can I do that? The tricky part is that I want to bind it to an element that, at least on initialisation, may not have a ScaleTransform set on it... ...
I want that when I double click on a row in Listview, it should display the image corresponding to that row. This row also contains the path of the image. I tried the following but it displays the same image for all rows because I have given the path for a specific image: private void ListViewEmployeeDetails_MouseDoubleClick(object se...
I'm using model-view-viewmodel I currently have a class with 3 pieces of data: 2 integers and an enumeration. Its constructor looks like this: //C# public Outcome(OutcomeEnum outcomeEnum, Int32 acutalOutcomeData, Int32 expectedOutcomeData) { m_outcomeEnum = outcomeEnum; m_actualData = acutalOutcomeData; m_expectedData = expected...
I'm using a SynchronizationContext to marshal events back to the UI thread from my DLL that does a lot of multi-threaded background tasks. I know the singleton pattern isn't a favorite, but I'm using it for now to store a reference of the UI's SynchronizationContext when you create foo's parent object. public class Foo { public event ...
I'm trying to figure out how to add a DataTemplate to the app's resource dictionary. I'm familiar with how to do so when the DataTemplate is in XAML (via a uri), but I'm kind fuzzy at how to do so when the DataTemplate is defined in code. What I have, which isn't working is- //Create DataTemplate DataTemplate template =...
We are looking at buying a third-party grid control for our new WPF application. I would like for some of you to share your experiences with third party grids such as: Telerik Xcedd Infragistics DevExpress ComponentOne Others ?? The grid needs to work with the MVVM pattern and we need those functionalities: Inline Editing Sorting ...
I've been pulling my hair out all day on this. For some reason when I set up my grid while I'm using some custom controls the actual height of the grid rows changes around and doesn't bother to use the height values that I give it. I originally thought it was because I was loading in custom controls in the code, but even when I take th...
I want to "group" some columns in a WPF GridView by having an additional header row that spans a couple of the columns in the GridView. In ASP.Net with a repeater this would look like: <asp:Repeater ID="myRepeater"> <HeaderTemplate> <table> <tr> <td></td> <td colspan="2">Group 1</td> <td ...
Dear all, I am currently at an utter loss. There isnt a single tutorial i read online that covers raising a ValidationError on encountering a duplicate key value in a CRUD application. Basically, I have a data entry form on which on clicking the OK button will insert a record in the database. That table has enforced a primary key constr...
First off I have a datagrid on the main form which is populated with about 7000 rows. It is bound (to ItemsSource) in the forms constructor. Everything runs extremely fast and smooth when the app loads (less than 1 sec). However when I want to load that same datagrid in another window it takes > 1 min. There is no difference in the x...
Ill try to explain my situation as best as I can, sorry if it is not too clear... I have a Viewport3D that contains some large 3d rectangles that are like big crystals. When the user click on one of the crystals, I add a new material to the crystal in the spot the use clicked using an ImageBrush. I then iterate over a list of bitmaps (...
Hey, Im trying to add items to my datagrid. The count of the DataGrid is correct. If i put 3 items in the DataGrid 3 rows are shown when i run the program, but no data is shown. All fields are just blank. Im using this code: public void LoadTimeRegistrationData() { _timeregistrations = _client.TimeRegistrations().GetTimere...
I have a WPF Data template defined in my Windows.Resources section. I would like to access this (really a list box on it) via the code behind. How can I do this? I can't get what I want via an event because I want to get the reference in the completed step of a BackGroundWorker. (Ie no sender (that is a UI element) to go off of there...
There are 2 projects in my Solution. -WindowsFormsApplication8 -WpfControlLibrary1 I am using ElementHost from WPF Interoperability to host UserControl1 from the WpfControlLibrary1. _________________________ Form1 - [] x | ------------------------- .......... | label1 | // label .......... // elementHost1 // wpf...
I want to add two columns in wpf datagrid one image & one text columns dynamically. Xaml code : <Grid><DataGrid AutoGenerateColumns="False" Height="Auto" HorizontalAlignment="Stretch" Margin="0" Name="grid" VerticalAlignment="Stretch" Width="Auto" ></DataGrid></Grid> Code Behind: DataGridTextColumn col = new DataGridTextColumn();...
How can I disable the loading of design-view while opening a form in WPF? Actually, I want to set the XAML-view as the opening tab in design form. It takes so much time to load and the form was locked until I press the Esc button and wait for seconds. There must be an easy way to set this. How can I get rid of this? ...