151 Topics
|
|
Hi All, I have got one scenario here in which I need to bind a DataGrid to a collection (array, ObservableCollection etc.). My Collection name is "WarningList" and the code is as follows :- **ViewModel :-** WarningList = {({result.WarningMsgCode, result.WarningColor})} **xaml :-** <data:DataGrid x:Name="gridSystemWarnings" Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="3" Grid.RowSpan="2" DataContext="{Binding}" IsReadOnly="True" … |
|
Hi, I want to create a dependency property for both Command and CommandParameter so that I can use these in controls that don't support Command and CommandParameter like textblock etc. I have written and taken help from someone to create DP(dependency property) for Command and its working fine but for … |
|
Hi All, I started developing an application in WPF but I think the generic syntax for Relay Command and Delegate Command cannot be found very easily over the web and hence alogwith asking this question, I intend to start a thread for both Relay Command and Delegate Command. So, I … |
|
Hello everyone, I have to create a wpf application where i have to create 2 windows(one for toolbox and one for work area) similar to visual studio appearance, in toolbox window i will have controls like button,textblock etc, when i do drag and drop from toolbox to work area on … |
|
Hello All, I am populating my frame from different pages and showing the output as a grid. Following is my xaml code :- <Frame x:Name="mainFrame" Grid.Row="1" JournalOwnership="UsesParentJournal" /> and xaml.cs :- mainFrame.Source = New Uri("Views/ProductsPage.xaml", UriKind.Relative); But I want to change the selected/unselected (focused/non-focused) row colors in this frame and … |
|
Hello gayz, i have a written a screen saver App in C# & WPF, everything is done, the only thing is to exit the screen saver when the mouse move event get fired. if i write: private void Window_MouseMove(object sender, MouseEventargs e) { this.Close(); } the screen saver doesn't starts … |
|
Hi all, Iam using [B]vb.net and WPF[/B] In a wpf window im showing a datagrid in the load event while in the load event itself,i need to count grand total amount from a single datagrid column and add it to a textbox in same page . My page looks like … |
|
i am having combobox in the each cells of the datagrid when i select others from the combobox i want to add textbox in the same cell of that datagrid if anyone knows how to do it give some code sample |
|
hi i want the selecte columns count in datagrid for ex if i select the first column than i want that first columns count i tried it datagrid selection change event but i can't able to get the particular column count. if anyone knows how to do it give some … |
|
Hi All, I am working on a page that creates a dynamic MySql query with the selected fields at the run time and for this I want to take a combobox with few checkboxes so that based on their selection I can fetch the query result and populate them into … |
|
hi in my application i want the user to select only time from the datepicker i don't know how to display only time in datetime picker if any one have any idea give some code sample |
|
Hey guys, I am desperated right now. Im my application i want to export some data from an entityset to excel. So far so good. But i want to exclude some properties. So i thought creating a custom attribute for those properties is might a good idea to make things … |
|
Hi All, I am creating a dynamic GroupBox through C# and want to change only the header font and not all the fonts in that. GroupBox myGroupBox = new GroupBox(); myGroupBox.Header = mychk.Content.ToString(); myGroupBox.Content = myStack; Here, *myGroupBox.FontWeight* changes all the contents inside the *myGroupBox* but how to change only … |
|
hi i am validating cells in the datagrid in datagrid celleditending event. if the validation fails message is diplayed in the message box when i click ok in the message box the focus move to the previous row .i want the focus in the current validated cell i try this … |
|
Hello Community, I was wondering if there is a way to get a grid from another window to display in another window by the way i'm using fluidkit slide transition. Please Help... |
|
Dear All, I am using Visual Studio 2012 and created a WPF application. I just want to know that how to include pre-requisites like set up files of .Net framework etc. in my setup project so that if anyone installing my setup has not got the framework installed on his/her … |
|
i am having combobox inside each cell of an datagrid.the combobox is in cellediting template and also having textblock which is in datatemplate.what i want now is when i select the item from the combobox the selected item has to be pass to the textblock in the same cell.i tried … |
|
Hello All, I want to add a functionality to my WPF usercontrol in the Head section like the image below :- ![f4418c3ccc7f9a4d7f30aee9903987c6](/attachments/large/3/f4418c3ccc7f9a4d7f30aee9903987c6.JPG "f4418c3ccc7f9a4d7f30aee9903987c6") Could someone please suggest some approach on how to achieve the same ? |
|
I am using the BusyIndicator from the WPF Toolkit in my WPF application. I am trying to access the label (artistLabel) from the C# code behind. Unfortunately I cannot access the label if it is inside the busy indicator. I am sure that it's some kind of binding or scope … |
|
I'm trying to place a texture in a 3d object, using Visual Basic and WPF, but I'm not being able to do it. If instead of an image I render a blue square, by replacing the line mymodel3dgroup.Children.Add(New GeometryModel3D(mymesh, df)) for mymodel3dgroup.Children.Add(New GeometryModel3D(mymesh, New DiffuseMaterial(Brushes.Blue))) then I get a blue … |
|
I've created my first WPF form, and the ImageBrush XAML is giving me trouble. The XAML I have is: <Grid.BackGround> <ImageBrush ImageSource="ImageFile.png" TileMode="Tile" /> </Grid.Background> It displays the correct image - but it's stretched instead of tiled! The image is 127x127; the window is 660x808; a single instance of the … |
|
Hey Folks I've created a template and storyboard that applies to all buttons in my application. When you click the button, it drops to the right and down a bit, then snaps back up. The problem is, when I handle the click in code, it executes before (or during?) the … |
|
Hello ! I've been building a simple designer which accepts source code in c and parses c keywords to display appropriate symbols. I've finished designing all the shapes. I've got a textbox to accept input. I would like to parse the entered c code. How would I parse a C … |
|
**Window1.xaml** <Canvas x:Name="mycanvas"> <Button Width="100" Height="50" Canvas.Left="350" Canvas.Top="50" Click="Button_Click">Click to Display</Button> <ContentControl Width="130" Height="130" Canvas.Top="150" Canvas.Left="470" Name="cc1" Template="{StaticResource DesignerItemTemplate}"> <Grid x:Name="g1"> <Ellipse Fill="LightGray" Stroke="Black" Stretch="Fill" Name="myElli" IsHitTestVisible="False"/> <TextBlock VerticalAlignment="Center" TextAlignment="Center" Height="61.96" Margin="10,35.02,10,33.02">Simple Ellipse</TextBlock> </Grid> </ContentControl> <ContentControl Width="130" Height="130" Canvas.Top="150" Canvas.Left="150" Template="{StaticResource DesignerItemTemplate}"> <Grid> <Path Fill="LightGray" Stroke="Black" Name="myPath" Data="M 0,5 5,0 … |
|
Hey folks I've finally figured out how in WPF to template all my buttons so they all behave they way I want. Basically, I want all my buttons, when clicked, to drop down and to the right a few pixels then pop back up. The problem is, I can't set … |
|
|
I have an application i am currently working on which uses Aero glass in some areas but the areas that don't have aero are shown in black. I am trying to figure out why that is. **Code:** using System.Runtime.InteropServices; using System.Windows.Interop; using System.Windows.Media; using System.Windows; using System; namespace Test { … |
I want to know how to change paper size to “Roll Paper 80 x 297 mm”. I am trying to print my report in vs 2010 WPF appliation. I tried setting paper size using "System.Drawing.Printing.PageSettings" but its not working. Please let me know if there is any alternate solution to … |
|
Hello Community, I was wondering if there is a way to make a spark effect the follows a path using WPF. Please Help... |
|
Hi, I'm new in wpf applications. I'm trying to transform the overlay image that is on the background image by rotating, scaling and skewing. After do transforms in wpf UI, I'm trying to generate that image with its modifications through image magick. Seperatly only the scaling or rotation or skewing, … |
|
Hi everyone, Currently for a university project I am building a server that can send notifications to a mobile device. Part of the project involves building a front end where I can configure everything for the server - updates to send, rules and so on. On the front end I … |
The End.