Hello fox
I want ask a question about that code its simple xaml code as show as below.
<Window x:Class="WpfApplication15.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525" Background="Orange" FontStyl...
Hi there,
I currently develop an application providing the possibility to drag&drop items from one ListBox to an other. This is working perfectly while using a mouse.
However, when trying to do the same with a touch screen (producing genuine touch events) this will not work.
In my logs I see that the TouchDown and Move is actually det...
Hi guys,
I am using an opensource wpf TreeListView control. The control is a library project with a themes folder in it containing some xaml theme files. In my wpf project, I have got a reference to the control dll and I would like to know how to reference the dll themes in app.xaml. I tried doing something like this but it throws excep...
How to draw plus and minus signs in using data property in Path object.
This is my triangle path object.i need to change it to plus symbol.
<Path x:Name="trianglePath" Data="M 0 8 H 12 V 15 Z"/>
Please help me out with some examples.
Thanks In Advacne
Regards
KSR
...
WPF applications are, at its core, managed applications? Right? So, I have to choose between using managed C++ or managed C#. I experimented with managed C++ years ago. It seemed to be not quite be ready for primetime. I'm guessing Microsoft has put more effort into managed C# than managed C++. So, it seems like using managed C# is...
I'm looking for (online) resources to learn/lookup XAML constructs.
Can you recommend any good blogs, tutorials, references for XAML?
...
I want the Frame Control to automatically resize to fill the screen inside my TabItem. Is the following code it renders a very small frame. I would rather not set static heigh and width. Here is the XAML
<TabItem Header="Reports" Name="tReports" Height="50" BorderBrush="Transparent" HorizontalAlignment="Stretch" VerticalAlignment="St...
I have a Window which pop-ups another Window. I want the second Window to be able to return an object to the first Window when a button is pressed. How would I do this?
...
Before I actually ask the question, I need to explain my current situation.
I have a strongly typed (generated with VS2010) DataSet. Along with that, I have the corresponding typed DataTable and DataRow.
My problem happens when I commit a row using the DataGrid's built-in commands. It calls the BeginEdit(), CancelEdit() (only when I c...
Hello,
I am currently trying to combine two collections into one for binding to a combobox. I first started out with two static collections built within a class:
public partial class MainPage : UserControl
{
//create static observable collection
private ObservableCollection<string> items;
public ObservableCollection<strin...
What is the proper way of adding a '+' button tab at the end of all the tab items in the tab strip of a tab control.
It should work correctly with multiple tab header rows.
It should be at the end of all tab items
Tab cycling should work correctly (Alt+Tab) ie the + tab should be skipped.
I shouldn't have to modify the source collec...
I'd like to extend the functionality of the FlowDocument by creating my own derivatives of Span and Run.
Is this possible and has anyone found any examples?
...
I am self-hosting a WCF service in a WPF client. I want to show the data the service receives in the user interface. Every time some data is received the user interface should be updated.
The code in "App.xaml.cs" looks like
private ServiceHost _host = new ServiceHost(typeof(MyService));
private void Application_Startup(object...
Hi,
I need to show a popup to the user when he is dragging files or items onto my control. The popup basically informs him why dragging is disabled by giving him a message. I would like the popup to follow the mouse cursor whilst he is still in dragging mode.
OR is there a way to change the mouse cursor while dragging and displaying a t...
I am learning wpf mvvm and have been struggling with what I feel is probably simple but have not been able to resolve on my own.
What I want is to be able to select an item in a populated combobox and then populate another combobox based on that selection. I can't seem to get the second combobox loaded in response to a selection.
I'...
Almost all examples of DDD within the Alt .NET community are applied to web development; what I would like to see are some examples of DDD applied in scenarios where the client handles most of the business logic and the server is simply a web service for CRUD using DTOs [1].
I'm currently working on a product that has an anemic domain m...
I have a grid with two rows plus a grid splitter. I want the top row's height to be as small as possible by default (in this case, the height of the button) The bottom row should expand to take up the remaining space in the grid. I want the grid splitter there to allow the user to change the size as needed.
<Grid>
<Grid.RowDefinit...
Hi,
I want to open a popup when the focus is on a text box
Here is the code I wrote :
<Window x:Class="Testpopup.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<StackPanel>
<T...
Typically in the property setter of an object we may want to raise a PropertyChanged event such as,
public event PropertyChangedEventHandler PropertyChanged;
protected void Notify(string property)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(property));
...
I'm currently having some trouble with an MVVM WPF application. In the application, the ViewModel is associated as the DataContext for a View using a DataTemplate in a ResourceDictionary - this way neither object has an in-code reference to the other. My ViewModel has an unmanaged resource which needs to be released when my ViewModel is ...