wpf

How to iterate all query paths within an image header namespace in WIC?

Hello All, I am using Windows Imaging Component to read/write image metadata in my WPF application. I would like to know if there is an efficient way to know if any paths exist within a namespace. For instance I would like to know if any paths within IPTC namespace exist and if not I want to delete the namespace from the image header. ...

ClickOnce application configured to perform updates programmatically still sometimes displays the ClickOnce Update Available prompt

We have a WPF application deployed using ClickOnce which checks for and performs updates programmatically on application startup. This generally behaves perfectly except for the case where the user chooses "No" to our "Do you wish to update?" prompt. In this case, the next time the user launches the application (consistently) the ClickOn...

Can you view XAML as "regular" .net code (c#\vb.net)?

There are times when I find some example XAML that I want\need to do in code (c#\vb.net). I assume at some point the XAML becomes code, or at least IL. So my questions: Am I correct in assuming that XAML is converted to IL? (or if not IL what does it become?) If the above is correct, when does XAML become IL (or whatever it becomes)?...

WPF/C#: How to add images from a horizontal listbox/listview by (file paths coming from a database table)

Is there are way to customize the listbox/listview horizontally and add items (images) coming from a database which has a record of image file paths? ...

Can I use C++/CLI (.NET Winforms/WPF ) to provide GUI for app written in native C & C++

Hello, I've an app written C & C++. Now, I need to provide a GUI for this app. MFC is the best option for me. But I'm not familiar with MFC. So can I use .NET to build GUI for this? If so, How? Please be clear. If I can use .NET I guess I can use WPF too right? ...

Reading xmldata through parser

Hello Everyone I am Reading Data as a xmlElemet through parser I am getting error Like..'\b', hexadecimal value 0x08, is an invalid character I Read this string.. Thanks.. XElement xParser = null; string sPwd = null; string sKey1 = null; string sKey2 = null; System.Text.ASCIIEnco...

How to communicate between C# and Wpf projects ?

Hey folks , i'm working with 3 projects , one C# (let's called it A ) the other two are Wpf projects(let's call them B,C). The project B has a main window which contains a button ,when i press the button it shows the project "A" main's window .(i've done that by adding the right references and doing the code below in button click ev...

MVVM: ado.net entity framework and model

Hi, I'm writing an application in wpf that uses MVVM. I wondered if I could use ado.net entity data model as a model in MVVM? Is it the same? If not, why? Thanks for any help. Regards, Ev. ...

Is WPF easy to learn when compared to other languages?

Is WPF easy to learn when compared to other languages?. Or should the Approach towards WPF learning be changed in comparison with other languages?. ...

Problem to load a UserControl inside XAML node

I have a separated assembly where I defined several standard UserControls. Some of this are standard toolbars, like this: <UserControl x:Class="XXX.ToolbarFullMaintenance" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > <ToolBar Style="{DynamicResource Toolba...

ItemsControl that loads items one by one asynchronously.

Hey Guys, I am creating a custom DataGrid by deriving the traditional tookit based WPF DataGrid. I want a functionality in the grid to load items one by one asynchronously, wherein as soon as ItemsSource is changed i.e. a new collection is Set to the ItemsSource property or the bound collection is Changed dues to items that rae added, m...

change header for every group in datagrid wpf

hello, I have a datagrid in which I have grouped the rows according to the author. I have bound the datagrid with collection of Author class objects. where, Author class have three properties as Book, Publication and Number of copies which would correspond to the columns in the group in datagrid. My problem is I want to display the su...

WPF: ListView inside LIstViewItem: How to support button_click

Hi I have problem with using buttons that are placed in the itemtemplate of the listview which is placed in the itemtemplate of the outer listview. I'll try to simplify the code to show only the idea. I have a objects collection which looks like this: Main object contains a list of innerObjects. Every innerObject contains a list of ob...

MVVM scenario with main window and many user controls

Hi, I have a main window and many user controls that I want to show/hide depending on the user choice. For example there is a user control called Customer that should get all the customers from a database or a user control that is a form to sign up for a service. And so on. Each of this controls have viewmodel that should get the data fr...

How to set the PlayList Index for Mediaplayer(ExpressionMediaPlayer:Mediaplayer)

Hi, I have a Mediaplayer control on my XAML page like below: <CustomMediaElement:CustomMediaPlayer x:Name="custMediaElement" VerticalAlignment="Center" Width="600" Height="300" Visibility="Collapsed" /> Now I am ble to set the playList by using setPlayList() method like below: priv...

EventTrigger RoutedEvent in wpf xaml

I have a problem in wpf xaml and i'm pretty new on this so it may be something basic i want to rotate a ellipse 360 degree <Ellipse Name="test" Fill="Black" StrokeThickness="5" Margin="0,0,0,0" Height="66"> <Ellipse.Triggers> <EventTrigger RoutedEvent="Ellipse.Loaded" SourceName="test"> <BeginStorybo...

WPF ListView's GridView item expansion

Is it possible for a WPF ListView that uses a GridView view (ListView.View property) to have one of its items 'expanded' i.e. create some control underneath the item. I cannot simply add another item as it will assume the GridView item template, i.e. appear with columns rather than being a single usable area. This is how my list view c...

How catch "Resource not found" warnings in WPF / Visual studio

I am working on a project, in which I am changing themes, by doing this there are some warnings being issued, and I am wondering how to prevent them from beeing issued, or reaching the debug output. `System.Windows.ResourceDictionary Warning: 9 : Resource not found`; It happens when I do Application.Current.Resources.MergedDictionari...

WPF List - ListItem Visibility

Greetings, I have a FlowDocument where List control is placed. Inside this list I have some ListItem. Is there any way to set some kind of Visibility for specific ListItem? I don't see a coressponding Property like Visibility for ListItem. When I set fontsize="0.1" then application hangs (it goes into infinite loop). ...

MAF (system.AddIn) plugin's UI overlaps any host side visual element

Hello, I'm having trouble with a WPF visual tree. I'd like the children of any container to be under any visual element that is above their container, like they should. Link to image displaying problem Both red zone and green zone are children of grey zone. <Grid Name="Grey"> <Grid Name="Red">...</Grid> <Grid Name="Green">......