151 Topics

Member Avatar for
Member Avatar for arunkumars

Hi, I would like to get few tutorials on rendering and vector data in WPF. The requirement I have right now is to get the vector data (path) of a text that has been rendered on a canvas. I can however get the vector data of the text using the …

0
110
Member Avatar for sachintha81

I have a WPF C# program where I attempt to delete certain characters from a text box at TextChanged event. Say, for instance, the dollar sign. Here is the code I use. [CODE] private void txtData_TextChanged(object sender, TextChangedEventArgs e) { string data = txtData.Text; foreach( char c in txtData.Text.ToCharArray() ) …

Member Avatar for Momerath
0
1K
Member Avatar for game4tress

I need to save a video as an image in silverlight, for my new webpage functionality, at [url]http://www.game4tress.com/ecardsender.aspx[/url]. Now, this would be easy in WPF, but seems that silverlight can't access the RenderTargetBitmap and BitmapEncoder. I was able to discover that RenderTargetBitmap can be replaced with WriteableBitmap, but i can't …

0
127
Member Avatar for exicar

Hi, I´ve got following code for a office 2010 like tabcontrol in .NET 4.0 [CODE]<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <ControlTemplate x:Key="OfficeTabControl" TargetType="{x:Type TabControl}"> <ControlTemplate.Resources> <Style TargetType="{x:Type TabItem}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type TabItem}"> <Grid SnapsToDevicePixels="True"> <VisualStateManager.VisualStateGroups> <VisualStateGroup Name="CommonStates"> <VisualState Name="MouseOver"> <Storyboard> <DoubleAnimation Storyboard.TargetName="hoverShape" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:.1"/> </Storyboard> </VisualState> <VisualState Name="Normal"> <Storyboard> <DoubleAnimation …

Member Avatar for nmaillet
0
344
Member Avatar for strmstn

Hello, I have been struggling with this for hours now. Is there any way to completely remove the icon that is displayed in the upper left corner of a window in WPF, without setting the window style to ToolWindow? I have tried loading user32 and setting various WinAPI-styles with no …

Member Avatar for k.d.m
0
1K
Member Avatar for stbuchok

Does anyone have a good tutorial on how to capture video and images from a webcam in WPF. All the ones I've come across give code but little explanation as to what they are doing. Something that is step by step would be nice. The funny thing is that in …

0
136
Member Avatar for apals

0 down vote favorite I am a programmer for winforms and asp.net. A new-comer to WPF application development. I wish to thank in advance for any help rendered to my query, I am working on a application for Banking. My job profile is to develop reusable usercontrols for the application. …

Member Avatar for nmaillet
0
1K
Member Avatar for CrazyProgrammer

My question is a simple one how do I bind a passwordBox defined in code ie: [CODE] public PasswordBox Password { get { return m_pwd; } } [/CODE] to a contentpresenter in wpf considering that the datacontext of the usercontrol is already set to the .cs file that contains the …

Member Avatar for CrazyProgrammer
0
214
Member Avatar for CrazyProgrammer

Hi, Could someone tell me how to bind a view to viewmodel, I cant seem to get it to work, could anybody give me a template. I have usercontrol with a button and a textbox, and bind it to the corresponding functions in a viewmodel, the view model is in …

Member Avatar for abelLazm
0
188
Member Avatar for CrazyProgrammer

Hi, just got a question involving the use of MVVM. [BACKGROUND DETAILS] I'm using C#, WPF and MVVM Im using the templates provide in this [URL="http://msdn.microsoft.com/en-us/magazine/dd419663.aspx#id0090102"]MVVM article[/URL] [MY QUESTION] I have created a new View, that displays a textbox with button and on a pressing the button get the value …

Member Avatar for CrazyProgrammer
0
220
Member Avatar for CrazyProgrammer

Hi, I was wandering if someone could give me some idea of how i would design my application in regards to what to put in the exe and what to put into the dll. At the moment the exe is just getting bigger, and I have never built such as …

Member Avatar for CrazyProgrammer
0
149
Member Avatar for guilt99

can i do that? i was looking to integrate bing maps into my wpf desktop application, but it seems like microsoft doesnt provide the API for wpf... is there any way to get around this?

Member Avatar for ddanbe
0
172
Member Avatar for guilt99

Hi, i am trying to get create a line chart with using WPF, the chart will show a trend of a data on a time range, so the chart will show the value of several series of data on months interval, this is what im trying to achieve: [ATTACH]20732[/ATTACH] i …

Member Avatar for ddanbe
0
200
Member Avatar for kimbokasteniv

All I am really trying to do is create a textBox where non-contiguous segments of text can be highlighted at any given time. From the experimenting I have done, it would appear that the System.Windows.Controls.RichTextBox is a good fit for this when customized slightly. Extending RichTextBox and getting multiple pieces …

Member Avatar for kimbokasteniv
0
259
Member Avatar for ibdatx

Hi, Can anyone get the translation of this xaml code to c# code? In order words, I am trying to set listbox items to be displayed in the textblock encapsulated by stackpanel, datatemplate and within listbox.itemtemplate. I am trying to do this from the back end and not using databinding. …

0
92
Member Avatar for dakota5150

I have a label and text block on a WPF window and I'm trying to update those from a 2nd cs code file. I've tried the below code but the label is not getting updated...any help is greatly appreciated! [CODE] MainWindow main = new MainWindow(); main.statusLabel.Content = "Blah...blah"; main.statusTextBlock.Text = …

0
71
Member Avatar for ibdatx

Hi, I have a window (Window1) with a ListBox (list1) bound to an xml file and a button that calls another page (Page1). Page1 implements methods to append to or alter the xml file however the control list1 is not recognized on Page1. So far I have referenced Window1 in …

0
92
Member Avatar for ibdatx

Hi I have two windows (Window1 and Window2) and want to set Window1 as the owner of Window2. Furthermore I want the controls on Window1 to be inherited by Window2. For instance I have a listbox list1 on Window1 and I want list1 to be in context even in Window2. …

Member Avatar for ibdatx
0
161
Member Avatar for drake10k

Hi, I've started building this wpf app in C# and XAML, but halfway through the coding I realized that it should have been a browser application... :( is there any way to convert it now? I've tried creating a new WPF browser app and then import the xaml and cs …

Member Avatar for kvprajapati
0
420
Member Avatar for ibdatx

Hi all, I have a textblock that is bound to an xml document. This displays the innertext of an xml-node element and the width of the textblock is fixed at "auto". The issue is that of the display as the innertext may exceed the width of the textblock and therefore …

0
91
Member Avatar for ibdatx

Hi, I have a question regarding navigating to a listbox item in C#. I have written code which populates a listbox from an xml file in xaml (thus bound to it). However I want to navigate to the selected item in the listbox using code in c#. I can navigate …

Member Avatar for ibdatx
0
276
Member Avatar for satiss7pwr

i have one window application developed in VS 2005 which is running successfully on client side,My question is that now i want to convert this window application in WPF browser based application, so what should i keep in mind to convert this application to wpf applicaton, One more thing that …

Member Avatar for satiss7pwr
0
931
Member Avatar for rodce

I'm having a problem solving part of a C# question from a beginning course. If anyone can help, I would appreciate it. The problem and code follows: When the user clicks the Quit button, display a message box that says "I'm going home." Then when the user clicks OK on …

Member Avatar for Teme64
0
228
Member Avatar for wade2462

I want to be able to have a Textblock set to a certain width and height so it can contain two lines of 36pt font. I have accomplished this with word wrap, but it can still overflow. Is there anyway to make the font size shrink when there is an …

0
106
Member Avatar for white feather

[CODE] <Window.Resources> ... ... <DataTemplate DataType="{x:Type my:Section}"> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding Path=Name}"/> <TextBlock Text=" "/> <TextBlock Text="{Binding Path=Instructor}"/> <TextBlock Text=" "/> <TextBlock Text="{Binding Path=Cours}"/> </StackPanel> </DataTemplate> <DataTemplate DataType="{x:Type my:Instructor}" x:Key="InstructorDataTemp"> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding Path=FirstName}"/> <TextBlock Text=" "/> <TextBlock Text="{Binding Path=LastName}"/> </StackPanel> </DataTemplate> <DataTemplate DataType="{x:Type my:Cours}" x:Key="CourseDataTemp"> <StackPanel Orientation="Horizontal"> <TextBlock …

Member Avatar for white feather
0
171
Member Avatar for Nirvin M

I am developing a electrical application. I need to present the user with controls like resistor, capacitor etc. How can I create such controls in VB.NET? Can I use GDI or WPF for this? If possible then how?

0
86
Member Avatar for Jarrhed

I'm having a whole lot of difficulty attempting to add data to a multi-column ListView Here's the code for the ListView [CODE]ListView Height="263" Margin="12,29,12,0" Name="Tasks_ListView" VerticalAlignment="Top" ItemsSource="{Binding Source=}"> <ListView.View> <GridView> <GridViewColumn Width="91" DisplayMemberBinding="{Binding CourseName}" Header="Class Name" /> <GridViewColumn Width="275" Header="Assignment Name" DisplayMemberBinding="{Binding AssignmentName}"/> <GridViewColumn Width="110" Header="Due Date" DisplayMemberBinding="{Binding Path=Due_Date}"/> <GridViewColumn …

Member Avatar for Mitja Bonca
0
4K
Member Avatar for ibdatx

Hi, I have a WPF program written in C# that updates an Xml file from a textbox when a submit button is clicked. The code works as I can tell that the xml file is updated after the execution of the program, however I would like the update in real …

0
75
Member Avatar for dotnextnewb

I have created a UserControl Popup window and called that xaml file into another file. Imported the namespace. When I am trying to build this project an error at this below given code: [code=xaml] <Popup x:Name="POP" IsOpen="False" PlacementTarget="{Binding}" Placement="Center" AllowsTransparency="True"> <a:PopUpWindow x:Name="pp" /> </Popup> [/code] Error at [code=xaml] <a:PopUpWindow x:Name="pp" …

Member Avatar for alc6379
0
156
Member Avatar for dotnextnewb

Hello, Can anyone please help me with the Image Reflection. I want to put use some or group of images/icons in WPF App. I want their reflection as well. I am using Border opasitymask for each image but I think that is not the right way to code. I want …

0
75

The End.