Image and SnapsToDevicePixels
When I place an image in a FlowDocument, it appears to always be scaled or rendered incorrectly. Is this a bug, how can I "fix" it?The following snippet is a XamlPad ready illustration of the problem....
View ArticleDatagrid column Sorting generating error
I have a datagrid column whose column values are databinded. I have used DataGridTemplateColumn and i need to use the sorting in this column.<my:DataGridTemplateColumn SortMemberPath="FileName"...
View ArticleValidation in DataGrid and connection between Validation.HasError and...
Hi gays.I have question for youIn my application I use MVVM template.View contains DataGrid. DataGrid use ValidationRule for validation.I need property HasError in ViewModel which determines if Data...
View ArticleCalendar control SelectedDates programmatically only
Hi, in Windows Form application I could display BoldedDates and current date.Now, in WPF I want to display a known list of dates programmatically and not allow user to select any date. In other words...
View ArticleXbap Application Download error while integrating with Asp.net
I've tried to go through every solution possible now, trying to resolve this.I've fixed my IIS Manager, used mage.exe, undone clickonce in .net.Can someone please help me fix this? Startup URI:...
View ArticleWPF RichTextBox. How to insert a button in the caret position?
How to insert a button at the end of the paragraph is clear, but how to insert it at the current caret position?Sorry for English.
View ArticlePass parameters from WPF user control to Windows Form User Control via...
Hi, how can I pass a WPF User Control values (dependency objects) to a called Windows Form UserControl?<WindowsFormsHost><local:WinFormUserControl...
View ArticleHow to enumerate a listview using binding
Hello. I have a listview like this<ScrollViewer Grid.Column="3" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" FontSize="12"><ListView Name="ResultDetails"...
View ArticleMove canvas to mousepointer when zoomed in
Hey guys,I have a canvas where I can zoom into with mousescroll and then it zooms into the mousepointer position on the canvas.Now I need to be able to move the canvas around when I move my...
View ArticleWPF-Datagrid smoothscrolling issue
I'm using a datagrid which has large data and some rows have row details and observed that scrolling is wierd,scrollbar used to resize itself while scrolling.Upon further browsing I've found...
View ArticleDatagrid shows extra blank row and blank column
My WPF datagrid shows an extra blank row and an extra blank column. How can I remove those?Certified Geek
View Articlecommand is not firing when IsChecked binding changed programmatically
Hi,I have a checkbox added to treeview item.In the heirarchicaldatatemplate, i have binded checkbox's isChecked property and command property to class properties.when i press the checkbox with mouse,...
View ArticleChanging Model3DGroup associated to Model3D with Helix 3D Toolkit
I'm using Helix 3D Toolkit for 3d render inside a WPF application, my ModelVisual3D is binded to "Model". I setup my model with this:myGroup =newModel3DGroup();Model= myGroup; And then i add "n"...
View ArticleHow to create cuboid and rotate it in wpf using Viewport3D?.
can any one out there tell me how to create a cuboid using MeshGeometry3D so that i can set the geometric of ModelVisual3D.Content of a viewport3D.
View ArticleManaging Thread.CurrentPrincipal
I have WPF application which have a log in form to enter user name and password. The app allows to sign off of current user and sign in another user. I use Thread.CurrentPrincipal (ClaimsPrincipal) to...
View ArticleCombobox selected item set on Loaded="UserControl_Loaded" event
Im working on WPF application, that passes a value from a listview on one page to the next page to have a combox pre selected when the page loads. But its not working.the follow is a snippet of code...
View ArticleReprogram Datagrid row
I need to program a column in a datagrid. The content of this column depends on other columns and it will change with the data that is displayed.Certified Geek
View ArticleGet screen position (pixel) for each vertex of a UIElement3D or get zoom...
To my knowledge, and having referred to your knowledgebase and class library, there is no obvious way of getting the vertices of a UIElement3D object. I am in real need of doing this, so that I can...
View ArticleFuture of Winforms and WPF,Windows
Hi,Please suggests me which one is better for future Winforms or WPF?
View ArticleHow do I remove the small white space around grid in a tab control?
I've got an application I want to put a grid TabControl onto, and within that a grid. I've found that there's a small white space between the TabControl and the grid itself. I tried getting rid of that...
View Article