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

Custom Control dependency property doesnt called

Hello,I'm having Custom button control which is derived from Button Control,Code Snippet: public class CustomButton : Button { public CustomButton() { } public Brush BackGroundButton { get { return...

View Article


Setting isExpanded on TreeView in WPF

I'm having a problem implementing a search functionality in my TreeView on a WPF Project.I used this guide to create a TreeView with ViewModels. I have used the TextSeachDemo and edited the Controls in...

View Article


Animation Stuttering With CompositionTarget.Render with or without D3DImage

I understand WPF stutter is an ongoing topic.  Any help or clarification would be really appreciated.We have a project that implements D3DImage using CompositionTarget.Render as described by MSDN. This...

View Article

Animating window loading in xaml

I have this xaml:    <Window.Triggers>        <EventTrigger RoutedEvent="Window.Loaded">            <EventTrigger.Actions>                <BeginStoryboard>...

View Article

Xaml Error : Element is already the child of another element.

Hi All, I am getting this error on my xaml files.What is this error and how can I get rid of this error. Thankyou, ~P

View Article


How to dock a borderless window on screen?

Hi guys,I got a borderless window, but all its docking functionalities are gone. How to get these functions back. For example, when it touches the upper boundary of the screen, it will take up the...

View Article

WPF Datagrid Empty Default Column

How to get remove the WPF datagrid empty default column? Is there a property to remove that column. It's taking up space with no data. Don't need an empty column if there is no data.pianoboyCoder

View Article

WPF: what is a good way to indicate an operation will take long time in UI?

Our WPF application includes report feature. By default, UI will only display the 50 latest reports base on run date.However, the application will provide query feature which allow to display all...

View Article


How to reduce size of an XPSdocument to fit (or scroll) in a DocumentViewer

I am having problems with the DocumentViewer and would appreciate any help that can be offered. I have it successfully to the point where the drawing (.dwfx) is downloaded from a HttpWebRequest to a...

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

Problem on Binding Double to TextBox in WPF

I have a textbox like this<TextBox Text="{Binding ProductDetails.Amount, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Grid.Column="3" Grid.ColumnSpan="2" Grid.Row="5"...

View Article

COMException when measuring a TextBlock

Hi,Many of our customers face a seldom issue that we cannot reproduce, but for which we have many similar call stacks. Here is one of them:System.Runtime.InteropServices.COMException (0x80004005):...

View Article

Application crashes only on System Reboot/Shutdown

Hi,i have an application in C#/WPF that loads it's modules in separate AppDomains using Marshaling. Each module has it's own window, but it inherits a WindowBase with an application wide unique theme....

View Article


Letter spacing issue while converting FlowDocument to Xps using Justify...

I got a strange problem in an application converting FlowDocument to Xps. I condensed the app to a little scenario. Xaml:<Grid><Grid.ColumnDefinitions><ColumnDefinition...

View Article

How to use FlowDocument in asp.net mvc?

I am trying to convert a wpf application into mvc. In wpf, I used flowdocuments to write down the result of the calculations, and displayed them in a flowdocumentScrollViewer.  Following is the...

View Article


How to debug c++ application inside C# application

Hi,I have developed main application in visual studio 2012, a  c# project and another windows application in c++.In my code, i have called c++ application inside C# application using appcontrol.exe =...

View Article

How to get Row Data from a DataGrid and send it to another ViewModel ?

Hello,I'm working on archive panel, for my DeskAlert Application. So I've created a view with a DataGrid : this Datagrid is binded to an ObservableCollection which contains all's of archive data...

View Article


x:Bind in windows 10 Mode One way : I am trying to update the bind list when...

If i tried to use TwoWay mode, It shows below error: Error : Invalid binding path 'itemsList' : Cannot bind type 'System.Collections.Generic.List(System.String)' to 'System.Object' without a...

View Article

RelativeSource binding effects Combobox popup position

I have a really weird issue. I have a MainWindow which contains several UserControls and one of these contains a TreeView with a StackPanel in it. The width of this StackPanel has been bound to...

View Article

SurfaceScrollViewer Pinch to zoom doesn't work

I have a SurfaceScrollviewer as below :              <s:SurfaceScrollViewer x:Name="ScrollView" HorizontalAlignment="Left" Height="Auto" IsManipulationEnabled="True"...

View Article
Browsing all 18858 articles
Browse latest View live


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