toolkit

System.Exception {System.ArgumentException} Value does not fall within the expected range

此生再无相见时 提交于 2019-12-11 14:48:57
问题 I'm getting this exception whenever i try to access m list picker control in my app. + this {App_name.App} App_name.App + sender {App_name.App} object {App_name.App} - e {System.Windows.ApplicationUnhandledExceptionEventArgs} System.Windows.ApplicationUnhandledExceptionEventArgs + base {System.Windows.ApplicationUnhandledExceptionEventArgs} System.EventArgs {System.Windows.ApplicationUnhandledExceptionEventArgs} + ExceptionObject {System.ArgumentException: Value does not fall within the

Java Garbage Collection and Graphics dispose method

走远了吗. 提交于 2019-12-10 18:51:07
问题 I am creating a game (a Snake Clone) as a hobby. I was looking at the dispose method from the Graphics class in the Java API. When I comment out the dispose method, My animation works the same way just fine with or without it. In the Java API, the dispose method does this- releases system resources that the graphics context is using. Doesn't the Java garbage collection manage the memory of the program similar to what the dispose is doing? Should I keep the dispose method? The API was not much

How to get scaled instance of a bufferedImage

大城市里の小女人 提交于 2019-12-09 05:59:58
问题 I wanted to get scaled instance of a buffered image and I did: public void analyzePosition(BufferedImage img, int x, int y){ img = (BufferedImage) img.getScaledInstance(getWidth(), getHeight(), Image.SCALE_SMOOTH); .... } but I do get an exception: Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: sun.awt.image.ToolkitImage cannot be cast to java.awt.image.BufferedImage at ImagePanel.analyzePosition(ImagePanel.java:43) I wanted then to cast to ToolkitImage then use the

Tick marks for X-axis in WPF toolkit chart

给你一囗甜甜゛ 提交于 2019-12-08 06:11:46
问题 <Window x:Class="tradtest.chart" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:toolkit="http://schemas.microsoft.com/wpf/2008/toolkit" xmlns:charting="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit" Title="chart" Height="300" Width="500"> <Window.Resources> <Style x:Key="SimpleLineSeriesStyle" TargetType="charting:LineDataPoint"> <Setter

installing silverlight toolkit for windows phone

安稳与你 提交于 2019-12-08 03:13:33
问题 I just downloaded the silverlight toolbox of nov11 at http://silverlight.codeplex.com/releases/view/75888 in order to be able to use ListPicker in my windows phone 7 application. I installed it and then started visual studio 2010 for windows phone but when I try to use ListPicker, it seems like this is not available. what do I need to do in order to install the toolkit so that I can use its features? thx in advance 回答1: You will need to add a reference to Microsoft.Phone.Controls.Toolkit by

syntax error: identifier 'DXGI_RGBA in file dxgi1_2.h

浪子不回头ぞ 提交于 2019-12-08 01:20:05
问题 Trying to integrate the Directx toolkit into my game. I followed the steps here: https://github.com/Microsoft/DirectXTK/wiki/Adding-the-DirectX-Tool-Kit and everything went great. When trying to include one of the headers (SpriteFont.h) I get these errors: I've refactored the project to 8.1 to match my game, and rebuilt the imported project and it works great. It's when rebuilding my project that I get these error. (I've already made sure windows.h is being included before my directx headers.

Deferred binding failed GWT using uibinder

为君一笑 提交于 2019-12-07 23:14:27
Below are the total files used in project. It is giving these errors [ERROR] [cricketscore] - Deferred binding failed for 'test.client.UserDashboard.MyUiBinder'; expect subsequent failures and [ERROR] [cricketscore] - Unable to load module entry point class test.client.DashBoard (see associated exception for details). Please help me resolve the problem in it. Cricketscore.gwt.xml <?xml version="1.0" encoding="UTF-8"?> <!-- When updating your version of GWT, you should also update this DTD reference, so that your app can take advantage of the latest GWT module capabilities. --> <!DOCTYPE module

WPF Toolkit doesn't get displayed in the toolbox

偶尔善良 提交于 2019-12-07 23:12:24
问题 I installed the wpftoolkit.msi and added a reference to it, but it doesn't get dipslayed in the toolbox, is there anything else that needs to be done? I followed the instructions from the code plex site, I can access some of the controls from code, only a few, I added WPFToolkit as a reference, does any other reference need to be added for the chart controls and so that they can be accessed from the toolbox? EDIT: I added all dlls in the folder and still cannot access the chart control.

Extended WPF Toolkit RichTextBox display text vertically

こ雲淡風輕ζ 提交于 2019-12-07 16:06:59
问题 I'm trying to bind a rich content (RTF format) to a rich text box (of Extended WPF Toolkit) via its Text property like this <extToolkit:RichTextBox x:Name="rtbKIContent" Margin="8,8,8,8" IsEnabled="{Binding IsEditable}" Text="{Binding Content}"> <extToolkit:RichTextBox.TextFormatter> <extToolkit:RtfFormatter></extToolkit:RtfFormatter> </extToolkit:RichTextBox.TextFormatter> <extToolkit:RichTextBoxFormatBarManager.FormatBar> <extToolkit:RichTextBoxFormatBar /> </extToolkit

WPF toolkit charting : Customize datapoint label

旧巷老猫 提交于 2019-12-07 08:59:43
问题 I have create a simple LineSeries chart using WPF toolkit. By default, on mouse over a datapoint, it display a label with YAxis value. (if I put my mouse on the X=3,Y=45 datapoint, it will display a label with "45" inside) I want to change this default behavior to display both X and Y axis value. (if I put my mouse on the X=3,Y=45 datapoint, it will display a label with "3, 45" inside) If somebody have a suggestion, it could be great ! Thank you and best regards, PY 回答1: Here you can find the