Hi,
while trying to use the "InfoStrat"-Bing-Maps-Control in Expression Blend 4 for my Surface Application, I get the error message:
"Mixed mode assembly is built against version v2.0.50527 of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information"
I already found out that I need to write this c...
Hai am creating a usercontol with two textblock and one listbox.
i can able to pass data to textblock in my usercontorl. but i cannot pass the data to my listbox in usercontrol. how to pass my data in the usercontrol
public partial class UserControl1 : UserControl
{
public UserControl1()
{
InitializeComponent();
}
...
Hi,
I've recently been working on a project using WPF to produce a diagram. In this I must show text alongside symbols that illustrate information associated with the text.
To draw the symbols I initially used some png images I had produced. Within my diagram these images appeared blurry and only looked worse when zoomed in on. To impr...
Ok so I'm developing a WPF application that makes heavy use of SQL Server.
I've been asked to create an installer package that checks whether the client already has SQL Server Express 2005 already installed, his operating system (64bit Vs x86) and install the required SQL Server instance if needed.
I'm then required to automatically map...
I've got a model with a few tiers in it - something along the lines of ...
Company > Employees > Phone numbers
So I've got a ListBox showing all the companys in the model. Each ListBoxItem then contains two comboboxes ... one for employees, one for phone numbers.
I can successfully get the employee combo to bind correctly and show the...
*Is it possible to get validation errors(produced by the binding source through IDataErrorInfo or INotifyDataErrorInfo) *without accessing data source?
The point is to get the error message which is going to be displayed.
Thank you in advance.
EDIT: "without accessing data source" means that I don't want to get the error messages thro...
hello everyone, I am porting an application from foxpro to C#.Net. This is a wine shop billing software. Its billing interface screenshot link is here http://picasaweb.google.com/raj.kishor09/RAJK?feat=directlink
But my client wants similar interface on WPF too. I think listview can help me in this regard but don't know how to implement...
HI Can any one suggest me how bind viewmodel to a usercontrol..
Also please share different way of doing that..
I have added viewmodel and view into my xaml file in namespace and in the user control resource tag.. i have defined a data template with data type as the viewmodel wh i have wrote.. inside that i have added my view (i mean...
Hi All,
We are implementing a WPF business application using MVVM. Currently we are trying to determine the best way to show validation errors for DataGrids. Currently we are trying to do so like this:
1) A View user control contains a datagrid bound to an EntityCollection of Entity Framework objects located in the associated ViewMod...
Is there any way without using image to show horizontal or vertical lines in the Rectangle.
...
Dear all,
I have an application using WPF and WCF integrated with Windows health vault.
and now, I have a Omron blood pressure device that i want to connect with my own application.
health vault has its own app to upload the data, but my requirement is using my own apps.
so the flow more or less is like this:
when i plug the device in...
We have a DataSet with an order table and a currency table. The currency id of th order table is linked to the currency table with a relation (see code):
Public Function GetOrders() As DataSet
Dim dtsOrder As New DataSet
Dim tblOrder As New DataTable
Dim tblCurrency As New DataTable
'Define columns
tblOrder.Columns....
I'm trying to put row header text based on a converter function of the index of the row.
I found a way to bind to the datagridrow like below, but i can't find how to get the row index of the datagridrow object.
<DataTemplate x:Key="MyRowHeaderTemplate" DataType="DataRowView">
<TextBlock HorizontalAlignment="Center" VerticalAlignment...
Hello All,
The short question is - how can I prevent (delay) a bound UI element from refreshing until I want it to?
The longer explanation:
I have a process that adds a number of items to an ItemsControl, and then performs some additional calculations on those items using a background thread. This (correctly) updates the items as it g...
MainWindow.xaml
<Window x:Class="MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:my="clr-namespace:MyStuff;assembly=MyStuff"
Title="MainWindow" Height="350" Width="525">
<Grid>
<TabControl Margin="5">
...
I'm trying to create a set of button which have an off or on state, much a checkbox without the check. Ideally I want the colour to change to represent the two different states off(red), green(on). I've tried setting a control template but this only changes the colour for a selection, then reverts back to it's original colour once the ...
Hello,
when using OnRender to draw something on the screen, is there any way to perform Hit Testing on the drawn graphics?
Sample Code
protected override void OnRender(System.Windows.Media.DrawingContext drawingContext)
{
base.OnRender(drawingContext);
drawingContext.DrawRectangle(Brushes.Black, null, new Rect...
I'm trying to create treeview menu where any click on an node would then change a canvas to load an xaml file based on that nodes name. Is this possible?
...
I know there have been tons of answers on this subject, but I still cannot get it to work at all. I've enabled AllowDrop on every control at every level of the application, and tried to catch DragEnter and Drop on every control to no avail. I can drag and drop items inside the application, but any time I try to bring something in from ...
I would like to prevent tabbing into a read-only Microsoft data grid in WPF.
I set IsTabStop to False, but I can still tab into the data grid.
Any ideas?
<WpfToolkit:DataGrid
IsReadOnly="True"
IsTabStop="False"
ItemsSource="{Binding Path=GridData, Mode=OneWay}" >
</WpfToolkit:DataGrid>
...