custom-controls

Volume Slider like VLC

我的梦境 提交于 2019-12-21 02:53:07
问题 I am searching for Volume Slider that looks and behave just like VLC's slider. I found the following post about how to style the slider: Volume Slider CustomControl but I also want the same behavior... What is the difference between the behaviors: When you click on the slider [at the WPF] and move the mouse on the slider area (while mouse button still being hold) it should move the slider also to the position of the mouse on the slider. I couldn't find how to do it.. maybe I should use

using C# and UI Automation to grab contents of unknown control-type

送分小仙女□ 提交于 2019-12-21 02:46:09
问题 In the image below there is an area, which has an unknown (custom) class. That's not a Grid or a Table. I need to be able: to select Rows in this area to grab a Value from each cell The problem is since that's not a common type element - I have no idea how to google this problem or solve it myself. So far the code is following: Process[] proc = Process.GetProcessesByName("programname"); AutomationElement window = AutomationElement.FromHandle(proc [0].MainWindowHandle); PropertyCondition

UITextView's inputView on iOS 7

我们两清 提交于 2019-12-20 14:23:22
问题 I'm trying to create a custom keyboard for a UITextField, the background of this inputView should be transparent, I have set the background color in the view's xib file to "clear color". It is working great on iOS 6 and earlier.. but on iOS 7 it not working Any idea how can I make it work? I want it to be fully transparent 回答1: This will set the backdrops opacity to zero when displaying your custom keyboard and reset it back to 1 when the normal keyboard is shown. + (void

any Cocoa control code that I can use that acts as a patch bay?

假装没事ソ 提交于 2019-12-20 10:57:12
问题 I would like to make a patch bay type control... any source online that anyone knows of that I could work from? Thanks 回答1: The closest thing I'm aware of is EFLaceView: http://www.cocoadev.com/index.pl?FlowChartView Edit: EFLaceView seems to have disappeared, but I have a saved copy: EFLaceView Edit: Version of EFLaceView on github, with more recent changes than link above. 回答2: Unless you can find someone online who is sharing exactly the kind of control you're looking for, you don't have

creating custom itemscontrol

↘锁芯ラ 提交于 2019-12-20 10:11:26
问题 I'm trying to create a custom control derived from ItemsControl . The ItemsControl is initialized with items, but they are not shown. the itemsControl : public class PipeControl : ItemsControl { static PipeControl() { DefaultStyleKeyProperty.OverrideMetadata(typeof(PipeControl), new FrameworkPropertyMetadata(typeof(PipeControl))); } public PipeControl() { Checkers = new ObservableCollection<Checker>(); Checkers.Add(new Checker()); Checkers.Add(new Checker()); Checkers.Add(new Checker());

Wpf ListBox – change default selected-item style *inside* the ContentPresenter

泄露秘密 提交于 2019-12-20 07:16:17
问题 I have a ListBox in which each item is a StackPanel. The StackPanel consist of an Image and a TextBlock below it: <ListBox.ItemTemplate> <DataTemplate> <StackPanel Margin="10"> <Image> <Image.Source> <BitmapImage UriSource="{Binding Path=ImageFilePath}"/> </Image.Source> </Image> <TextBlock Text="Title" TextAlignment="Center"/> </StackPanel> </DataTemplate> </ListBox.ItemTemplate> It looks like this: When the user select an item, I get the default blue rectangle that surround the StackPanel:

Custom rightBarButtonItem disappearing

半城伤御伤魂 提交于 2019-12-20 06:37:23
问题 I have a strange bug with a custom rightBarButtomItem in the NavBar. I have a TabBar application. If the app is loaded the button shows up correct. If i click through the tabs the button keeps showing. If i go back to one of the tabs which was already shown the button disappears. At the end the button only shows randomly in one of the tabs. My code works perfectly if i set a standard rightBarButtomItem programatically. But not with custom graphics. If a ChildViewController is pushed and

fill directory textbox on button click in MUI NSI Installer , using ButtonEvent plug-in

笑着哭i 提交于 2019-12-20 05:49:30
问题 i have added custom button using Resource Hacker on the MUI Directory Page of the installer, now i want that when the button is clicked then the Default Textbox where the user enters the InstallDir (the path where the application is installed), is filled with some specified text. please help me with the code? I am using ButtonEvent plug-in, but i don't know what code to write in the event handler. Currently am just displaying a message box when the button is clicked to ensure that the event

HTML 'name' attribute generated for ASP.net child controls, instead of the unique 'ID' attribute

北慕城南 提交于 2019-12-20 04:09:25
问题 The generated HTML code for my custom ASP.net server control generates the name attribute for child controls, instead of the id attribute. Something like this : <span id="GridView2_ctl02_editdis"> <input type="text" name="GridView2$ctl02$editdis$ctl00"/> </span> The ID for the custom control itself is apparently proper. What is even stranger for me, is that the ID does get generated sometimes (I do not know under what conditions). But a FindControl() with that ID returns null on the server

Image.Height TemplateBinding does not work

99封情书 提交于 2019-12-20 03:54:29
问题 I have created a CustomControl implemented from Button class in WPF. public class ImageButton : Button { ... public int ImageHeight { get { return (int)GetValue(ImageHeightProperty); } set { SetValue(ImageHeightProperty, value); } } public static readonly DependencyProperty ImageHeightProperty = DependencyProperty.Register("ImageHeight", typeof(int), typeof(ImageButton), new UIPropertyMetadata(32)); ... } And I have resource template like this: <Setter Property="Template"> <Setter.Value>