FAQ Database Discussion Community


Fade Out OpenGL VBO with Colors but without Texture

opengl-es,fade,alpha,vbo,blend
I would like to fade out a VBO object in OpenGL ES. The VBO is drawn using RGBA format GL_UNSIGNED_BYTE like this: glEnableClientState(GL_COLOR_ARRAY); glColorPointer( 4, GL_UNSIGNED_BYTE, .... I am fairly certain I should set up blending like this: glEnable( GL_BLEND ); glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA ); glColor4f( 1, 1, 1, alpha...

Getting started with Blend for Visual Studio 2012 Documentation .pdf

visual-studio-2012,documentation,blend
Hi there: How can I download "Getting started with Blend for Visual Studio 2012" documentation from Microsoft website in .pdf format? I dont want to use the internet the whole time when I want this documentation... Here is the link of the documntation https://msdn.microsoft.com/en-us/library/jj171012(v=vs.110).aspx

Define Blend Expression ViewModel definition for RelativeSource binding

wpf,xaml,mvvm,user-controls,blend
I have an UserControl (MyCompositeView) where I add some other UserControls (MyDetailView). To get intellisense and refactoring ability I add to the CompositeView the d:DataContext in xaml. To Manipulate the UserControl while adding them an new DataContext I bind the Visiblity to the RelativeSource (my CompositeViewModel). Unfortunately the matching against...

Is it possible to programmatically manipulate a psd file's layers in WPF?

c#,wpf,photoshop,blend
I have a Photoshop Document with a few layers that I can turn on and off to make the image display different data. Is it possible to place this image in a WPF page and use C# to turn on and off layers? I've been googling for a little while...

WPF - ContentPresenter does not bind to UserControl Content

c#,wpf,xaml,user-controls,blend
Ok, so I'm relatively new to WPF and I'm having a bit of a problem with my usercontrol which contains a custom button. Everything was working fine until I tried binding the content of the custom button to the usercontrol content. UserControl Code: <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:OP"...

Button DataTemplate width too large

xaml,windows-phone-8.1,datatemplate,blend,visual-studio-2015
I created a DataTemplate from a Button and put the MinWidth and MinHeight to 0. I set the width and height to 75 on the Grid of the DataTemplate. The grid has a border and it's MinWidth and MinHeight are also both set to 0. The width and height of...

WPF: How to achieve a dependency property editng as a percentage/slider in the designer

c#,wpf,visual-studio,blend
I have a dependency property of type double that expresses a percentage (0 to 1) in the designer (i.e. Expression Blend / Visual Studio) It displays fine in the designer, as a 0 to 1 value, but I would like to show and have it editable as a "0%" to...

Access objects that haven't been created via Blend

c#,wpf,blend
I'm using Blend for the first time, for a WPF C# project. I have an expander object that I'm creating on a button press, like below. var name = selectedItem.Name; var expander = new Expander {Header = name}; As you can see, I set the expander header by grabbing it...

How Can I set the background of a browser window blend with the desktop background?

node-webkit,blend
I'm trying to build an app with nwjs, and I want it to have the look and feel of a desktop app. Desktop apps on OSX (Specifically the ones on the upper menu) have their background blend with the desktop background. Does anyone know how can I do this in...

Alignment issues with flow document reader - WPF

wpf,xaml,expression-blend,blend,flowdocument
I am trying to load a .txt file onto a flow document reader, but the columns are not correctly aligned, i.e. there is no uniform spacing between the columns. How can I get the same alignment in the flow document, as it is present in the notepad file. I mean...

I can't enable my listBox in Modern UI for WPF (vs2013 C#)

c#,wpf,visual-studio-2013,blend,modern-ui
My main window is a modern tab with a group of links. Each link navigate to different page. <mui:ModernTab Layout="List" Margin="0,0.5,-222,-2" HorizontalAlignment="Left" Width="742"> <mui:ModernTab.Links> <!-- TODO: set @Source --> <mui:Link DisplayName="Page 0" Source="Page0.xaml"/> <mui:Link DisplayName="Page 1" Source="Page1.xaml"/> <mui:Link DisplayName="Page 2" Source="Page2.xaml" /> <mui:Link DisplayName="Page 3" Source="Page3.xaml"/> </mui:ModernTab.Links> </mui:ModernTab> Page 0...