I have a combobox that uses a custom itemrenderer to display an image. when scrolling up and down the list the images randomly go out of alignment. How do I stop this?
I would like to control which methods appear when a user uses tab-completion on a custom object in ipython - in particular, I want to hide functions that I have deprecated. I still want these methods to be callable, but I don't want users to see them and start using them if they are inspecting the object. Is this something that is possible?
I am currently learning to create custom controls in WPF. I successfully created a simple custom control using a Label and a Text Box. I was able to allow setting the Label text by DependencyProperty.
Now I am creating a user control that has a ComboBox. I need to allow adding items to this ComboBox from outside the control.
To achieve this, I tried exposing a DependencyProperty of type ItemsCollection and it will allows access to the ComboBox's Items property (the DP in my control sample is named 'CbItems'). But I get errors because Items property of Combobox is ReadOnly.
Control XAML
<UserControl x:Class="MyWpfApp.Controls.MyControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Height="Auto" Width="Auto">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Label Grid.Column="0" Content="{Binding FieldLabel}"></Label>
<ComboBox Name="cmb" Grid.Column="1" Width="150"></ComboBox>
</Grid>
</UserControl>
MainWindow XAML
<Window x:Class="MyWpfApp.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ctl="clr-namespace:MyWpfApp.Controls"
Title="Window1" Height="300" Width="300">
<Grid>
<ctl:MyControl>
<ctl:MyControl.CbItems>
<ComboBoxItem>Hello</ComboBoxItem>
<ComboBoxItem>World</ComboBoxItem>
<ComboBoxItem>Hi</ComboBoxItem>
</ctl:LobCombox.CbItems>
</ctl:LobCombox>
</Grid>
</Window>
I would like to know what the correct way is to achieve this functionality. I believe the answer to this might also help with other controls like GridView etc
Many Thanks
Hi,I am developing my custom EditField and i want to know how to create spacing in EditField
I determined the width of EditField using
width=this.getFont().getAdvance("000");
Since i require the entry of 3 digits,but i require some spacing in the front and back of my editfield and how to get spacing.Is there any option to do this?
Or else i have to develop the editField using Manager.
Regards
Rakesh Shankar.P
Our server returns a custom 'X-Execution-Time' HTTP response header that returns in miliseconds the time between the server getting a request and our code returning a page, ie how long our code takes to run. I'm using JMeter to do some testing & I'd like to be able to report on this number of over time. I've setup this regular expression extractor: X-Execution-Time:\s(\d+) but I don't know how to get JMeter to report on this number per request so i can get a trend over time
I have a custom script step in my build process that zips the executable. However this is executing before the executable is signed which is pretty useless.
Is there a way to zip the build output after the code is signed, within the Xcode build process. I can certainly do it externally if i need to, but I'd like to make it part of my Xcode build script.
Hi,
I have to create a plugin in Delphi Prism for Application that is already in Delphi.
I have read all about Hydra 3.0 in www.remobjects.com and have some queries.
Can you please give me an example how to create custom Interfaces for communication between Delphi Host and .Net Plugin.(either in C# or Delphi Prism)
what is the role of ModuleController in Hydra plugin and how it works there?
Role of Manager Component?
Many Thanks in Advance.
Which one is better from performance view user control or custom control?
Right now I am using user control and In a specific scenario, I am creating around 200(approx.) different instances of this control but it is bit slow while loading and I need to wait atlest 20-30 second to complete the operation. What should I do to increase the performance?
Hello,
Is there a way to make ChangePassword control work without Membership provider? Like the same way Login control works through an Authenticate event, could I make this component to use my password changing function and then showing success view without me writing custom provider?
Thanks,
Eugene.
I have a complex project using SilverLight Toolkit's ListBoxDragDropTarget for drag-drop operations and it is maxing CPU. I tried to reproduce the issue in a small sample project, but then it works fine. The problem persists when I remove our custom styles and all other controls from the page, but the page is hosted in another page's ScrollView.
"EnableRedrawRegions" shows that the screen gets redrawn on every frame. My question is this: How can I track down the cause of this constant redrawing?
I'm looking to create a custom date picker with code examples from several sources.
Is the code to display/hide an ASP.NET control when a user clicks a button usually done with JavaScript or ASP.NET code?
Please provide a simple example. (If ASP.NET, VB example preferred over C#)
I have a custom UIControl that passes UIControlEventValueChanged events back to my ViewController. I also need to animate it (basic resizing) in certain circumstances, but UIControl seems to have no implementation of beginAnimations or commitAnimations. Do I have to encase it in a UIView? Any better solution? Thanks.
Hello,
Whenever I try to create a custom window using NSBorderlessWindowMask and set an NSView (for example an NSImageView) as its contentView, I get a 1px gray border around the NSView and I don't seem to be able to get rid of it.
I have followed several approaches including Apple's RoundTransparentWindow sample code as well as several suggestions on StackOverflow.
I suspect the gray border is either coming from the window itself or the NSView.
Have any of you experienced this problem or do you have a possible solution?
Thanks
I am storing a JSON string in the database that represents a set of properties. In the code behind, I export it and use it for some custom logic. Essentially, I am using it only as a storage mechanism. I understand XML is better suited for this but I read that JSON is faster and preferred.
Is it a good practice to use JSON if the intention is not to use the string on the client side?
Hi,
I have a WPFToolkit Datagrid inside my user control. I am creating my user contrrol in mvvm pattern. How can I implement paging in datagrid?
Is there any default paging mechanism or Do we have to go with custom paging ?
I am trying to squeeze as much performance as i can from a custom HttpHandler that serves Xml content.
I' m wondering which is better for performance. Using the XmlTextWriter class or ad-hoc StringBuilder operations like:
StringBuilder sb = new StringBuilder("<?xml version="1.0" encoding="UTF-8" ?>");
sb.AppendFormat("<element>{0}</element>", SOMEVALUE);
Does anyone have first hand experience?
I had some difficulties with bindng data to custom controll's value made by someone else so i used "Loaded" event to assign control's value during, but i've noticed that this event is fired up twice.
How can i find out what's firing that event? (VS2008) Or mayby any solution would be expected :)
Hello everyone,
I am writing a piece of software in C++ RAD studio 2010 and got a question about TreeView.
Is it possible to use multicolor text in a TTreeView component? I could not find a easy way but to implement custom drawing which seems to be weird nowadays. Are there any straight-forward ways or maybe additional components that can do it for me?
Greetings,
I have a custom validation in my exemplary Movie model:
class Movie < ActiveRecord::Base
validate :it, :on => :create
private
def it
self.errors.add 'foo', 'bar'
end
end
This works on movie creation but also on updating an existing movie. :on => :update will also work for both. Might that be a bug or am I missing something?
Best regards
Tobias
Hi everyone!
My first question on stackoverflow!
I'm using a UISlider in my app but I'd like to use a custom "look-and-feel" for it. I have changed the thumb to my own image but is there a way to change the bar also? I have a bar image I would like to use but can't see how to do this.
I have found how to change the max and min image but not the bar itself.
Thanks
Oliver
I use the classpath attribute in custom Ant tasks to tell Ant where to find the external task jar, but how do I do the same for built-in tasks?
In my case I'd like to make sure ant uses my copy of jsch.jar for the scp task, and not one that my already be installed on the system. Is there any way I can <scp> while guaranteeing it's using my jsch.jar?
Hi All,
I need to change the default blue color selection of table view to some custom color. Is there any way to do that. Help me
Thanks in Advance
Shibin
All,
How can we debug a Eclipse plug-in based on GEF? Currently, I have a Activator class and custom editor from Example . Yet I am not able to find any output for the plugin. I tried using the "Launch Eclipse in Debug Mode" and setting a breakpoint in the Activator constructor method, but do not find any debugging activities taking place.
Can anyone please guide on how to go about with debugging?
How big task is it to implement support for Arabic localization, our Java 1.5 Applet was designed as fully localizable (european languages) but now we plan to add also arabic as a new language.
We are using custom GUI text i/o components inherited from Component class using e.g. Drawstring, how well is arabic supported within Component class ?
The keyboard input is done with KeyListener getKeyChar, getKeyCode etc.
I need to use a custom NSView subclass to draw some content, but it isn't drawing as highlighted when the user hovers and it doesn't dismiss the NSMenu when the user clicks on it. Any ideas?
Edit
It's a subclass, not a descendent.