Change foreground color dynamically based on background color
Problem domain: In my WPF application, I change background of lot of UI controls like Button or ListItems dynamically based on data they contain. The background is changed either when the control is...
View ArticleYou could be September's TechNet Guru! Turbo charge your CV with awards and...
TechNet Wiki is partnering with... YOU! Give us some juicy technical content and we might big you up!It really is that simple! Show us your forum solutions or drop us some nifty snippets and become...
View ArticleGeting row index in WPF
<DataGrid Name="Grddaroo" AutoGenerateColumns="False" GridLinesVisibility="Vertical" Width="573" Height="121" CanUserAddRows="False" SelectionUnit="Fullrow">...
View ArticleBest way to reuse elements in xaml
Hi,I have a xaml which defines a DataTemplate and inside it I have to put some items defined as <StackPanel Orientation="Horizontal"><TextBox Name="Address" Width="100"/><ComboBox...
View ArticleApplication Designing guide line for interaction between Win & Web application
our company has website which has been developed by asp.net web form and hosted in shared location in ORCSWEB company. web site has a specific page from where people upload their CV. when a new CV is...
View ArticleDatagrid template column combobox selection dissapears after clicking on a...
Hello..I have a datagrid and one of the columns is a template column with a combobox. The items in the datagrid and the combobox come from a collection. The datagrid collection has the .Include in the...
View ArticleDataGridCellTemplate with DataTemplate and DataTriggers in Code Behind?
Hi,I have to create Datagrid columns on the fly using code.is it possible to do the below template in Code Behind...
View ArticleHow to get previous value from slider
I'm having problems on the toggle switch and the slider. The value of the slider is used to increase or decrease the volume of my media element. However, let's say if I set the value of the slider to...
View ArticleFor Magnus (PasswordBox Watermark)
Hi Magnus,This is related thread with http://social.msdn.microsoft.com/Forums/en-US/5a2b5e4a-6749-4b3c-8ce9-2c13c63188a3/passwordchar-property-in-wpf In the aforementioned thread you give me this url...
View ArticleProblem in get image in wpf
Hi, I have a problem to copy the image from one place to myproject..i copied the image through browse button and that image currently present in Visual Studio...
View ArticleWPF Resize Control Problem. Help!!!!!
Hi, I'm trying to implement a certain "Resize" behaviour, but despite several attempts I've failed to do so. Please Help !!!! Here's the code: <DataTemplate DataType="{x:Type...
View ArticleHow to implement tooltips for validation errors and still have tooltips?
Hi all,I think this is a simple question. I am using a validation approach as detailed here:http://msdn.microsoft.com/en-us/library/ms752347.aspx#data_validation - where they use a ! colored Red with...
View ArticleStyle BasedOn not quite working... Any idea why not?
Hi all,I have a style that has 2 triggers based on an IsEnabled property (1 for true & 1 for false) to enable controls (so we can be in view or edit mode). It also has a style for...
View ArticleListview paging
I am trying to follow this to do my listview paging but nothing shows up in my listview at all. http://code.msdn.microsoft.com/windowsdesktop/CSWPFPaging-ce1ce482Is it because the way I am binding? In...
View ArticleChanging binding mode on Slider caused to change value
I have sliders with twoway binding enabled at startup. But when I move them, moving is not smooth enought. So, I decide to change binding mode from twoway to onewaytosource after Thumbs.DragStarted...
View ArticleDefining language does not work properly
Hi all of you,In my WPF project I've got two RESX files, one is MasterGIT.en.resx and the another one is MasterGIT.resx.They have got label either spanish or english (ContextualClientes and...
View Articlezoom at center inside scrollviewer
Hi,I have a canvas wrapped in a scrollviewer, which I'm using the mousewheel to scale the canvas with.I'm having problems of finding an easy way of zooming to the exact center of the view in the...
View ArticleWPF Serialization with Multibinding
Hi friends,I have very confused to Serialize the control tooltip with multibinding. Initially Binding did not work while serialize the Button control , then i have searched some blogs and finally found...
View ArticleHow can I get the full Images project path?
hi there,Both "Environment.CurrentDirectory" and "System.AppDomain.CurrentDomain.BaseDirectory" return the same:"..\bin\debug"I want to get "..\Imagenes\"Primary platform is Windows 7 Ultimate 64 bit...
View ArticleSqlCe Exception : Operation is not supported on this platform.
I created a Setup of basic WPF application (By using SqlCe as backend) with login window, but when i open the connection with SqlCe DataBase to check the credentials getting this Exception: "Operation...
View Article