Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Browsing all 18858 articles
Browse latest View live

open a file and display it from file share using c#

im using a wpf windows application. On a button click i want to open and display a file which is in network file share. please provide me some idea and code for thisThanks in advance

View Article


Need ItemsPanel for following requirement

If I have a collection of data (for ease sake lets say 1 -12).I would like the ItemsControl (most likely a listbox) to list the items as follows :1   72    83    94    105    116     12Tried a bunch of...

View Article


while Inherit style in WPF it affect parent style

<StyleTargetType="local:CustomControl"><Setter Property="Background" Value="Transparent"/><Setter Property="BorderBrush" Value="Gray"/><Setter Property="BorderThickness"...

View Article

SelectionChanged event is not working in case of footnote in word document

HiI have a desktop application that will search some text in word document and show in right hand side pane. and on selection of particular finding it will highlight the text in word doc.but if the...

View Article

Image may be NSFW.
Clik here to view.

WPF Charting for Polar Chart

Good Afternoon Everyone....I am new to WPF application. Based on radious only I want to draw polar chart and plot x,y value in that polar chart which are coming from text box. Actually I want  to draw...

View Article


Proxy behaviour in WPF application

Hi,I have a WPF application that communicates with a WCF service. Recently it was desired for this application to communicate over a proxy. This was implemented as following:var proxy = new...

View Article

ComboBox Editable Percentage

Hello i have Slider in WPF<Slider x:Name="slider" Minimum="0.25" Maximum="4" Padding="0,0,0,0" Margin="0,0,0,0" Width="52" SmallChange="1" ValueChanged="slider_ValueChanged" ></Slider>i...

View Article

WPF - Scroll to a certain line designated by number HELP

Hey all,I have a Bible program that I wrote (type a passage, it displays the verse, the chapter, and has a text box you can type notes/commentary in).It works really well, I am very happy with...

View Article


Displaying Incorrect Preview In MainWindow

Hi,I'm not sure why but for some reason the 'preview' of my MainWindow is not displaying correctly. In the MainWindow.xaml tab when editing my window the preview of it has a thin black title bar and a...

View Article


storing selected foreign key values from WPF ComboBox selection into current...

I have partially developed a WPF/C# interface to an ACCDB.The data values from the master table show up correctly in TextBoxes.I am trying to further implement the desired interface which shows values...

View Article

Image may be NSFW.
Clik here to view.

Wierd scrollviewer margin

Dear all,I have a simple scroll viewer which allows me to slide to different content area with page size of 1920 as width.<ScrollViewer Grid.RowSpan="3" x:Name="_mainHScrollViewer"...

View Article

Image may be NSFW.
Clik here to view.

Ancestor binding not working for expander!

Hi everyone,I have a project in which I have a user control with ItemsControl, whose ItemSource I bind to a collection of views.Each view contains an Expander and all contents are within that.This...

View Article

Inking only with stylus?

Hello, is there a way to instruct an InkCanvas to only allow inking if a stylus is used (no inking with a mouse/finger, but preserve mouse events)? Thank you in advance.-L

View Article


INotifyPropertyChanged and BindsDirectlyToSource

I have a control which bindsdirectlytosource to my business object. My business object implements INotifyPropertyChanged for all of its properties.When I change a property on my business object, the...

View Article

Spell Check is not working in WPF TextBox

Hi,I have enabled Spell Check on a WPF Text Box, but the spell check is not working in my application. But in a sample application it is working as expected. Both my application and sample application...

View Article


Image may be NSFW.
Clik here to view.

How to achieve a scrolling effect with ListBox.ScrollIntoView.

Hi guys,I am trying to achieve a scrolling effect (please see fig. below) with ListBox.ScrollIntoView.However, instead of Scrolling Into View, the items jumped into view. 2 questions:1, Did I miss...

View Article

WPF: How to keep the GridView column width expand feature (drag the column...

We use the ListView to display our report list and Inside ListView is GridView. One of the feature is auto increasing the column width as needed. GridView column header provides this auto expanding...

View Article


WPF: how to achieve TextTrimming="CharacterEllipsis" if we use...

We use ListView to display report list. The Report list needs to sort on column header. So we have to use "DisplayMemberBinding" in GridViewColumn as following:<GridViewColumn Header="{Binding...

View Article

How to bind DataGrid to ObservableCollection and make it dynamic

Hi,I would like to bind my Datagrid to ObservableCollection from Entity (class created using ADO.NET Entity Data Model). Now, I have button bind to the command on my ViewModel, but I would like to...

View Article

Set position of MainWindow based on loaded ContentControl

Hi All,Is it possible to set Top and Left for MainWindow that will be based on loaded ContentControl?My MainWindow has SizeToContent set for WidthAndHeight. Each of my views loaded to MainWindow is...

View Article
Browsing all 18858 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>