Hello,
I'm currently trying to write an application with a progress indicator in C# using WPF:
http://img839.imageshack.us/my.php?image=20100831180406.png
So far the indicator is finished. However I don't have any possibility to lower the length of the indicator yet. I could redraw the indicator using other coordinates but that would...
Suppose I have two frames. I want to set the size of the top frame so it shows all the necessary content, but no more.
For example, could I put an "hr" tag or a wide image transparent image at the bottom of the top frame and have the top frame resize automatically based on the location of this element so that this element marks the ver...
I have a a dynamic value (implementation of IDynamicMetaObjectProvider) that I'd like to call methods and properties on.
Examples I have found so far of invoking members on a dynamic value use types out of Microsoft.CSharp.dll, e.g.
IDynamicMetaObjectProvider x = GetDynamicValue();
CallSite<Func<CallSite, object, object, object>> site ...
Let's say I have an android app, and in that app I want to animate a graphic of a ball in an "L" shape. This would require me to define a Tween Animation where I create an animation xml file (written below) and apply it to a View which has the ball graphic in it.
<translate>
Ydelta = 20;
offset = 0;
duration = 100;
</translate>
<trans...
How might one dynamically generate a temporary RSS feed, on the fly, from a list of links that point to videos, for example?
...
The actual question goes like this:
McDonald's is planning to open a number of joints (say n) along a straight highway. These joints require warehouses to store their food. A warehouse can store food for any number of joints, but has to be located at one of the joints only. McD has a limited number of warehouses (say k) available, and w...
I am loading a series of controls in the Page_Load event. However, I have to recreate those controls each page load, which means storing their data elsewhere. This is cumbersome.
protected void Page_Load(object sender, EventArgs e)
{
MyControl control = (MyControl)LoadControl(...);
control.Initialize(GlobalClass.controlData);
...
In the context of C#, .Net 4...
Given a data source object that supplies vertices by index from an array of doubles where a vertex contains ten doubles with members Px, Py, Pz, Nx, Ny, Nz, S, T, U, V. and the backing array contains all or any subset of vertex members based on the data source's stride, offset and count properties. The da...
I'm wondering if there is anything like Django's HTML templating system, for for CSS.. my searches on this aren't turning up anything of use. I am aware of things like SASS and CleverCSS but, as far as I can tell, these still don't solve my issue as I want to dynamically generate a CSS file based on certain conditions, so that a differen...
I'm trying to hide a button depending on how many occurrences of a certain class there are.
I am dynamically putting data into a page and for each dynamic div i put in i assign it the class "propdata" I need to count how many occurrences there are of "propdata" and if there is only one occurrence i need to hide the button with a class o...
I am getting the members of a dynamic class using the following method:
public static IEnumerable<string> GetDynamicMemberNames(this IDynamicMetaObjectProvider dynamicProvider)
{
DynamicMetaObject metaObject = dynamicProvider.GetMetaObject(Expression.Constant(dynamicProvider));
return metaObject.GetDynamicMemberNames();
}
How can ...
Hi,
i want to code a html with a dynamically background-image with a widht of ~1920px.
The Image must be displayed with its center. When i move to the left side with my mouse the background should go to the right and display the hided left content - if i go right the same effect but inverted. I can remember i saw something similar as an...
I have several message queues that have specific messages on them.
I've created classes for these messages using xsd.exe.
I can receive a message syncronously and deseriazlise it with this method:
public oneOfMyTypes DeserializeMessage(XDocument message)
{
var serializer = new XmlSerializer(typeof(oneOfMyTypes));
var entity = (oneOfMy...
I am using a StringBuilder in an ashx file to return javascript. It all works fine, except for one line...
javascript.Append("document.write(\"<script id=__ie_onload defer \" + \"src=javascript:void(0)><\/script>\");");
For readability, here is the unescaped version:
document.write("<script id=__ie_onload defer src=javascript:void(0...
the dynamic controls went missing right after i click it, why is this happening, and how do i fix it.
protected void Page_Load(object sender, EventArgs e)
{
/*DropDownList1_SelectedIndexChanged(sender, e);
Label1.Text += "<br/>huh?";
Label1.Text = MapPath("dawd");*/
}
protected void DropDownList1_SelectedIndexChanged(object ...
I have a page in which I have a grid with 2 columns, one accommodating 80* width and the other accommodating 20*. Beneath the grid is a stack panel to which I load UI elements (child stack panels) at runtime.
My objective is to bind the widths of the stackpanels to the columns of the grid. This works perfectly and the stackpenels resiz...
First, is it possible to do a static auto-resize of the frame according to the grid? As in, when the script is run the frame is resized according to the grid, but if the grid is resized later on the frame stays the same size.
Second, is it possible to make the frame dynamically resize according to the grid? As in, the frame will resize ...
Building an application, I need to make a big grid/table of buttons.
I need to make the number of rows and columns dynamic. That is, evolving when I send some parameters through the network (the network part is OK, I can transmit/receive thing and store in a variable.)
...
Hey there everyone.
I was wondering for some time, and searching the nets, for an efficient way of displaying an image dynamically using PHP, depending on the result of a query. Per example, there is a field called "devicetype" in my asset table, and I would like to display a different icon depending on the type of device.
Anyone could...
Hello,
I need to make COM IntetrOp at runtime using reflections. My native COM Object's exposed methods have some parameters as pointers (DWORD*) and some double pointers (DWORD**) and some are user defined types(e.g SomeUDTType objSmeUDTType) and vice versa its pointer(i.e. SomeUDTType *pSomeUDTType).
Now for dynamic method invocation...