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

How to accomplish auto sizing of text box based on the scroll viewer size

HI I have an issue related to the WPF scroll viewer..Inside the scroll viewers 2 dock panels are there..Each of the dock panels consists of 2 text boxes.The requirement is such that whenever user...

View Article


Superscript in WPF RichTextBox

Why doesn't this work?EditingCommands.ToggleSuperscript.Execute(null, rtb);Where rtb is a RichTextBox.

View Article


Custom AutoComplete box dropdown image sometimes shown in background...

I have a custom Autocomplete box which contains a dropdown. Dropdown contains a list of values. Expected result is the drop down should close after selecting an item from it. But sometimes it remain...

View Article

wpf user control image not found error

HiI have a dll winch is a wpf user control and within it several images with "Build Action" = "Resource" to be loaded dynamically like this: Image = new Image {Width = 16, Source = new BitmapImage(new...

View Article

Image may be NSFW.
Clik here to view.

DataGrid loses styling upon click of a button

First, I would like to say thanks to everyone in this forum who has helped me with my trek in learning WPF.  I will be eternally grateful!  My application consists of 3 DataGrids, some dynamic...

View Article


Visual Studio Data Sources

Hello,I have been trying to write a WPF application in Visual Studio Community 2015 which displays data from a database in a datagrid.I learned how write WPF applications. And I've created a couple...

View Article

ICommand ClearCommand

How do I delete after saving the data in the TextBox<TextBox x:Name="ad" HorizontalAlignment="Left" Height="22" Margin="100,78,0,0" TextWrapping="Wrap" Text="{Binding Ad,...

View Article

Image may be NSFW.
Clik here to view.

Binding Storyboard to ActualHeight doesn't work

I want to expand a stack panel from a fixed height to the actual height:<DoubleAnimationUsingKeyFrames EnableDependentAnimation="True" Storyboard.TargetProperty="(FrameworkElement.MaxHeight)"...

View Article


WebBrowser control is locking files, can't delete during application cleanup.

Hello,I have a WPF application in which I am displaying temp pdf files in a WebBrowser control. When the application shuts down I am trying to cleanup the temporary files, but when I try to File.Delete...

View Article


Using a variable, not hard-coded value

I'm trying to use WPF / VB.Net to login to a page. The page has two fields (textboxes) "username" and "password" and a button, "submit". I want to fill the fields and press submit. And I would want to...

View Article

WPF Webbrowser, select a value from a dropdown form

I have this kind of form on a website (and no, I can't alter it at all, I just have to go with what I have there):<form method="post" action="/page/otherpage" class="formclass"...

View Article

Wpf - Usercontrol popup problem when click on button.

Hello everyone,I have a Window page, after click a button from window page --> then a UserControl page showing. After Inside UserControl there is a <Popup Name="MyPopup" popup. The Popup always...

View Article

Making a Control Selectable

Is there a way to make a control selectable for Tab Navigation and focusable?In my case a border control:<Border x:Class="RouteCompanyItem"...

View Article


WPF MVVM How to combine many filters in ICollectionView

I have a question that seems fairly easy but it seems i have a problem with it:I have a data grid with some data:<DataGridItemsSource="{Binding Candidates,...

View Article

C# WPF MVVM WindowsFormsHost KeyBinding not triggering

Hello,I have a windows forms control loaded into my WPF application through WindowsFormsHost.  When i start the application and press the KeyBinding, my Keyinding is executed.But when i click into the...

View Article


Switching between the views in Prism on a region.

Hi,  My requirement is I have a region and I wll be switching between the views based on button click.  I have a NavigateCommand which is binded to two buttons and my execute function of the command...

View Article

Using a DP defined in the window code in the window XAML

Cannot figure out how to use a DP that is defined in the code behind of a window in the XAML for the window.  Don't have a sample and google/bing has failed me.A little more info.  The DP is defined in...

View Article


WPF Datagrid row Delete event using Delete key

Hi,I have a xaml for Order Header entry with a datagrid for Order LineItem. It is bound to Entity Framework. I allow the datagrid row to be able to delete (CanUserDeleteRows="True"). I would like to...

View Article

RibbonGroup always as a drop down.

Hi everyoneHow do you make a WPF (.net 4.5) RibbonGroup stay in button only mode, which when clicked then displays its content in a dropdown. It goes to this mode when you make the window width...

View Article

WPF, How to make text as bold in a string

I have a WPF application. There is a key as Introtext as "My name is John" which is coming from the static resource file "EmployeeResources.resx".I want to display string as "My name is John" (Is must...

View Article
Browsing all 18858 articles
Browse latest View live


Latest Images

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