First I want to apologize for the lack of experience in English.
I am Brazilian and I'm using google translator to send this question.
I have a WPF project where I use a dll as resource dictionary and need to import into another dll then then use in my project.
But when I try to import the first dictionary, I encounter the error
"An error occorred while finding the resource dictionary".
've Researched everything I imagined trying to solve.
BuildAction the ResourceDictionary of this dll as the first page. (already tried as resource)
I am trying to convert jpg image to vector image in xaml file but the image gets blurred. Tool I used was Microsoft Expression Design. Tried with online conversion tool as well but result was same. Kindly suggest how a good quality vector image can be converted and plugged it in to silver light project xaml file.
I am new to WPF and I have a question about dynamic tab generation with tab control.
I would like to build template pages that would be called into a new tab of a tab control and bind its content to DB. For instance, I want to load an invoice from a list. It creates a tab, fills it with the invoice display page (frame?) and populates it with the info. If I go back to my list and load another invoice, it loads a second instance of my invoice display page into a new tab and populates it with the new invoice.
Is dynamic tab generation with the WPF tab control + frames the right way to go?
Thanks for answering. I have found the frame control to be cited as the means to load pages within another. Should I understand that this control is not required to load a specific xaml dynamically within the tab control?
is it true that MS stopped developing Silverlight? what is the last version of Silverlight was release by MS ?
i like to know if some one discuss what is the reason for which MS stopped development of Silverlight?
I'm not aware of performance issues - but it really depends what you're trying to do. The big drawback with Silverlight is that it relies on a plugin - and this plugin isn't available on platforms like iOS or even the WinRT. This means you can't target it for use with applications that run on these platforms.
I bining data to datagrid using wpf user control i don't know how to set pagging in datagrid.i saw many sites for datagrid pagging but controls are available but i need usercontrol in datagrid with pagging also same user control like asp.net gridview pagging.
Do you actually need all the direction detail on the binding, I would think the code behind is the datacontext for the UC and a simple binding to the property should suffice. Obviously I have not tried this
Never underestimate the power of human stupidity
Silverlight/C# project, I added an image object with a default image, the following code was created
How can I change the image when a button is clicked?
I tried this
image1.Source = new BitmapImage(new Uri("http://tpsa11/images/shi.bmp", UriKind.RelativeOrAbsolute));
but does not seem to work
I'm working on a WPF app. The DAL is behind an MVC 4 WebAPI hitting SQL.
I have a one-to-many collection of Addresses & phones. The Address object contains a list of Phone objects. Each address can contain one or many phones.
If I create the phone list using List<phoneentity> then the UI doesn't see new phones when added. If I create the list using ObservableCollection<phoneentity> then when I return the collection from the DAL the phones list is null. The list of phones doesn't serialize coming back from through the API.
What's wrong here? What's the right way to do this?
I would try to add the serialize attribute to the data-model you mentioned. No sense trying to resolve the WPF part until the data-model part is working from your API.
Then I would create a view-model class to separate the data-model class from the WPF window. Add the INotifyProperty pattern to the view-model. And then in xaml, make sure to reference the name of the public properties in your view-model for the collections; like your OC.
publicpartialclass MainWindow : Window
System.Windows.Forms.PropertyGrid grid = new System.Windows.Forms.PropertyGrid();
grid.SelectedObject = this; // Display the entire MainWindow's properties in the PropertyGrid
grid.Width = 200;
grid.Height = 100;
System.Windows.Forms.Integration.WindowsFormsHost host = new System.Windows.Forms.Integration.WindowsFormsHost();
host.Child = grid;
StackPanel panel = new StackPanel();
obj.ToolTip = panel;
Don't forget to reference to System.Sindows.Forms and System.Windows.Forms.Inegration DLL-files.
In the XAML code, notice I use a Button to be the host of the ToolTip. Any recommendation for a better object to host the ToolTip?
I then create the WindowsFormsHost object to host the PropertyGrid. Finally storing the WindowsFormsHost in a StackPanel which I assign to the Button's ToolTip property.
I was not able to assign the WindowsFormsHost to the Button's ToolTip property. obj.ToolTip = host; // Will Fail
That failed and throwed an ArgumentException when I hovered the mouse curser over the button. With a StackPanel it didn't crash.
When hovering the mouse curser over the button the result is just a white box and the PropertyGrid is not visible
Iam trying to configure a service for access over both https and http from a silverlight 4 application. I am able to access the service over https but not over http. I have made some research over the net but can't seem to get the configuration right.
Below is my current settings in the my web.config file.
What do i have mis-configured above that is making the calls to the service fail on http.
I cannot access the service via http but it works fine over https. And i have a requirement to support both https and http
Please help on the approach on how will I be able to create an WPF application with requirements below:
- The tool should allow the user to open an image file and draw rectangular areas on top of it that correspond to clickable portions of the image.
- Once the rectangular areas are already placed on top of image, the app will capture the Left, Top positions and Height and Width of rectangular areas.
Last Visit: 31-Dec-99 19:00 Last Update: 19-Jan-18 16:06