Closing my UserControl?
Hi there, From my main XAML view I am loading one Window and once loaded I'm calling one UserControl under criteria.That's fine but I don't know how to close, at first my UserControl, and finally my...
View ArticleText box have two or more rows when having large string
HI,when I write large text on text box the text is exceeding and i see the last charcters of the string in the text box and it filled in two rows ,there is a way that if I have some large string to see...
View ArticleGrid as an Ancestorlevel?
Hello,I set a Grid and divide it in to several cells. One of these cells I use to store another grid with aditional division inte cells.If I want to count Ancestor Level of a control stored in lowest...
View ArticleXml Parser Exception
Hi: Can anyone suggest a solution? Everything else works and this code should work but I am having another parser problem with the following XML code:public static XElement DrawingTextXml(string...
View ArticleAdvanced Width Property of a Glyph
Hi: I am creating the xml for a user defined string. Everything works but I need to calculate the advanced widths for each character in the string. I know the font type, the indices, ect. but I need to...
View ArticleReport Functionality.
Hello,I need to generate report to print. please guide me what will be the best solution.
View ArticleAdding more than one button to ToolBar?
hi there,I want to place the following couple of button inside my ToolBar but I don't know how to proceed.xaml:<ToolBarTray DockPanel.Dock="Left" Margin="0,3,625,69"><ToolBar...
View ArticleURGENT: Copying a Canvas from one image to other (Cannot save an image with...
Hi all of you,My aim is once my user has selected one area of one JPG file, that piece is going to move into one container, e.g, a GroupBox.As you will see in the following image, left headlight of the...
View ArticleCreating a dependency property
Windows Presentation Foundation 4.5 Cookbook 2012 ISBN 978-1-84968-622-8Creating a dependency property, page 16 Ex: 1 public partial class SimpleControl : UserControl{ 2 public SimpleControl(){...
View ArticleWPF Toolkit Chart LineSeries with horizontal coloured areas
Hello,I am using WPF Toolkit Chart to create a LineSeries.Let's suppose the Y axis goes from 0 to 10. I would like to create an horizontal color area to highlight for example the area from 0 to 4,...
View ArticleBind table row and table set
I want to generate report using FlowDocument.Xaml:<Table CellSpacing="0" BorderBrush="Black" BorderThickness="0.02cm" ><Table.Columns> <TableColumn Width="0.5*" />...
View ArticleComposite styles
Hi all!I need to slightly edit an XAML file to add one little detail; I have a set of shapes, one of them being a simple box, defined as a style. I need to add a textblock to the style if possible to...
View ArticleI can't retrieve the ListBox selecteditem
Hi everybody,I'm not able to cath any ListBox selected item. XAML definition:<Popup x:Name="contextMenu" Opened="contextMenu_Opened" Closed="contextMenu_Closed"><Grid x:Name="GridMenu"...
View ArticleEditble DataGrid ComboBox column - can't get reference to the correct row in...
Hello. I have a DataGrid with a ComboBox DataTemplate column. The ComboBox is editable. The problem is that when I mouse-click into the editable portion of a ComboBox in a different row, the DataGrid's...
View ArticleHow to assign one style in runtime?
Hi ya there,This thread is PreviousThread related to.That's my general styles file: <Style x:Key="EnglishDatePicker" TargetType="{x:Type DatePicker}"> <Setter Property="Text"...
View ArticleCheck if password box was changed
Im using passwordBox and I want to check if user has type there anything,if yes change button status to enable. how can I check if user type anything in password. It behave differently from text box...
View ArticleHow can I call one page from another?
Hi there,I'm puzzled suppose the reason is I come from the Window Forms old-fashioned world.Well, my WPF application runs at first Main.XAML, it is a Window where I load later either windows or pages...
View ArticleBinding Info usage at run time
HiI have a grid view , which columns are mapped to some properties in the ViewModel. At run time , I have to read the information from the grid. For that I am trying to do the following :1. Read the...
View ArticleImage manipulations
Hi,I have the following problem:Image1 is a bigger image (png), and contains 4 sections, that I would like to turn into buttons.Image2 is one such a section, and is also a png image, of the same...
View ArticleFindAncestor
Hello,I do not understand when to use FindAncestor to find our way to properties within datacontext. /Muris
View Article