Hello,
I have an AutoCompleteBox whose ValueMemberBinding uses a ValueConverter :
ValueMemberBinding="{Binding Converter={StaticResource MyValueConverter}}"
This ValueConverter uses a global property to convert the value.
When I change this global property I'd like the AutoCompleteBox displayed strings to update accordingly.
For ins...
Hey guys,
TextBox.ForegroundProperty is inherited from TextElement.ForegroundProperty.
Unfortunately TextBoxs DefaultStyle sets this Property again.
That means that setting TextElement.Foreground on any parent container of the TextBox does not affect the TextBoxs Foreground Color.
Do you know any elegant way to avoid this behavior? I ...
Hi all,
I am searching about how to create variable number of columns in a DataGrid from the Ilist in MVVM way. The requirement I am working on is very big and also the number of rows and columns are not known But I did not find satisfactory answers
Is there some one that had to do the samething ?
If there is no way of generating suc...
Hi All,
My problem is that in WPF, whenever I try and change the colour of a button's background using triggers or animations, the default mouseover effect (of being grey with that orange glow) seems to take priority.
After extensive searches I'm clueless as to how to remove this effect.
Any help?
Thanks,
Neil
...
Hi All,
I've just created a WPF 4 application.
Then I go to the security tab in the properties, and set enable click once security, set it to Partial Thrust and set the zone to Internet.
But when I run the application I get this error:
Request for the permission of type 'System.Security.Permissions.UIPermission, mscorlib, Versio...
Hi
Recently I had corrupted font cache. I fixed it by removal of cache file and restarting of Wpf font cache service. Also I updated my outdated driver.
However there're lot's of users on customer side without administrative rights and there're no way to upgrade their pretty old drivers of videocards.
Could you say me what if i embed ...
I have a very common question. What is the best way to do localization in a WPF app.
Well, I searched in SO and Binged a lot too. But I could not find any pointers which is really simple and elegant.
Assume that I have to display in UI something like:
In English: Orgnanization - Beoing
In French: Organizzazione - Beoing
<St...
I write a sample ribbon here and tried to changed the background of the item as indicated by the #2 arrow in this picture:
I tried to use all the properties related to the background but none can do that. Please help!
[Edit]
Here are some links I found that would be helpful to get started:
Control Styles and Templates (look under ...
I develop desktop-based WPF-application, that uses SQL Server 2008 R2 Database and ADO.NET Entity Framework as connection tool between database and application.
In one of the windows there is need to show content of database's table and let user to perform some manipulations, such as add new record to database, edit selected record and ...
I have user control that i wrote.
this user control is appear on some Window ( host ) and the window size is dynamic.
I want to make the user control size to be also dynamic - and if the window host size is change ( grow / shrink ) then the user control also will change.
I try a lot of thinks - but the user control size is not changi...
I have tried adding an about box in blend using the method described here:
http://stackoverflow.com/questions/3411952/about-window-or-about-box-in-wpf-3-5-vs2008
However, I end up getting an error saying that the namespace System.Windows.Forms doesn't exist.
Does blend not support this namespace? if so, is there another method for ...
I am having a requirement where in I have to revert the values of a TextBox to old value when the user enters a wrong input. I am using MVVM framework so I dont want to write any codebehind. The Text and Tag of TextBox is databound from ViewModel variable. So my Tag field of TextBox will always have old value. I want to use the Tag field...
I need to create a desktop application for Windows and I'm in doubt about which technology to choose. Fact is that the application must do interaction with local resources:
Communication with SQL (need support for SQLite and MSSQL - local and remote, and would love to use NHibernate; maybe even with Castle's ActiveRecord)
Interaction ...
i have a simple button whom i want to switch his template(or style ...)when he is being preesed
i want to move from this
<DataTemplate>
<Button
Click="Button_Click"
DataContext="{Binding}"
Height="65" Width="79...
Hi, I datatemplate a grid header with a button. When the button is clicked, I want to send the uid (which is a property of the grid column(parent)) as the command parameter.
I Tried :
1. Template Binding
2. Relative Source
3. ElementName (doesnt accpet Binding)
But nothing seems to work. Any clue, how to bind to a parent's property in...
Using Silverlight 4 & WPF 4, I'm trying to create a button style that alters the text color of any contained text when the button is mouseover'd. Since I'm trying to make this compatible with both Silverlight & WPF, I'm using the visual state manager:
<Style TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value>
...
I'm new to C#4 and WPF and I'm about to start a new application.
Coming from a C++/MFC world, I'm interested in testing strategies used with up to date technologies.
From instance :
Unit Testing
Functionnal testing
UI Testing
other?
Any advices would be appreciated.
Thanks
...
I've seen many similar questions on how to get data binding working with a checkbox, but all of the examples I've seen are in C# and I can't seem to make the leap to convert it to IronPython. I have a checkbox defined in a window thusly:
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://sc...
Hello,
I am failing in achieving a very simple functionality from a WPF ComboBox.
My ComboBox needs to list a collection of values. This works fine. The value id is also saved succesfully in the database. The problem is that when i want to open the window in edit mode, the combo stays empty. Here is the code :
<ComboBox ...
I have a service that retrieve only one node that has subNodes.
I want to bind this node to the treeview by HierarchicalDataTemplate
The problem is that itemsSource require a collection.
Can I Somehow Bind the treeView to this node without wrapping it with a collection?
...