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

"Error accessing the OLE registry" when i run a project in Visual studio 2015

i am getting Error accessing OLE Registry when i run a project in Visual Studio 2015 which is developed in Visual Studio 2005  

View Article


Image may be NSFW.
Clik here to view.

Switch Case Problem

 This is my code block. but I have a small problem.IList<FrameworkElement> tControls = pControls.Cast<FrameworkElement>().ToList();                switch (tControls)                {...

View Article


Update ViewModel's data without recompiling the application?

xaml.cs ------------------------------------------------public partial class Window1 : Window{public Window1()      {InitializeComponent();DataContext = new ComboBoxPatterns();}ComboBoxPatterns.cs...

View Article

VisualState automatically changes when the control or its parent control lost...

I've met a problem when using the VisualState. In the "Common State"VisualStateGroup, there are four VisualStates which are "Normal","Selected","PointerOver","SelectedAndPointerOver".<VisualState...

View Article

Collapse/Remove 1 control within a ListBox based on condition

Hi,I am trying out a use case where a listbox has label and a button. The button should be visible only for the new item until the progressBar is visibile for example. And after that the listbox should...

View Article


Non-reproducible Style.Seal() issue. (Last Resort)

Ok, so here's the deal.I've been Googling for two weeks , to no avail. This post is kind of against all regulations, since i see everyone asking for code samples that make the issue reproducible. Well...

View Article

Binding status of button

Hello, Trying to change image on button when button status is changed usying XAML binding, unfortunately I'm failed.Not sure what's wrong with the code. XAML    <Grid>        <Button...

View Article

Image may be NSFW.
Clik here to view.

WPF UI thread problem

 This my code block.private async void BtnApplyall_Click(object sender, RoutedEventArgs e)        {                 try            {                ucLoading.Visibility = Visibility.Visible;...

View Article


Image may be NSFW.
Clik here to view.

How can I make a custom control just like sheet of Excel?

I wanna make a custom control of sheet just like the Excel. Here are the features I need of the control: 1. It can resize the width&height any time by the users like Excel. 2. It can merge cell...

View Article


MenuItem as a radio / options list

Is it possible to make a series of MenuItem's behave like a radio button list?The effect that I want is the same as that in Windows Explorer under the View menu for List/Tiles/Details selection - a dot...

View Article

Image may be NSFW.
Clik here to view.

How set scroll viewer on particular panel or section

Hi, I have large page with scroll viewer. In the page different different are sections. I created section with the help of stack panel and grid view. left side have option to reach on particular...

View Article

Single Channel Memory platform performance

Hi, I have a problem running my program on platform with single channel memory. I use d3dimage and dx9 surface to render video with wpf and it works fine. but when running on platform with single...

View Article

Load xml data into 1 ComboBox and 1 TextBox

Terms.xml ----<?xml version="1.0" encoding="utf-8" ?><Terms><Item Name="Muddy" Surname="Waters" /><Item Name="Roy" Surname="Buchanan" /></Terms>-----------------xaml...

View Article


Access and set ViewModel property in common class in WPF application

Hello All,I have a viewmodel PersonViewModel in WPF application and this viewmodel contains LstRequests property: public List<PersonRequest> LstRequests { get { return lstRequests; } set {...

View Article

How can I get controls inside the custom control?

I made a Custom Control, here is the XAML:    <Style TargetType="{x:Type local:Sheet}">            <Setter Property="Template">                <Setter.Value>...

View Article


Image may be NSFW.
Clik here to view.

Create DataGrid: All Headers, Cells and Contents Align to Center All & Width...

I have a observable collection which include many class content. If I set the datagrid itemsource as the observablecollection, datagrid is created well without any problems. My problem is alignment...

View Article

application for fast food restaurant

HI..I want to develop an  application for fast food restaurant like Burger King, Machdonalds  in WPF. (In Which data entry operator will be able to enter the phone number and get the accurate...

View Article


Why BitmapEffect is't working with custom canvas in wpf?

I am trying to add Bitmap Effect on a Drawing Group and I want to show it using OnRender() method of my custom canvas, but bitmap effect is not showing any effect. WPF - XAML<Window...

View Article

Send Data To WebBrowser and Json Serialize List For WebBrowser In WPF C#

I want to achieve like this cycle: Save many datas in List<> Send List<> to WebBrowser Html Convert List<> Json Serialize Use List elements in JavaScript (ChartJs) I have achieved...

View Article

my Windows crash with StackOverflowException on InitializeComponent() method...

hi ladies and guysI'm practising WPF (C#) and suddenly my forms (Window) started to throw an StackOverflowException on the InitializeComponent() method. All Windows including the main one. Could anyone...

View Article
Browsing all 18858 articles
Browse latest View live


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