What is M and L in GeometryDrawing?
Hello, What is the meaning of M and L in this code ? <GeometryDrawing x:Name=”Front” Brush=”Red” Geometry=”M0,260 L0,600 L110,670 L110,500 L190,550 L190,710 L300,775 L300,430 L150,175”/> Thanks in advance :) ...
Hello, What is the meaning of M and L in this code ? <GeometryDrawing x:Name=”Front” Brush=”Red” Geometry=”M0,260 L0,600 L110,670 L110,500 L190,550 L190,710 L300,775 L300,430 L150,175”/> Thanks in advance :) ...
For example, if I have a border with a style like this: <Border> <Border.Background> <SolidColorBrush /> </Border.Background> <Border.Style> <Style TargetType="Border"> ...
I want to set the BorderThickness of a Border of a UserControl using 4 TextBoxes, but I can't get it to work. XAML code demonstrating the problem (only this code in combination with the converter is needed): <Window x:Class="BorderThicknessBindingTest.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation...
I would appreciate some advice on best practices with my first WPF app (a touchscreen based app with large buttons, custom controls - that will generally run on tablet PCs). One thing I am curious about is how one deals with different aspect ratios: The WPF app I am building is a touchscreen-based one, and thus needs to scale from reso...
Hello, I am trying to programmatically add a column series to a wpf toolkit chart. My xaml is an empty chart. The code results in an unhandled exception, Object reference not set to an instance of an object. Any clues to why this does not work? <charting:Chart Name="MyChart"> my code behind is List<KeyValuePair<int,int>> testList = n...
e.g. TextBox has a Text property, but I cannot bind to it, if I am going to bind, I have to bind to the TextProperty dependency property. e.g. textbox.Text = new Binding("mypath"); does not work and I need textbox.SetBinding(TextBoxBase.TextProperty, "mypath") BUT, and this is a huge but, I don't know that it is property "textbox....
Consider the following simple WPF form, we will try to animate border1's Height: This is the XAML for border1: <Border Margin="3" BorderBrush="Black" BorderThickness="1" Name="border1"> <Border.Style> <Style> <Setter Property="Control.Height" Value="50" /> <Style.Triggers> <DataTrig...
Hello. I am developing an application in NET 3.5 C# and WPF and from the beginning it took AGES to run at most machines.. Only on my core i7 machine runs within 2-3 seconds... At most pcs tested it takes about 30 seconds to load!!! even from the start when it contained only a button and no code just to load the application... Can i do so...
I'm porting my application from WPF to Silverlight. The biggest problem is that my application uses RSA encryption and Deflate compression, and both classes are not available in Silverlight. I know that you can view the sourcecode of any .NET class using reflection, so would it be possible to just 'decompile' the RSACryptoService class,...
I need an embedded WebBrowser control in my application, and am having problems displaying WPF content on top of it. The application will sometimes show popups for editing data or to display errors, and the WebBrowser is getting drawn on top of the popups because it is a WinForms control. The alternative I looked at here uses a Popup co...
I want to show a tool tip for the element style (the non-editing mode) of a DataGridComboBoxColumn. I have not been able to figure out a good way of doing this. In the example below I can either show a tooltip, or allow edits to the cell by changing the IsHitTestVisible property to true or false. I have been unable to both show the to...
I want to initiate a bound command, but I don't want to use a Button on my UserControl. In effect the UserControl is itself a Button. When it is clicked anywhere on its surface I want to initiate a bound command. Is there a way to give a UserControl a command? In a side note: one command for one control and only a few certain out-of-th...
Hello the screenshot explains it: Why are do the Items become so tall? I do no positioning myself: <ListBox Margin="6" ItemsSource="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}, Path=Segments}"> </ListBox> No ItemTemplate either I'm relying on default ToString() behaviour. ...
I know with Silverlight you can control the width and height of the Silverlight section within the web page. However, it seems like from what I can tell when you are using XBAP you give the entire browser page area over to WPF. Is there a way to have an HTML and have XBAP be embedded within a rectangle of that HTML page? Or is this on...
My user can Select multiple Orders in a OrderDataGrid from a selected customer. When the user selected the OrderId + Ordername in the DataGrid all Order details must be filled in the TextBoxes righthand of the Order datagrid. The problem I have is how can I bind always to the first element of the selected orders? At the moment the Text...
Hi I'm new to MVVM and need a bit of help. My application consists of a number of different windows which display controls allowing the user to edit the data in the Business layer. At the moment, each time the user opens a new instance of one of these windows, a ViewModel structure - classes and collections mirroring the Business laye...
I've written my first WPF 4.0 application. It is a page-based app (not an XBAP app). The user searches for some items on the first page, and selects something found to go to the second page. On the second page users will enter more data, save it, and returned to the first page to start the process over again. The majority of my users...
Greetings, I am relatively new to WPF and have an issue relating to validation with DataGrid control. I have read this article (http://msdn.microsoft.com/en-us/magazine/ff714593.aspx) which covers three different ways to validate, but none of them seem to address how to prevent setting a value or calling a undo/redo command before all v...
Hi, Any clue on why the code bellow does not work ? I'm trying to set the background color of a tab item when selected to red. <Style x:Key="TabItemStyle" TargetType="{x:Type TabItem}"> <Setter Property="Background" Value="White"/> <Style.Triggers> <Trigger Property="IsSelected" Value="True"> ...
I'm trying to come up with simple target board, basically a circle with two perpendicular lines in xaml. I have create an eclipse but I'm not sure how to draw the lines. ...