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

Auto-generated code in WPF shows error. (C#, WPF, Visual Studio Community 2013)

Recently i have started playing with C# in Visual Studio 2013 Community. I was creating a simple data binding while i encountered following error. What i was doing i was using drag-n-drop fr om my...

View Article


XamlWriter skips “x:Name” attribute while saving ResourceDictionary

Here's custom style:<Style TargetType="{x:Type Button}"><Setter Property="Focusable" Value="false" /><Setter Property="Background" Value="{StaticResource AppBackBrush}"/><Setter...

View Article


Window design view gives:"NullReferenceException: Object reference not set to...

Using Visual Studio 2013, C# and WPF.I have a simple User Control when used in a window causes: "NullReferenceException: Object reference not set to an instance of an object."However when code is...

View Article

Image may be NSFW.
Clik here to view.

How to generate WPF Xaml through XSD (xml schema definition)

Hi ExpertsI am working on Projects where we need to generate wpf ui (xaml) at runtime as per different requirements. We are trying to generate xaml from xsd file. We are able to generate UI from xml...

View Article

How do I gracefully handle XamlParseExceptions?

If a control that is dynamically loaded as part of a template has an error, it causes a XamlParseException which crashes the entire application.I can hook into the...

View Article


Importing the correct Namespace into XAML: How hard could it be? :)

The documentation for How to: Import a Namespace into XAML, XAML Namespaces and Namespace Mapping and XmlnsDefinitionAttribute is anemic.It doesn't cover a known issue with namespaces in .NET...

View Article

WPF VB.NET : how to insert a notepad in listbox

I already used the code as below. Dim openfile1 = New Microsoft.Win32.OpenFileDialog With {.Filter = "Text (*.Text)|*.txt"} If (openfile1.ShowDialog() = System.Windows.Forms.DialogResult.OK) Then For...

View Article

How do i split a line in a csv file and populate a combobox and a textbox...

What I'm trying to do is split the line and fill a combobox and with the selecteditem and the textbox with the value of the combobox selecteditem which is the second part of the line split.Thanks in...

View Article


How to get cursor position in XAML template?

I made a template for a button and I want to get the location of the cursor relative to the button when Iclick it and setting the text of the button with the location I get ("X=..., Y=...") or storing...

View Article


How to import MySql database to windows phone 8.1 app

Hello everyone I'm Designing a new windows phone 8.1 app and I need some help from you.I have a database that Im using for the some app but for Windows.currently using db4free.netand use this code...

View Article

Renaming the binding and the property?: C#

How can I rename a property: eg, private string _Material; public string Material { get { return _Material; } set { _Material = value; NotifyPropertyChanged(); } }And it would rename its binding in...

View Article

Why in MVVM, we shouldn't use the partial class of the View as the View-Model?

Maybe it's a very naive question. But I cannot imagine at this moment in time the reason why we should not use the partial class of the View as the VM. It could be because I haven't yet face a...

View Article

Debugger exception on WPF loading

Hello,    I am looking for a little help with this.  I have a WPF browser form that I am trying to load.  I run the debugger, but when it gets to the page I get the following:An exception of type...

View Article


Combobox Focus(),Color

if (cBoxislem.Text.Trim() == string.Empty) { booValue = false; cBoxislem.Focusable = true; cBoxislem.Focus(); cBoxislem.Background = NullColorFromHexa(255, 14, 14); return booValue; }and; public...

View Article

Image may be NSFW.
Clik here to view.

Deploying a WPF app

hi,I developed a wpf app and I am trying to deploy it. I created the setup using installshield special edition.i have listed .net framework as a prerequisite and it is included in the setup files.Still...

View Article


Updating a Label content from code behind using dispatcher

hi,I am trying to update a label's content from code behind.This part of the code is running in background worker. I wrote the following code to update a label's...

View Article

DoDragDrop oddity with Right Mouse Button

Hi all,More experimentation - today with Drag & Drop.Everything seems fine when performing this with the left mouse button, but when initiating this from WPFwith the right mouse button it appears...

View Article


Image processing with decode pixels for TIFF

I have a major issue in my applicaiton due to this issue, Could have been in the base framework for decoding TIF issue.DECODE PIXEL HEIGHT/WIDTH"The JPEG and Portable Network Graphics (PNG) codecs...

View Article

Wiring up an event handler in the XAML editor

How to wire up an event handler in the XAML ceditor?

View Article

Image may be NSFW.
Clik here to view.

It's time for the TechNet Wiki WPF "Great Guru Love-in"! You too can get some...

February at TechNet Wiki usually involves a lot of love... We love to read.We love to learn.We love our gurus, for they love to give.  We love to make friends and promote great content.We love to meet...

View Article
Browsing all 18858 articles
Browse latest View live


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